Teonet library
0.4.7
|
#include "config/config.h"
#include <ev.h>
#include <sys/termios.h>
#include "config/conf.h"
#include "net_core.h"
#include "utils/string_arr.h"
Go to the source code of this file.
Data Structures | |
struct | ping_timer_data |
File: hotkeys.h Author: Kirill Scherba kiril l@sc herba .ruMore... | |
struct | monitor_timer_data |
Monitor timer data. More... | |
struct | tr_udp_timer_data |
TR UDP timer data. More... | |
struct | peer_timer_data |
Peer timer data. More... | |
struct | ksnetHotkeysClass |
Hot keys class data. More... | |
Macros | |
#define | PING_LEN 5 |
#define | TRACE_LEN 6 |
#define | MONITOR_LEN 8 |
#define | TRIPTIME_LEN 9 |
#define | _keys_non_blocking_stop(kh) |
Stop keyboard non-blocking mode. More... | |
Typedefs | |
typedef struct ping_timer_data | ping_timer_data |
File: hotkeys.h Author: Kirill Scherba kiril l@sc herba .ruMore... | |
typedef struct monitor_timer_data | monitor_timer_data |
Monitor timer data. More... | |
typedef struct tr_udp_timer_data | tr_udp_timer_data |
TR UDP timer data. More... | |
typedef struct peer_timer_data | peer_timer_data |
Peer timer data. More... | |
typedef struct ksnetHotkeysClass | ksnetHotkeysClass |
Hot keys class data. More... | |
Functions | |
ksnetHotkeysClass * | ksnetHotkeysInit (void *ke) |
Initialize hot keys module. More... | |
void | ksnetHotkeysDestroy (ksnetHotkeysClass *kh) |
De-initialize hot key module. More... | |
void | teoHotkeySetFilter (ksnetHotkeysClass *hotkeys, char *filter) |
unsigned char | teoFilterFlagCheck (void *ke) |
unsigned char | teoLogCheck (void *ke, void *log) |
void | _keys_non_blocking_start (ksnetHotkeysClass *kh) |
Start keyboard non-blocking mode. More... | |
Variables | |
const char * | PING |
const char * | TRACE |
const char * | MONITOR |
const char * | TRIPTIME |
#define _keys_non_blocking_stop | ( | kh | ) |
Stop keyboard non-blocking mode.
kh |
Referenced by event_cb(), hotkeys_cb(), and ksnetHotkeysDestroy().
#define MONITOR_LEN 8 |
Referenced by monitor_timer_one_cb().
#define PING_LEN 5 |
Referenced by ping_timer_cb().
#define TRACE_LEN 6 |
Referenced by hotkeys_cb().
#define TRIPTIME_LEN 9 |
Referenced by check_connected_cb().
typedef struct ksnetHotkeysClass ksnetHotkeysClass |
Hot keys class data.
typedef struct monitor_timer_data monitor_timer_data |
Monitor timer data.
typedef struct peer_timer_data peer_timer_data |
Peer timer data.
typedef struct ping_timer_data ping_timer_data |
typedef struct tr_udp_timer_data tr_udp_timer_data |
TR UDP timer data.
void _keys_non_blocking_start | ( | ksnetHotkeysClass * | kh | ) |
Start keyboard non-blocking mode.
kh |
References ECHO, ksnetHotkeysClass::new_settings, and ksnetHotkeysClass::non_blocking.
Referenced by event_cb(), hotkeys_cb(), and ksnetHotkeysInit().
void ksnetHotkeysDestroy | ( | ksnetHotkeysClass * | kh | ) |
De-initialize hot key module.
kh |
References _keys_non_blocking_stop, ksnetEvMgrClass::ev_loop, free(), ke, ksnetHotkeysClass::ke, ksnetEvMgrClass::kh, and ksnetHotkeysClass::stdin_w.
Referenced by hotkeys_cb(), and modules_destroy().
ksnetHotkeysClass* ksnetHotkeysInit | ( | void * | ke | ) |
Initialize hot keys module.
ke |
References _keys_non_blocking_start(), ksnetHotkeysClass::filter, ksnetHotkeysClass::filter_f, idle_stdin_cb(), ksnetHotkeysClass::idle_stdin_w, kc, ke, ksnetHotkeysClass::ke, malloc(), ksnetHotkeysClass::mt, ksnetHotkeysClass::peer_m, peer_timer_init(), ksnetHotkeysClass::pet, ksnetHotkeysClass::pt, ksnetHotkeysClass::put, stdin_cb(), ksnetHotkeysClass::stdin_w, ksnetHotkeysClass::tr_udp_m, ksnetHotkeysClass::tr_udp_queues_m, tr_udp_timer_init(), ksnetHotkeysClass::wait_y, and Y_NONE.
Referenced by modules_init().
unsigned char teoFilterFlagCheck | ( | void * | ke | ) |
void teoHotkeySetFilter | ( | ksnetHotkeysClass * | hotkeys, |
char * | filter | ||
) |
References ksnetHotkeysClass::filter, hotkeysResetFilter(), and malloc().
Referenced by hotkeys_cb(), and modules_init().
unsigned char teoLogCheck | ( | void * | ke, |
void * | log | ||
) |
const char * MONITOR |
Referenced by monitor_timer_one_cb().
const char* PING |
Referenced by hotkeys_cb(), and ping_timer_cb().
const char * TRACE |
Referenced by hotkeys_cb().
const char * TRIPTIME |
Referenced by check_connected_cb().