OpenVPN
status.h File Reference
#include "interval.h"
Include dependency graph for status.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  virtual_output
struct  status_output

Macros

#define STATUS_OUTPUT_READ   (1 << 0)
#define STATUS_OUTPUT_WRITE   (1 << 1)

Functions

static void virtual_output_print (const struct virtual_output *vo, const unsigned int flags, const char *str)
struct status_output * status_open (const char *filename, const int refresh_freq, const int msglevel, const struct virtual_output *vout, const unsigned int flags)
bool status_trigger (struct status_output *so)
void status_reset (const struct status_output *so)
void status_flush (struct status_output *so)
bool status_close (struct status_output *so)
void status_printf (struct status_output *so, const char *format,...)
bool status_read (struct status_output *so, struct buffer *buf)
static unsigned int status_rw_flags (const struct status_output *so)

Macro Definition Documentation

◆ STATUS_OUTPUT_READ

#define STATUS_OUTPUT_READ   (1 << 0)

Definition at line 50 of file status.h.

Referenced by ifconfig_pool_persist_init(), print_status_mode(), status_open(), and status_read().

◆ STATUS_OUTPUT_WRITE

Function Documentation

◆ status_close()

◆ status_flush()

◆ status_open()

◆ status_printf()

◆ status_read()

◆ status_reset()

void status_reset ( const struct status_output * so)

Definition at line 138 of file status.c.

References status_output::fd.

Referenced by ifconfig_pool_write(), multi_print_status(), and print_status().

◆ status_rw_flags()

unsigned int status_rw_flags ( const struct status_output * so)
inlinestatic

Definition at line 91 of file status.h.

References status_output::flags.

Referenced by ifconfig_pool_write().

◆ status_trigger()

bool status_trigger ( struct status_output * so)

◆ virtual_output_print()

void virtual_output_print ( const struct virtual_output * vo,
const unsigned int flags,
const char * str )
inlinestatic

Definition at line 39 of file status.h.

References virtual_output::arg, and virtual_output::func.

Referenced by x_msg_va().