diff options
author | koral <koral@mailoo.org> | 2011-02-10 14:57:01 +0100 |
---|---|---|
committer | koral <koral@mailoo.org> | 2011-02-10 14:57:01 +0100 |
commit | ece7f8a0bc6f4b45e931ce2634f79fe6c84a18c9 (patch) | |
tree | e820930903e5da1cab71ef1129ccbb6db80a8eaf /src/io.h | |
parent | aa565b52f9f82b6c137b2af2178d7ffb9297f310 (diff) |
Moves I/O functions to a dedicated source file.
Diffstat (limited to 'src/io.h')
-rw-r--r-- | src/io.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/io.h b/src/io.h new file mode 100644 index 0000000..a6ea0a1 --- /dev/null +++ b/src/io.h @@ -0,0 +1,23 @@ +#ifndef __IO__ +#define __IO__ + +#include <glib/gstdio.h> + +/*@null@*/ gchar* +build_stream_name(int type, const gchar *dir); + +gboolean control_fifo(GIOChannel *gio, GIOCondition condition); + +/*@null@*/ gchar* +init_fifo(gchar *dir); + +gboolean control_stdin(GIOChannel *gio, GIOCondition condition); +void create_stdin(); + +/*@null@*/ gchar* +init_socket(gchar *dir); + +gboolean control_socket(GIOChannel *chan); +gboolean control_client_socket(GIOChannel *chan); + +#endif |