Mercurial > pidgin
view src/eventloop.c @ 8354:43dec50d8d51
[gaim-migrate @ 9078]
" An update to com_err on debian appears to have broken
the ability of the zephyr plugin to compile with krb4.
Here's a patch, tested against comerr-dev
2.1-1.34+1.35-WIP-2004.01.31-1 in debian, and an older
version of com_err local to MIT, that fixes this. I
haven't tested this against non-kerberized zephyr, or
against other versions of com_err. A lot of the comerr
(error table) related code appears to be unnecessary.
This also fixes two other issues:
1) Upon each login, every entry in the "Anyone" group
was getting added to the Buddies group. I didn't notice
this earlier, since I usually don't restart gaim very
often.
2) No more compile warnings.
This also replaces occurrences of ZGetSender and
ZGetRealm with gaim_zephyr_get_sender and
gaim_zephyr_get_realm(),
in preparation for getting gaim to alternately use an
external program, "tzc" to talk to zephyr."
--Arun A Tharuvai, aka, the lone gaim zepher user
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 27 Feb 2004 19:25:27 +0000 |
parents | ef881489396e |
children | 98c9a35541ed |
line wrap: on
line source
/** * @file eventloop.c Gaim Event Loop API * @ingroup core * * gaim * * Gaim is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "eventloop.h" static GaimEventLoopUiOps *eventloop_ui_ops = NULL; guint gaim_timeout_add(guint interval, GSourceFunc function, gpointer data) { GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); return ops->timeout_add(interval, function, data); } void gaim_timeout_remove(guint tag) { GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); return ops->timeout_remove(tag); } guint gaim_input_add(int source, GaimInputCondition condition, GaimInputFunction func, gpointer user_data) { GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); return ops->input_add(source, condition, func, user_data); } void gaim_input_remove(guint tag) { GaimEventLoopUiOps *ops = gaim_eventloop_get_ui_ops(); return ops->input_remove(tag); } void gaim_eventloop_set_ui_ops(GaimEventLoopUiOps *ops) { eventloop_ui_ops = ops; } GaimEventLoopUiOps * gaim_eventloop_get_ui_ops(void) { g_assert(eventloop_ui_ops != NULL); return eventloop_ui_ops; }