~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to gio/gdbusnamewatching.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Author: David Zeuthen <davidz@redhat.com>
21
21
 */
22
22
 
 
23
#ifndef __G_DBUS_NAME_WATCHING_H__
 
24
#define __G_DBUS_NAME_WATCHING_H__
 
25
 
23
26
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
24
27
#error "Only <gio/gio.h> can be included directly."
25
28
#endif
26
29
 
27
 
#ifndef __G_DBUS_NAME_WATCHING_H__
28
 
#define __G_DBUS_NAME_WATCHING_H__
29
 
 
30
30
#include <gio/giotypes.h>
31
31
 
32
32
G_BEGIN_DECLS
49
49
 
50
50
/**
51
51
 * GBusNameVanishedCallback:
52
 
 * @connection: The #GDBusConnection the name is being watched on.
 
52
 * @connection: The #GDBusConnection the name is being watched on, or
 
53
 *     %NULL.
53
54
 * @name: The name being watched.
54
55
 * @user_data: User data passed to g_bus_watch_name().
55
56
 *
56
57
 * Invoked when the name being watched is known not to have to have a owner.
57
58
 *
 
59
 * This is also invoked when the #GDBusConection on which the watch was
 
60
 * established has been closed.  In that case, @connection will be
 
61
 * %NULL.
 
62
 *
58
63
 * Since: 2.26
59
64
 */
60
65
typedef void (*GBusNameVanishedCallback) (GDBusConnection *connection,
62
67
                                          gpointer         user_data);
63
68
 
64
69
 
 
70
GLIB_AVAILABLE_IN_ALL
65
71
guint g_bus_watch_name               (GBusType                  bus_type,
66
72
                                      const gchar              *name,
67
73
                                      GBusNameWatcherFlags      flags,
69
75
                                      GBusNameVanishedCallback  name_vanished_handler,
70
76
                                      gpointer                  user_data,
71
77
                                      GDestroyNotify            user_data_free_func);
 
78
GLIB_AVAILABLE_IN_ALL
72
79
guint g_bus_watch_name_on_connection (GDBusConnection          *connection,
73
80
                                      const gchar              *name,
74
81
                                      GBusNameWatcherFlags      flags,
76
83
                                      GBusNameVanishedCallback  name_vanished_handler,
77
84
                                      gpointer                  user_data,
78
85
                                      GDestroyNotify            user_data_free_func);
 
86
GLIB_AVAILABLE_IN_ALL
79
87
guint g_bus_watch_name_with_closures (GBusType                  bus_type,
80
88
                                      const gchar              *name,
81
89
                                      GBusNameWatcherFlags      flags,
82
90
                                      GClosure                 *name_appeared_closure,
83
91
                                      GClosure                 *name_vanished_closure);
 
92
GLIB_AVAILABLE_IN_ALL
84
93
guint g_bus_watch_name_on_connection_with_closures (
85
94
                                      GDBusConnection          *connection,
86
95
                                      const gchar              *name,
87
96
                                      GBusNameWatcherFlags      flags,
88
97
                                      GClosure                 *name_appeared_closure,
89
98
                                      GClosure                 *name_vanished_closure);
 
99
GLIB_AVAILABLE_IN_ALL
90
100
void  g_bus_unwatch_name             (guint                     watcher_id);
91
101
 
92
102
G_END_DECLS