- Joined
- Jan 6, 2010
- Messages
- 1
- Reaction score
- 0
Can someone explain what the following typedef does/means? TIA.
typedef ABC_ERRORS (*FUNC_PTR_TYPE)(const XOBJECT * );
ABC_ERRORS: defined as:
typedef enum {
E_EOF = -24,
E_HELP_DISPATCH = -23,
E_INTERNAL_ERROR = -22,
...,
E_UNEXPECTED_PARAMS = -2,
E_UNKNOWN_CMD = -1,
E_SUCCESS = 0
} ABC_ERRORS;
XOBJECT defined as:
typedef struct SParameterObject
{
int total_pairs;
struct SPairMap ** PairMaps;
} XOBJECT;
and finally:
struct SPairMap
{
char * key;
char * value;
};
Tim
typedef ABC_ERRORS (*FUNC_PTR_TYPE)(const XOBJECT * );
ABC_ERRORS: defined as:
typedef enum {
E_EOF = -24,
E_HELP_DISPATCH = -23,
E_INTERNAL_ERROR = -22,
...,
E_UNEXPECTED_PARAMS = -2,
E_UNKNOWN_CMD = -1,
E_SUCCESS = 0
} ABC_ERRORS;
XOBJECT defined as:
typedef struct SParameterObject
{
int total_pairs;
struct SPairMap ** PairMaps;
} XOBJECT;
and finally:
struct SPairMap
{
char * key;
char * value;
};
Tim