Network Developers Kit API  3.75.00.20
Macros | Functions
configif.h File Reference

Go to the source code of this file.

Macros

#define CFGOP_REMOVE   0
 
#define CFGOP_ADD   1
 
#define CFG_ADDMODE_UNIQUE   0x0001
 
#define CFG_ADDMODE_DUPLICATE   0x0002
 
#define CFG_ADDMODE_NOSAVE   0x0004
 
#define CFGERROR_BADHANDLE   -1
 
#define CFGERROR_BADPARAM   -2
 
#define CFGERROR_RESOURCES   -3
 
#define CFGERROR_REFERROR   -4
 
#define CFGERROR_ALREADY   -5
 
#define CFGERROR_SERVICE   -100
 
#define CFG_MAKE_CFGERROR(x)   ((x)+CFGERROR_SERVICE)
 
#define CFG_GET_SERVICE_ERROR(x)   ((x)-CFGERROR_SERVICE)
 Get the original service error. More...
 
#define CFG_IS_SERVICE_ERROR(x)   ((x)<=CFGERROR_SERVICE)
 

Functions

void * CfgNew ()
 Create a new configuration. More...
 
void CfgFree (void *hCfg)
 Destroy a new configuration. More...
 
void CfgSetDefault (void *hCfg)
 Set default configuration handle. More...
 
void * CfgGetDefault ()
 Get default configuration handle. More...
 
int CfgLoad (void *hCfg, int Size, unsigned char *pData)
 Load a config from a linear memory block. More...
 
int CfgSave (void *hCfg, int *pSize, unsigned char *pData)
 Save a config to a linear memory block. More...
 
int CfgSetExecuteOrder (void *hCfg, uint32_t Tags, uint32_t *pOpenOrder, uint32_t *pCloseOrder)
 Set the Tag initialization and shutdown order on execute. More...
 
int CfgExecute (void *hCfg, uint32_t fExecute)
 Set the execution state (active/inactive) of the config. More...
 
int CfgSetService (void *hCfg, uint32_t Tag, int(*pCb)(void *, uint32_t, uint32_t, uint32_t, void *))
 Set service callback for configuration Tag. More...
 
int CfgAddEntry (void *hCfg, uint32_t Tag, uint32_t Item, uint32_t Mode, int Size, unsigned char *pData, void **phCfgEntry)
 Add configuration entry to configuration. More...
 
int CfgRemoveEntry (void *hCfg, void *hCfgEntry)
 Remove config entry from configuration by handle. More...
 
int CfgGetEntryCnt (void *hCfg, uint32_t Tag, uint32_t Item)
 Get the number of entry instances for a Tag/Item pair. More...
 
int CfgGetEntry (void *hCfg, uint32_t Tag, uint32_t Item, uint32_t Index, void **phCfgEntry)
 Get configuration entry from configuration. More...
 
int CfgGetNextEntry (void *hCfg, void *hCfgEntry, void **phCfgEntryNext)
 Get the next entry instance matching the supplied entry handle. More...
 
int CfgGetImmediate (void *hCfg, uint32_t Tag, uint32_t Item, uint32_t Index, int Size, unsigned char *pData)
 Get config entry data. More...
 
int CfgEntryRef (void *hCfgEntry)
 Add a reference to a configuration entry handle. More...
 
int CfgEntryDeRef (void *hCfgEntry)
 Remove a reference to a config entry handle. More...
 
int CfgEntryGetData (void *hCfgEntry, int *pSize, unsigned char *pData)
 Get configuration entry data. More...
 
int CfgEntrySetData (void *hCfgEntry, int Size, unsigned char *pData)
 Set/reset configuration entry data. More...
 
int CfgEntryInfo (void *hCfgEntry, int *pSize, unsigned char **ppData)
 Get information on a configuration entry. More...
 
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale