RAPI
Data Structures | Defines | Typedefs | Functions | Variables
R_ext/eventloop.h File Reference
#include <sys/types.h>
Include dependency graph for eventloop.h:

Go to the source code of this file.

Data Structures

struct  _InputHandler

Defines

#define XActivity   1
#define StdinActivity   2

Typedefs

typedef void(* InputHandlerProc )(void *userData)
typedef struct _InputHandler InputHandler

Functions

InputHandlerinitStdinHandler (void)
void consoleInputHandler (unsigned char *buf, int len)
InputHandleraddInputHandler (InputHandler *handlers, int fd, InputHandlerProc handler, int activity)
InputHandlergetInputHandler (InputHandler *handlers, int fd)
int removeInputHandler (InputHandler **handlers, InputHandler *it)
InputHandlergetSelectedHandler (InputHandler *handlers, fd_set *mask)
fd_set * R_checkActivity (int usec, int ignore_stdin)
fd_set * R_checkActivityEx (int usec, int ignore_stdin, void(*intr)(void))
void R_runHandlers (InputHandler *handlers, fd_set *mask)
int R_SelectEx (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout, void(*intr)(void))

Variables

InputHandlerR_InputHandlers
void(* R_PolledEvents )(void)
int R_wait_usec

Define Documentation

#define StdinActivity   2
#define XActivity   1

Typedef Documentation

typedef struct _InputHandler InputHandler
typedef void(* InputHandlerProc)(void *userData)

Function Documentation

InputHandler* addInputHandler ( InputHandler handlers,
int  fd,
InputHandlerProc  handler,
int  activity 
)
void consoleInputHandler ( unsigned char *  buf,
int  len 
)
InputHandler* getInputHandler ( InputHandler handlers,
int  fd 
)
InputHandler* getSelectedHandler ( InputHandler handlers,
fd_set *  mask 
)
fd_set* R_checkActivity ( int  usec,
int  ignore_stdin 
)
fd_set* R_checkActivityEx ( int  usec,
int  ignore_stdin,
void(*)(void)  intr 
)
void R_runHandlers ( InputHandler handlers,
fd_set *  mask 
)
int R_SelectEx ( int  n,
fd_set *  readfds,
fd_set *  writefds,
fd_set *  exceptfds,
struct timeval *  timeout,
void(*)(void)  intr 
)
int removeInputHandler ( InputHandler **  handlers,
InputHandler it 
)

Variable Documentation

void(* R_PolledEvents)(void)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines