libexplain  1.4.D001
Data Structures | Typedefs | Functions | Variables
libexplain/buffer/sockopt_name.c File Reference
#include <libexplain/ac/bluetooth/bluetooth.h>
#include <libexplain/ac/netinet/in.h>
#include <libexplain/ac/stdlib.h>
#include <libexplain/ac/string.h>
#include <libexplain/ac/sys/socket.h>
#include <libexplain/buffer/sockopt_name.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>

Go to the source code of this file.

Data Structures

struct  list_t

Typedefs

typedef struct list_t list_t

Functions

void explain_buffer_sockopt_name (explain_string_buffer_t *sb, int level, int name)
static void list_constructor (list_t *lp)
static void list_append (list_t *lp, const explain_parse_bits_table_t *table, size_t size)
static void list_destructor (list_t *lp)
int explain_parse_sockopt_name_or_die (const char *text, const char *caption)

Variables

static const
explain_parse_bits_table_t 
sol_socket_table []
static const
explain_parse_bits_table_t 
sol_ip_table []

Typedef Documentation

typedef struct list_t list_t

Definition at line 321 of file sockopt_name.c.


Function Documentation

void explain_buffer_sockopt_name ( explain_string_buffer_t sb,
int  level,
int  name 
)

The explain_buffer_sockopt_name function may be used to print a representation of a sockopt name.

Parameters:
sbThe string buffer to print into.
levelThe sockopt level value. This is important because the names are dependent on the level.
nameThe sockopt_name value to be printed.

Definition at line 257 of file sockopt_name.c.

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

The explain_parse_sockopt_name_or_die function is used to parse a text string into a sockopt name value. It parses all levels.

Parameters:
textThe text string to be parsed.
captionadditional information for error messages.
Returns:
The sockopt name value. On error it prints a fatal error message and exits.

Definition at line 376 of file sockopt_name.c.

static void list_append ( list_t lp,
const explain_parse_bits_table_t table,
size_t  size 
) [static]

Definition at line 340 of file sockopt_name.c.

static void list_constructor ( list_t lp) [static]

Definition at line 331 of file sockopt_name.c.

static void list_destructor ( list_t lp) [static]

Definition at line 365 of file sockopt_name.c.


Variable Documentation

Definition at line 160 of file sockopt_name.c.

Definition at line 30 of file sockopt_name.c.