summaryrefslogtreecommitdiff
path: root/dbus/dbus-timeout.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-20 14:42:13 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-20 20:49:36 +0000
commit6bcf34d4c24d7c690aff01269d8575289f901728 (patch)
tree394ccb5b33991f5be195f02ae8279c3bfd6cca4d /dbus/dbus-timeout.h
parentdbd731491b19df3df4edf597ea7b646b76576b07 (diff)
downloaddbus-6bcf34d4c24d7c690aff01269d8575289f901728.tar.gz
Add DBUS_PRIVATE_EXPORT decoration to symbols used by dbus-daemon or tests
The rules are: * symbols in libdbus-1 with neither decoration are private to libdbus-1 * symbols in libdbus-1 with DBUS_EXPORT are public API * symbols in libdbus-1 with DBUS_PRIVATE_EXPORT are private to the dbus source package, but may be used by other programs in the dbus source tree, including tests * symbols in libdbus-internal must not have DBUS_EXPORT or DBUS_PRIVATE_EXPORT, and should be used by as few things as possible Thanks to Ralf Habacker for his contributions to this rather large commit. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83115 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Diffstat (limited to 'dbus/dbus-timeout.h')
-rw-r--r--dbus/dbus-timeout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dbus/dbus-timeout.h b/dbus/dbus-timeout.h
index d0a8af4a..c652bb7b 100644
--- a/dbus/dbus-timeout.h
+++ b/dbus/dbus-timeout.h
@@ -40,14 +40,18 @@ typedef struct DBusTimeoutList DBusTimeoutList;
/** function to run when the timeout is handled */
typedef dbus_bool_t (* DBusTimeoutHandler) (void *data);
+DBUS_PRIVATE_EXPORT
DBusTimeout* _dbus_timeout_new (int interval,
DBusTimeoutHandler handler,
void *data,
DBusFreeFunction free_data_function);
DBusTimeout* _dbus_timeout_ref (DBusTimeout *timeout);
+DBUS_PRIVATE_EXPORT
void _dbus_timeout_unref (DBusTimeout *timeout);
+DBUS_PRIVATE_EXPORT
void _dbus_timeout_set_interval (DBusTimeout *timeout,
int interval);
+DBUS_PRIVATE_EXPORT
void _dbus_timeout_set_enabled (DBusTimeout *timeout,
dbus_bool_t enabled);