mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
23 lines
749 B
C
23 lines
749 B
C
#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);
|
|
|