view src/IO/iowatch.hh @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <corvid@lavabit.com>
date Thu, 23 Jun 2011 19:24:11 +0000
parents 6ee11bf9e3ea
children 85d1aa9de0e6
line wrap: on
line source
#ifndef __IO_WATCH_H__
#define __IO_WATCH_H__

/*
 * BUG: enum {READ = 1, WRITE = 4, EXCEPT = 8} borrowed from fltk/run.h
 */
#define DIO_READ    1
#define DIO_WRITE   4
#define DIO_EXCEPT  8

typedef void (*CbFunction_t)(int fd, void *data);

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

void a_IOwatch_add_fd(int fd,int when,CbFunction_t Callback,void *usr_data);
void a_IOwatch_remove_fd(int fd,int when);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __IO_WATCH_H__ */