summaryrefslogtreecommitdiff
path: root/src/core/misc.h
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-04-25 08:42:47 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-04-25 08:42:47 +0000
commitcad6fb2e19ef5abb78d880d9a09aa4ebf6a6db24 (patch)
tree7513d1d6fbac4dc72f441b070633dac1aa251733 /src/core/misc.h
parente88bd3132328cbd80d39ad8f95b308e2d20d04d1 (diff)
downloadirssi-cad6fb2e19ef5abb78d880d9a09aa4ebf6a6db24.zip
Refactor code to create a watcher for an fd into a function.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4813 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/misc.h')
-rw-r--r--src/core/misc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/misc.h b/src/core/misc.h
index 22914bdb..72a48e5f 100644
--- a/src/core/misc.h
+++ b/src/core/misc.h
@@ -1,6 +1,9 @@
#ifndef __MISC_H
#define __MISC_H
+int g_input_add_poll(int fd, int priority, int condition,
+ GInputFunction function, void *data);
+
/* `str' should be type char[MAX_INT_STRLEN] */
#define ltoa(str, num) \
g_snprintf(str, sizeof(str), "%d", num)