mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 23:51:06 +00:00
Initial revision
This commit is contained in:
22
watch.h
Normal file
22
watch.h
Normal file
@ -0,0 +1,22 @@
|
||||
#include <glib.h>
|
||||
|
||||
/*
|
||||
* Watching file descriptors
|
||||
*/
|
||||
typedef void (* WatchCallback) (gpointer data);
|
||||
|
||||
void fd_add_watch (gint fd,
|
||||
gpointer data);
|
||||
void fd_set_read_callback (gint fd,
|
||||
WatchCallback read_cb);
|
||||
void fd_set_write_callback (gint fd,
|
||||
WatchCallback write_cb);
|
||||
void fd_set_hangup_callback (gint fd,
|
||||
WatchCallback hangup_cb);
|
||||
void fd_set_error_callback (gint fd,
|
||||
WatchCallback error_cb);
|
||||
void fd_set_priority_callback (gint fd,
|
||||
WatchCallback priority_cb);
|
||||
void fd_remove_watch (gint fd);
|
||||
gboolean fd_is_watched (gint fd);
|
||||
|
||||
Reference in New Issue
Block a user