Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
hotkeys.h File Reference
#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.nosp@m.l@sc.nosp@m.herba.nosp@m..ru More...
 
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.nosp@m.l@sc.nosp@m.herba.nosp@m..ru More...
 
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

ksnetHotkeysClassksnetHotkeysInit (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
 

Macro Definition Documentation

#define _keys_non_blocking_stop (   kh)
Value:
tcsetattr(0, TCSANOW, &kh->initial_settings); \
kh->non_blocking = 0

Stop keyboard non-blocking mode.

Parameters
kh
Examples:
teoackm.c.

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 Documentation

Hot keys class data.

Monitor timer data.

Peer timer data.

File: hotkeys.h Author: Kirill Scherba kiril.nosp@m.l@sc.nosp@m.herba.nosp@m..ru

Created on April 16, 2015, 10:43 PM

Hot keys monitor module Ping timer data

TR UDP timer data.

Function Documentation

void _keys_non_blocking_start ( ksnetHotkeysClass kh)

Start keyboard non-blocking mode.

Parameters
kh

References ECHO, ksnetHotkeysClass::new_settings, and ksnetHotkeysClass::non_blocking.

Referenced by event_cb(), hotkeys_cb(), and ksnetHotkeysInit().

void ksnetHotkeysDestroy ( ksnetHotkeysClass kh)
unsigned char teoFilterFlagCheck ( void *  ke)
void teoHotkeySetFilter ( ksnetHotkeysClass hotkeys,
char *  filter 
)
unsigned char teoLogCheck ( void *  ke,
void *  log 
)

Variable Documentation

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