libexplain  1.4.D001
Functions
libexplain/buffer/tcflow_action.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_tcflow_action (explain_string_buffer_t *sb, int data)
int explain_parse_tcflow_action_or_die (const char *text, const char *caption)

Function Documentation

The explain_buffer_tcflow_action function may be used to print a representation of a tcflow action value.

Parameters:
sbThe string buffer to print into.
dataThe tcflow action value to be printed.

Definition at line 56 of file tcflow_action.c.

int explain_parse_tcflow_action_or_die ( const char *  text,
const char *  caption 
)

The explain_parse_tcflow_action_or_die function is used to parse a text value, to transform it into a tcflow action argument value.

Parameters:
textThe text string to be parsed.
captionAdditinal information for error message.
Returns:
the int value on success, does not return on failure but instead prints and error messages and exits.

Definition at line 63 of file tcflow_action.c.