Compaq AA-RH99A-TE Remote Starter User Manual


 
char** hints);
Argument
Input/Output
Description
symbol
Input Names the structure to be checked
fields
Input Describes the fields to be checked
nfields
Input Specifies the size of the fields argument
hints
Input Unused and should always be set to NULL
You should check the structure type using the check_fields function
before using the read_field_vals function to read field values.
For example:
FieldRec fields[] = {
{ ".sc_sysid", NUMBER, NULL, NULL },
{ ".sc_aipfts", NUMBER, NULL, NULL },
{ ".sc_lostarb", NUMBER, NULL, NULL },
{ ".sc_lastid", NUMBER, NULL, NULL },
{ ".sc_active", NUMBER, NULL, NULL }
};
check_args(argc, argv, help_string);
if(!check_fields("struct sz_softc", fields, NUM_FIELDS, NULL)){
field_errors(fields, NUM_FIELDS);
quit(1);
}
3.2.9 Setting the kdbx Context
The context function sets the context to user context or proc context. If
the context is set to the user context, aliases defined in the extension affect
user aliases.
This function has the following syntax:
void context(
Boolean user);
Argument
Input/Output
Description
user
Input Sets the context to user if TRUE or
proc if FALSE
For example:
if(head) print(head);
context(True);
for(i=0;i<len;i++){
.
.
.
3–8 Writing Extensions to the kdbx Debugger