mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 15:12:11 +02:00
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
This commit is contained in:
parent
e88bd31323
commit
cad6fb2e19
3 changed files with 14 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue