Formats an H.324M event into a string for print diagnostics.
DWORD h324FormatEvent ( char *lineprefix, CTA_EVENT *event, char *buffer, unsigned size)
|
Argument |
Description |
|
lineprefix |
Pointer to a character string that is placed at the beginning of every new line in the formatted event string. |
|
event |
Pointer to the Natural Access CTA_EVENT structure, which is an event structure to be formatted: typedef struct |
|
buffer |
Pointer to the buffer to receive the event string. |
|
size |
Size of the buffer in bytes. |
|
Return value |
Description |
|
SUCCESS |
|
None.
h324FormatEvent creates a detailed textual description of the H.324M event.
void DemoShowEvent( CTA_EVENT *event )
{
char format_buffer[CTA_MAX_FORMAT_SIZE];
char *prefix = "\t\t\t"; /* default demo indent */
format_buffer[0] = '\0';
h324FormatEvent( prefix, event, format_buffer, CTA_MAX_FORMAT_SIZE );
printf( "%s", format_buffer );
}