Compaq AA-RH99A-TE Remote Starter User Manual


 
The values in comm and local provide the error code interpreted by
print_status.
The FieldRec data type, which is used to declare a field of interest
in a data structure.
The following is the type definition for the FieldRec data type:
typedef struct {
char *name;
int type;
caddr_t data;
char *error;
} FieldRec;
The char *name declaration is the name of the field in question. The
int type declaration is the type of the field, for example, NUMBER,
STRUCTURE, POINTER. The caddr_t data and char *error
declarations are initially set to NULL. The read_field_vals function
fills in these values.
The DataStruct, data type, which is used to declare data structures
with opaque data types.
The following is the type definition for the DataStruct data type:
typedef long DataStruct;
3.2.2 Converting an Address to a Procedure Name
The addr_to_proc function returns the name of the procedure that begins
the address you pass to the function. If the address is not the beginning of
a procedure, then a string representation of the address is returned. The
return value is dynamically allocated by malloc and should be freed by the
extension when it is no longer needed.
This function has the following syntax:
char * addr_to_proc(
long addr);
Argument
Input/Output
Description
addr
Input Specifies the address that you want converted
to a procedure name
For example:
conf1 = addr_to_proc((long) bus_fields[3].data);
conf2 = addr_to_proc((long) bus_fields[4].data);
sprintf(buf, "Config 1 - %sConfig 2 - %s", conf1, conf2);
free(conf1);
free(conf2);
Writing Extensions to the kdbx Debugger 3–3