#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include "plugins.h"
#include "sessions.h"
Idź do kodu źródłowego tego pliku.
|
#define | BINDING_FUNCTION(x) void x(const char *arg) |
|
#define | TIMER(x) int x(int type, void *data) |
|
#define | xisxdigit(c) isxdigit((int) (unsigned char) c) |
|
#define | xisdigit(c) isdigit((int) (unsigned char) c) |
|
#define | xisalpha(c) isalpha_pl((int) (unsigned char) c) |
|
#define | xisalnum(c) isalnum((int) (unsigned char) c) |
|
#define | xisspace(c) isspace((int) (unsigned char) c) |
|
#define | xtolower(c) tolower((int) (unsigned char) c) |
|
#define | xtoupper(c) toupper((int) (unsigned char) c) |
|
|
void | binding_free () |
|
void | changed_theme (const char *var) |
|
const char * | compile_time () |
|
void | iso_to_ascii (unsigned char *buf) |
|
char * | saprintf (const char *format,...) |
|
const char * | timestamp (const char *format) |
|
const char * | timestamp_time (const char *format, time_t t) |
|
int | isalpha_pl (unsigned char c) |
|
struct timer * | timer_add (plugin_t *plugin, const char *name, unsigned int period, int persist, int(*function)(int, void *), void *data) |
|
struct timer * | timer_add_ms (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) |
|
struct timer * | timers_removei (struct timer *t) |
|
void | timers_destroy () |
|
const char * | ekg_status_string (const int status, const int cmd) |
|
void | ekg_exit () |
|
void | ekg_debug_handler (int level, const char *format, va_list ap) |
|
int | ekg_write (int fd, const char *buf, int len) |
|
int | remote_request (char *what,...) |
|
#define BINDING_FUNCTION |
( |
|
x | ) |
void x(const char *arg) |
#define TIMER |
( |
|
x | ) |
int x(int type, void *data) |
#define xisalnum |
( |
|
c | ) |
isalnum((int) (unsigned char) c) |
#define xisalpha |
( |
|
c | ) |
isalpha_pl((int) (unsigned char) c) |
#define xisdigit |
( |
|
c | ) |
isdigit((int) (unsigned char) c) |
#define xisspace |
( |
|
c | ) |
isspace((int) (unsigned char) c) |
#define xisxdigit |
( |
|
c | ) |
isxdigit((int) (unsigned char) c) |
#define xtolower |
( |
|
c | ) |
tolower((int) (unsigned char) c) |
#define xtoupper |
( |
|
c | ) |
toupper((int) (unsigned char) c) |
void changed_theme |
( |
const char * |
var | ) |
|
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"
void ekg_debug_handler |
( |
int |
level, |
|
|
const char * |
format, |
|
|
va_list |
ap |
|
) |
| |
const char* ekg_status_string |
( |
const int |
status, |
|
|
const int |
cmd |
|
) |
| |
int ekg_write |
( |
int |
fd, |
|
|
const char * |
buf, |
|
|
int |
len |
|
) |
| |
ekg_write()
write data to given fd, if it cannot be done [because system buffer is too small. it'll create watch, and write as soon as possible] XXX, for now it'll always create watch. (You can be notified about state of buffer when you call ekg_write(fd, NULL, -1))
- Nota
- This should be used as replacement for write()
int isalpha_pl |
( |
unsigned char |
c | ) |
|
void iso_to_ascii |
( |
unsigned char * |
buf | ) |
|
int remote_request |
( |
char * |
what, |
|
|
|
... |
|
) |
| |
char* saprintf |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
struct timer* timer_add |
( |
plugin_t * |
plugin, |
|
|
const char * |
name, |
|
|
unsigned int |
period, |
|
|
int |
persist, |
|
|
int(*)(int, void *) |
function, |
|
|
void * |
data |
|
) |
| |
struct timer* timer_add_ms |
( |
plugin_t * |
plugin, |
|
|
const char * |
name, |
|
|
unsigned int |
period, |
|
|
int |
persist, |
|
|
int(*)(int, void *) |
function, |
|
|
void * |
data |
|
) |
| |
int timer_remove |
( |
plugin_t * |
plugin, |
|
|
const char * |
name |
|
) |
| |
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..
const char* timestamp_time |
( |
const char * |
format, |
|
|
time_t |
t |
|
) |
| |
char* config_completion_char |
char* config_console_charset |
int config_default_status_window |
int config_display_pl_chars |
int config_display_welcome |
int config_history_savedups |
int config_lastlog_display_all |
int config_lastlog_noitems |
int config_query_commands |
int config_send_white_lines |
int config_slash_messages |
int config_timestamp_show |
char* server_console_charset |