Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

dbus-timeout.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */ 00002 /* dbus-timeout.h DBusTimeout internal interfaces 00003 * 00004 * Copyright (C) 2003 CodeFactory AB 00005 * 00006 * Licensed under the Academic Free License version 2.1 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 * 00022 */ 00023 #ifndef DBUS_TIMEOUT_H 00024 #define DBUS_TIMEOUT_H 00025 00026 #include <dbus/dbus-connection.h> 00027 #include <dbus/dbus-internals.h> 00028 00029 DBUS_BEGIN_DECLS; 00030 00031 typedef struct DBusTimeoutList DBusTimeoutList; 00032 00033 /* Public methods on DBusTimeout are in dbus-connection.h */ 00034 00035 typedef dbus_bool_t (* DBusTimeoutHandler) (void *data); 00036 00037 DBusTimeout* _dbus_timeout_new (int interval, 00038 DBusTimeoutHandler handler, 00039 void *data, 00040 DBusFreeFunction free_data_function); 00041 DBusTimeout* _dbus_timeout_ref (DBusTimeout *timeout); 00042 void _dbus_timeout_unref (DBusTimeout *timeout); 00043 void _dbus_timeout_set_interval (DBusTimeout *timeout, 00044 int interval); 00045 void _dbus_timeout_set_enabled (DBusTimeout *timeout, 00046 dbus_bool_t enabled); 00047 00048 DBusTimeoutList *_dbus_timeout_list_new (void); 00049 void _dbus_timeout_list_free (DBusTimeoutList *timeout_list); 00050 dbus_bool_t _dbus_timeout_list_set_functions (DBusTimeoutList *timeout_list, 00051 DBusAddTimeoutFunction add_function, 00052 DBusRemoveTimeoutFunction remove_function, 00053 DBusTimeoutToggledFunction toggled_function, 00054 void *data, 00055 DBusFreeFunction free_data_function); 00056 dbus_bool_t _dbus_timeout_list_add_timeout (DBusTimeoutList *timeout_list, 00057 DBusTimeout *timeout); 00058 void _dbus_timeout_list_remove_timeout (DBusTimeoutList *timeout_list, 00059 DBusTimeout *timeout); 00060 void _dbus_timeout_list_toggle_timeout (DBusTimeoutList *timeout_list, 00061 DBusTimeout *timeout, 00062 dbus_bool_t enabled); 00063 00064 00065 DBUS_END_DECLS; 00066 00067 #endif /* DBUS_TIMEOUT_H */

Generated on Tue Oct 12 02:07:54 2004 for D-BUS by doxygen 1.3.7