CA_Delete_Prompt_Dir()

Purpose

Delete the prompts from the specified prompt directory.

Libraries

Blueworx Voice Response library (libvae.a)

Custom Server library (libca.a)

Syntax

#include "CA_header.h"
#include "CA_access_db.h"
int CA_Delete_Prompt_Dir(
 char *prompt_dir_name,
 unsigned char language
);

Description

This subroutine deletes prompts from the prompt directory specified. If the language parameter is set to DEFAULT_PROMPT_LANGUAGE, the prompt directory and all its default prompts are deleted. Otherwise, only derived prompts for the language specified are deleted.

Parameters

prompt_dir_name
Prompt directory name. The maximum number of characters allowed in this string is MAX_PROMPT_DIR_LENGTH. This string must be terminated with a zero.
language
Language of prompts to be deleted. May be a specified language in the range 1 to MAX_LANGUAGE, or set to DEFAULT_PROMPT_LANGUAGE.

Return codes

0
Successful
-1
Unsuccessful (global error number CA_errno is set to indicate the error)

Error names

CA_ACCESS_NOBUFS
CA_INV_ADDR
CA_INV_PROMPT_DIR
CA_INV_REQUEST
CA_LANG_NOT_FOUND
CA_LANG_NOT_IN_USE
CA_NO_MSG_RECV
CA_NOT_INIT
CA_PROMPT_DIR_NOT_FOUND
CA_REQ_FAILED
CA_TERMINATING
CA_UPDATE_XREFS_FAILED

Related information

None.