ekg2
|
#include "ekg2-config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include "commands.h"
#include "debug.h"
#include "events.h"
#include "plugins.h"
#include "sessions.h"
#include "userlist.h"
#include "stuff.h"
#include "xmalloc.h"
#include "themes.h"
#include "windows.h"
#include "queries.h"
#include "dynstuff_inline.h"
Definicje | |
#define | dayischanged(x) (oldtm->tm_##x != tm->tm_##x) |
#define | s separators[i] |
Funkcje | |
static int | event_add_compare (event_t *data1, event_t *data2) |
static | LIST_FREE_ITEM (list_event_free, struct event *) |
DYNSTUFF_LIST_DECLARE_SORTED (events, event_t, event_add_compare, list_event_free, static __DYNSTUFF_LIST_ADD_SORTED, static __DYNSTUFF_LIST_REMOVE_SAFE, static __DYNSTUFF_LIST_DESTROY) char **events_all | |
static int | event_protocol_message (void *data, va_list ap) |
static int | event_avail (void *data, va_list ap) |
static int | event_online (void *data, va_list ap) |
static int | event_offline (void *data, va_list ap) |
static int | event_away (void *data, va_list ap) |
static int | event_na (void *data, va_list ap) |
static int | event_descr (void *data, va_list ap) |
static int | event_misc (void *data, va_list ap) |
static int | ekg_day_timer (int type, void *data) |
static void | events_add_handler (char *name, void *function) |
static event_t * | event_find (const char *name, const char *target) |
static event_t * | event_find_id (unsigned int id) |
static int | event_remove (unsigned int id, int quiet) |
static int | events_list (int id, int quiet) |
static int | event_target_check (char *buf) |
static int | event_check (const char *session, const char *name, const char *uid, const char *data) |
int | cmd_on (const char *name, const char **params, session_t *session, const char *target, int quiet) |
int | event_add (const char *name, int prio, const char *target, const char *action, int quiet) |
void | event_free () |
static event_t * | event_find_all (const char *name, const char *session, const char *uid, const char *target, const char *data) |
int | events_init () |
static int | event_target_check_compare (char *buf) |
Zmienne | |
event_t * | events = NULL |
int | config_display_day_changed = 1 |
#define dayischanged | ( | x | ) | (oldtm->tm_##x != tm->tm_##x) |
#define s separators[i] |
int cmd_on | ( | const char * | name, |
const char ** | params, | ||
session_t * | session, | ||
const char * | target, | ||
int | quiet | ||
) |
DYNSTUFF_LIST_DECLARE_SORTED | ( | events | , |
event_t | , | ||
event_add_compare | , | ||
list_event_free | , | ||
static | __DYNSTUFF_LIST_ADD_SORTED, | ||
static | __DYNSTUFF_LIST_REMOVE_SAFE, | ||
static | __DYNSTUFF_LIST_DESTROY | ||
) |
static int ekg_day_timer | ( | int | type, |
void * | data | ||
) | [static] |
int event_add | ( | const char * | name, |
int | prio, | ||
const char * | target, | ||
const char * | action, | ||
int | quiet | ||
) |
static int event_avail | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int event_away | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int event_check | ( | const char * | session, |
const char * | name, | ||
const char * | uid, | ||
const char * | data | ||
) | [static] |
static int event_descr | ( | void * | data, |
va_list | ap | ||
) | [static] |
event_t * event_find | ( | const char * | name, |
const char * | target | ||
) | [static] |
static event_t* event_find_all | ( | const char * | name, |
const char * | session, | ||
const char * | uid, | ||
const char * | target, | ||
const char * | data | ||
) | [static] |
static event_t * event_find_id | ( | unsigned int | id | ) | [static] |
void event_free | ( | ) |
static int event_misc | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int event_na | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int event_offline | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int event_online | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int event_protocol_message | ( | void * | data, |
va_list | ap | ||
) | [static] |
static int event_remove | ( | unsigned int | id, |
int | quiet | ||
) | [static] |
static int event_target_check | ( | char * | buf | ) | [static] |
static int event_target_check_compare | ( | char * | buf | ) | [static] |
static void events_add_handler | ( | char * | name, |
void * | function | ||
) | [static] |
int events_init | ( | ) |
static int events_list | ( | int | id, |
int | quiet | ||
) | [static] |
static LIST_FREE_ITEM | ( | list_event_free | , |
struct event * | |||
) | [static] |
int config_display_day_changed = 1 |