ekg2  GIT master
Funkcje
Dokumentacja pliku stuff.c
#include "ekg2-config.h"
#include <ctype.h>
#include <sys/time.h>
#include <time.h>
#include <stdarg.h>
#include <string.h>
#include "debug.h"
#include "dynstuff.h"
#include "plugins.h"
#include "stuff.h"
#include "xmalloc.h"
#include "dynstuff_inline.h"
Wykres zależności załączania dla stuff.c:

Funkcje

 __attribute__ ((visibility("hidden")))
 
static void timers_add (struct timer *new)
 
void timers_remove (struct timer *elem)
 
static void binding_added_free_item (binding_added_t *data)
 
static void bindings_destroy (void)
 
static void bindings_added_destroy (void)
 
const char * compile_time ()
 
void iso_to_ascii (unsigned char *buf)
 
const char * timestamp (const char *format)
 
const char * timestamp_time (const char *format, time_t t)
 
struct timertimer_add_ms (plugin_t *plugin, const char *name, unsigned int period, int persist, int(*function)(int, void *), void *data)
 
struct timertimer_add (plugin_t *plugin, const char *name, unsigned int period, int persist, int(*function)(int, void *), void *data)
 
int timer_remove (plugin_t *plugin, const char *name)
 
int isalpha_pl (unsigned char c)
 
void debug_ext (debug_level_t level, const char *format,...)
 
void debug (const char *format,...)
 
const char * ekg_status_string (const int status, const int cmd)
 
char * saprintf (const char *format,...)
 

Dokumentacja funkcji

◆ __attribute__()

__attribute__ ( (visibility("hidden"))  )

◆ binding_added_free_item()

static void binding_added_free_item ( binding_added_t data)
static

◆ bindings_added_destroy()

static void bindings_added_destroy ( void  )
static

◆ bindings_destroy()

static void bindings_destroy ( void  )
static

◆ compile_time()

const char* compile_time ( )

compile_time()

Return compilation date, and time..
Used by /version command and ekg2 –version

Zwraca
DATE" "__TIME__
For example: "Jun 21 1987" " " "22:06:47"

◆ debug()

void debug ( const char *  format,
  ... 
)

◆ debug_ext()

void debug_ext ( debug_level_t  level,
const char *  format,
  ... 
)

◆ ekg_status_string()

const char* ekg_status_string ( const int  status,
const int  cmd 
)

◆ isalpha_pl()

int isalpha_pl ( unsigned char  c)

◆ iso_to_ascii()

void iso_to_ascii ( unsigned char *  buf)

◆ saprintf()

char* saprintf ( const char *  format,
  ... 
)

◆ timer_add()

struct timer* timer_add ( plugin_t plugin,
const char *  name,
unsigned int  period,
int  persist,
int(*)(int, void *)  function,
void *  data 
)

◆ timer_add_ms()

struct timer* timer_add_ms ( plugin_t plugin,
const char *  name,
unsigned int  period,
int  persist,
int(*)(int, void *)  function,
void *  data 
)

◆ timer_remove()

int timer_remove ( plugin_t plugin,
const char *  name 
)

◆ timers_add()

static void timers_add ( struct timer new)
static

◆ timers_remove()

void timers_remove ( struct timer elem)

◆ timestamp()

const char* timestamp ( const char *  format)

timestamp()

It returns static buffer with formated current time.

Parametry
format- format to pass to strftime() [man 3 strftime]
Zwraca
if format is NULL or format == '\0' than it return ""
else it returns strftime()'d value, or "TOOLONG" if buf (sizeof(buf) == 100) was too small..

◆ timestamp_time()

const char* timestamp_time ( const char *  format,
time_t  t 
)