Data Structures | Macros | Functions
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


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


static void virtual_output_print (const struct virtual_output *vo, const unsigned int flags, const char *str)
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)
static unsigned int status_rw_flags (const struct status_output *so)

Macro Definition Documentation


#define STATUS_OUTPUT_READ   (1<<0)

Definition at line 50 of file status.h.


#define STATUS_OUTPUT_WRITE   (1<<1)

Definition at line 51 of file status.h.

Function Documentation

◆ 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_rw_flags()

static unsigned int status_rw_flags ( const struct status_output so)

Definition at line 93 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()

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

Definition at line 39 of file status.h.

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

Referenced by x_msg_va().