diff options
author | Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im> | 2012-06-07 10:47:50 +0000 |
---|---|---|
committer | Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im> | 2012-06-07 10:47:50 +0000 |
commit | d10aaf921e8d9025ba28f99f4c62c76ab13fd96f (patch) | |
tree | 981e70db5b771653c1408ee10d46a34e42c3bf7c /libpurple/eventloop.h | |
parent | dd53ec6cd32d30bf42831c2a3c0512ad68269d6b (diff) | |
download | pidgin-d10aaf921e8d9025ba28f99f4c62c76ab13fd96f.tar.gz |
New custom resolver, that uses libpurple for DNS queries. Get rid of old win32 resolver. Refs#343. Fixes #6263
Diffstat (limited to 'libpurple/eventloop.h')
-rw-r--r-- | libpurple/eventloop.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libpurple/eventloop.h b/libpurple/eventloop.h index 01465a150a..27a11f592d 100644 --- a/libpurple/eventloop.h +++ b/libpurple/eventloop.h @@ -240,6 +240,24 @@ gboolean purple_input_remove(guint handle); int purple_input_get_error(int fd, int *error); +/** + * Creates a pipe - an unidirectional data channel that can be used for + * interprocess communication. + * + * File descriptors for both ends of pipe will be written into provided array. + * The first one (pipefd[0]) can be used for reading, the second one (pipefd[1]) + * for writing. + * + * On Windows it's simulated by creating a pair of connected sockets, on other + * systems pipe() is used. + * + * @param pipefd Array used to return file descriptors for both ends of pipe. + * + * @return @c 0 on success, @c -1 on error. + */ +int +purple_input_pipe(int pipefd[2]); + /*@}*/ |