static gboolean handle_ggzmod (GIOChannel * channel, GIOCondition cond, gpointer data) { GGZMod *mod = data; return (ggzmod_dispatch (mod) >= 0); }
/**************************************************************************** Called when the ggz socket has data pending. ****************************************************************************/ void input_from_ggz(int socket) { if (ggzmod_dispatch(ggzmod) < 0) { disconnect_from_server(); } }