summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-timeout.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-01-19 22:29:52 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-01-19 22:29:52 +0000
commit84f2a1ad2f867f9397de449365f80c5c003296fa (patch)
tree9089cb081c154e3686e6a88bb043c5c0686f736e /dbus/dbus-timeout.h
parentf0dbc1bdd06e1cb4f32b7fe05ee1287ae5f9df85 (diff)
Add these.
Diffstat (limited to 'dbus/dbus-timeout.h')
-rw-r--r--dbus/dbus-timeout.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/dbus/dbus-timeout.h b/dbus/dbus-timeout.h
new file mode 100644
index 00000000..b596bfa1
--- /dev/null
+++ b/dbus/dbus-timeout.h
@@ -0,0 +1,60 @@
+/* -*- mode: C; c-file-style: "gnu" -*- */
+/* dbus-timeout.h DBusTimeout internal interfaces
+ *
+ * Copyright (C) 2003 CodeFactory AB
+ *
+ * Licensed under the Academic Free License version 1.2
+ *
+ * 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
+ *
+ */
+#ifndef DBUS_TIMEOUT_H
+#define DBUS_TIMEOUT_H
+
+#include <dbus/dbus-connection.h>
+#include <dbus/dbus-internals.h>
+
+DBUS_BEGIN_DECLS;
+
+typedef struct DBusTimeoutList DBusTimeoutList;
+
+/* Public methods on DBusTimeout are in dbus-connection.h */
+
+typedef void (* DBusTimeoutHandler) (void *data);
+
+DBusTimeout* _dbus_timeout_new (int interval,
+ DBusTimeoutHandler handler,
+ void *data,
+ DBusFreeFunction free_data_function);
+void _dbus_timeout_ref (DBusTimeout *timeout);
+void _dbus_timeout_unref (DBusTimeout *timeout);
+
+
+DBusTimeoutList *_dbus_timeout_list_new (void);
+void _dbus_timeout_list_free (DBusTimeoutList *timeout_list);
+void _dbus_timeout_list_set_functions (DBusTimeoutList *timeout_list,
+ DBusAddTimeoutFunction add_function,
+ DBusRemoveTimeoutFunction remove_function,
+ void *data,
+ DBusFreeFunction free_data_function);
+dbus_bool_t _dbus_timeout_list_add_timeout (DBusTimeoutList *timeout_list,
+ DBusTimeout *timeout);
+void _dbus_timeout_list_remove_timeout (DBusTimeoutList *timeout_list,
+ DBusTimeout *timeout);
+
+
+DBUS_END_DECLS;
+
+#endif /* DBUS_TIMEOUT_H */