From ece7f8a0bc6f4b45e931ce2634f79fe6c84a18c9 Mon Sep 17 00:00:00 2001 From: koral Date: Thu, 10 Feb 2011 14:57:01 +0100 Subject: Moves I/O functions to a dedicated source file. --- src/io.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/io.h (limited to 'src/io.h') 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 + +/*@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 -- cgit v1.2.3