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_tv (struct status_output *so, struct timeval *tv)
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.

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


#define STATUS_OUTPUT_WRITE   (1<<1)

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 163 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 95 of file status.h.

References status_output::flags.

Referenced by ifconfig_pool_write().

◆ status_trigger()

bool status_trigger ( struct status_output so)

◆ status_trigger_tv()

bool status_trigger_tv ( struct status_output so,
struct timeval *  tv 

Definition at line 150 of file status.c.

References status_output::et, ETT_DEFAULT, and event_timeout_trigger().

Referenced by check_status_file().

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