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
format
POPSTORE_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.
channel
Length in bytes of the string passed in
channel_len
channel
. Used for input only.Pointer to private client data to be passed to the client-supplied
context
output_proc
procedure. 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 forchannel
and 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_proc
are as follows:Upon successful completion,
context
Pointer to the private client data supplied as input to POPSTORE_format_counters. data
Formatted data to output. This string can not be null terminated. data_len
Length in bytes of the data pointed at by data
.is_eol
When is_eol
has a non-zero value, theoutput_proc
procedure can want to output an end-of-line after this batch of formatted data.is_literal
When is_literal
has a non-zero value, theoutput_proc
procedure should not apply any quoting to the formatted data. The formatted data is literal data which was contained within the formatting file.output_proc
should return the valuePOPSTORE_SUCCESS
. In the event of an error, some value other thanPOPSTORE_SUCCESS
should 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 |