| Previous | Contents | Index |
Format PMDF channel counter information.
int POPSTORE_format_counters (format, channel, channel_len, context, output_proc) POPSTORE_format_element *format; char *channel; int channel_len; void *context; int (*output_proc)();
Pointer to a formatting context returned by a previous call to
formatPOPSTORE_format_read. Used for input only.Name of the channel to display information for. This name can contain wild card characters. Used for input only.
channelLength in bytes of the string passed in
channel_lenchannel. Used for input only.Pointer to private client data to be passed to the client-supplied
contextoutput_procprocedure. Used for input only.Address of a client-supplied subroutine to call to output formatted data. Used for input only.
output_proc
PMDF channel counter information can be formatted withPOPSTORE_format_counters. The channel name is case insensitive and can contain wild card characters. To format information for all channels, either specify asterisk, "*", for the channel name or pass a null forchanneland the value 0 forchannel_len. The formatting context should be derived from a formatting file using substitution strings from Tables 4-10 and 4-20. Formatted data is passed to the output procedureoutput_proc. That procedure takes the form
where the arguments to
int output_proc (context, data, data_len, is_eol, is_literal) void *context; char *data; int data_len; int is_eol; int is_literal;output_procare as follows:Upon successful completion,
contextPointer to the private client data supplied as input to POPSTORE_format_counters. dataFormatted data to output. This string can not be null terminated. data_lenLength in bytes of the data pointed at by data.is_eolWhen is_eolhas a non-zero value, theoutput_procprocedure can want to output an end-of-line after this batch of formatted data.is_literalWhen is_literalhas a non-zero value, theoutput_procprocedure should not apply any quoting to the formatted data. The formatted data is literal data which was contained within the formatting file.output_procshould return the valuePOPSTORE_SUCCESS. In the event of an error, some value other thanPOPSTORE_SUCCESSshould be returned. A user-requested abort can be signified by returningPOPSTORE_ABORT.
POPSTORE_SUCCESS Normal, successful completion. POPSTORE_BADARG Bad value passed for the address of the output procedure, output_proc.Any error value returned by the output procedure, output_proc.
| Previous | Next | Contents | Index |