comparison include/mb_backend.h @ 986:c39d14139ca5 refine_backend_if

Implement IO manager interface for X
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 22 Nov 2010 00:42:29 +0800
parents bab9c0f836b9
children 8dd42310dd79
comparison
equal deleted inserted replaced
985:bab9c0f836b9 986:c39d14139ca5
66 66
67 extern mb_backend_t backend; 67 extern mb_backend_t backend;
68 68
69 /*! \brief Type of IO that registered with an IO manager. 69 /*! \brief Type of IO that registered with an IO manager.
70 */ 70 */
71 enum MB_IO_TYPE {MB_IO_R, MB_IO_W, MB_IO_RW}; 71 enum MB_IO_TYPE {MB_IO_DUMMY, MB_IO_R, MB_IO_W, MB_IO_RW};
72 72
73 /*! \brief Function signature of callback functions for IO requests. 73 /*! \brief Function signature of callback functions for IO requests.
74 */ 74 */
75 typedef void (*mb_IO_cb_t)(int fd, MB_IO_TYPE type, void *data); 75 typedef void (*mb_IO_cb_t)(int fd, MB_IO_TYPE type, void *data);
76 76