Compaq AA-RH99A-TE Remote Starter User Manual


 
if(status.type != OK){
print_status("read_line failed", &status);
quit(1);
}
3.2.22 Exiting from an Extension
The quit function sends a quit command to kdbx. This function has the
following format:
void quit(
int i);
Argument
Input/Output
Description
i
Input The status at the time of the exit from
the extension
For example:
if (!read_sym_val("vm_swap_head", NUMBER, &end, &error)) {
fprintf(stderr, "Couldnt read vm_swap_head:\n");
fprintf(stderr, "%s\n", error);
quit(1);
}
3.2.23 Reading the Values in Structure Fields
The read_field_vals function reads the value of fields in the specified
structure. If this function is successful, then the data parts of the fields are
filled in and TRUE is returned; otherwise, the error parts of the affected
fields are filled in with errors and FALSE is returned.
This function has the following format:
Boolean read_field_vals(
DataStruct data,
FieldRec* fields,
int nfields);
Argument
Input/Output
Description
data
Input Names the structure that contains the
field to be read
fields
Input Describes the fields to be read
nfields
Input Contains the size of the field array
For example:
if(!read_field_vals(pager, fields, nfields)){
field_errors(fields, nfields);
Writing Extensions to the kdbx Debugger 3–17