cwbUP_AddPackageFile

Purpose

Adds a package file to the package file list in the update entry.

Syntax

 
unsigned int CWB_ENTRY cwbUP_AddPackageFile(
                             cwbUP_EntryHandle entryHandle,
                             char *entryPackage);

Parameters

cwbUP_EntryHandle entryHandle - input
Handle that was returned by a previous call to cwbUP_CreateUpdateEntryHandle, cwbUP_GetUpdateEntryHandle, or cwbUP_FindEntry.
char * entryPackage - input
Pointer to a null-terminated string that contains the name of a package file to be added to the update entry. Do not include the path for this file. The package file must exist in the source and target paths.

Return Codes

The following list shows common return values.

CWB_OK
Successful completion.
CWB_INVALID_HANDLE
Update entry handle is not valid.
CWB_INVALID_POINTER
NULL was passed as an address.
CWBUP_TOO_MANY_PACKAGES
Maximum number of package files already exist for this entry.
CWBUP_STRING_TOO_LONG
The package file name is longer than CWBUP_MAX_LENGTH.
CWBUP_ENTRY_IS_LOCKED
Another application is currently changing the update entry list. No changes are allowed at this time.

Usage

None