OpenVPN
Macros | Functions
status.c File Reference
#include "syshead.h"
#include "status.h"
#include "perf.h"
#include "misc.h"
#include "fdmisc.h"
#include "memdbg.h"
Include dependency graph for status.c:

Go to the source code of this file.

Macros

#define STATUS_PRINTF_MAXLEN   512
 

Functions

static const char * print_status_mode (unsigned int flags)
 
struct status_outputstatus_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 (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)
 

Macro Definition Documentation

◆ STATUS_PRINTF_MAXLEN

#define STATUS_PRINTF_MAXLEN   512

Definition at line 219 of file status.c.

Function Documentation

◆ print_status_mode()

static const char* print_status_mode ( unsigned int  flags)
static

Definition at line 42 of file status.c.

References STATUS_OUTPUT_READ, and STATUS_OUTPUT_WRITE.

Referenced by status_open().

◆ status_close()

bool status_close ( struct status_output so)

◆ status_flush()

void status_flush ( struct status_output so)

◆ status_open()

struct status_output* status_open ( const char *  filename,
const int  refresh_freq,
const int  msglevel,
const struct virtual_output vout,
const unsigned int  flags 
)

◆ status_printf()

void status_printf ( struct status_output so,
const char *  format,
  ... 
)

◆ status_read()

bool status_read ( struct status_output so,
struct buffer buf 
)

◆ status_reset()

void status_reset ( struct status_output so)

Definition at line 148 of file status.c.

References status_output::fd.

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

◆ status_trigger()

bool status_trigger ( struct status_output so)