mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Remove gui_timeout_add/remove, gui_input_add/remove and lib-nongui, use
Glib instead. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@151 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3d690fd378
commit
90fb674a9b
@ -17,4 +17,4 @@ noinst_HEADERS = \
|
||||
irssi-plugin.h \
|
||||
irssi-plugin-gui.h
|
||||
|
||||
SUBDIRS = irc-base irc-extra ui-common lib-config lib-nongui lib-popt settings $(GNOMEUI) $(TEXTUI) $(BOTUI)
|
||||
SUBDIRS = irc-base irc-extra ui-common lib-config lib-popt settings $(GNOMEUI) $(TEXTUI) $(BOTUI)
|
||||
|
22
src/common.h
22
src/common.h
@ -70,23 +70,19 @@ IPADDR;
|
||||
#include "lib-config/irssi-config.h"
|
||||
#include "common-setup.h"
|
||||
|
||||
/* GUI library must provide these functions: */
|
||||
|
||||
typedef enum
|
||||
{
|
||||
GUI_INPUT_READ = 1 << 0,
|
||||
GUI_INPUT_WRITE = 1 << 1,
|
||||
GUI_INPUT_EXCEPTION = 1 << 2
|
||||
} GUIInputCondition;
|
||||
G_INPUT_READ = 1 << 0,
|
||||
G_INPUT_WRITE = 1 << 1,
|
||||
G_INPUT_EXCEPTION = 1 << 2
|
||||
} GInputCondition;
|
||||
|
||||
typedef void (*GUIInputFunction) (gpointer data, gint handle, GUIInputCondition condition);
|
||||
typedef gint (*GUITimeoutFunction) (gpointer data);
|
||||
typedef void (*GInputFunction) (gpointer data, int source,
|
||||
GInputCondition condition);
|
||||
|
||||
gint gui_input_add(gint handle, GUIInputCondition condition,
|
||||
GUIInputFunction function, gpointer data);
|
||||
void gui_input_remove(gint tag);
|
||||
int g_input_add(int source, GInputCondition condition,
|
||||
GInputFunction function, gpointer data);
|
||||
|
||||
guint gui_timeout_add(guint32 interval, GUITimeoutFunction function, gpointer data);
|
||||
void gui_timeout_remove(gint tag);
|
||||
#define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1)
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user