~ubuntu-branches/ubuntu/maverick/indicator-applet/maverick

« back to all changes in this revision

Viewing changes to libindicate/dbus-listener-client.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell, Ted Gould
  • Date: 2009-08-05 00:22:54 UTC
  • Revision ID: james.westby@ubuntu.com-20090805002254-fzamyyqlltcru23z
Tags: 0.2.0~bzr319-0ubuntu1
[ Ted Gould ]
* Merging in upstream code to split out libindicate-gtk
* debian/control:
  * Changing the version number of libindcate to 2 to match
    the .so numbering.
  * Creating packages for libindicate-gtk
* Added libindicate-gtk-dev.install and libindicate-gtk0.install
  for the new library.
* Renamed libindicate1.install to libindicate2.install to match
  the package name change.
* Modified libindicate-dev to be more specific about the header
  files that it grabs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Generated by dbus-binding-tool; do not edit! */
2
 
 
3
 
#include <glib.h>
4
 
#include <dbus/dbus-glib.h>
5
 
 
6
 
G_BEGIN_DECLS
7
 
 
8
 
#ifndef _DBUS_GLIB_ASYNC_DATA_FREE
9
 
#define _DBUS_GLIB_ASYNC_DATA_FREE
10
 
static
11
 
#ifdef G_HAVE_INLINE
12
 
inline
13
 
#endif
14
 
void
15
 
_dbus_glib_async_data_free (gpointer stuff)
16
 
{
17
 
        g_slice_free (DBusGAsyncData, stuff);
18
 
}
19
 
#endif
20
 
 
21
 
#ifndef DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_indicator_listener
22
 
#define DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_indicator_listener
23
 
 
24
 
static
25
 
#ifdef G_HAVE_INLINE
26
 
inline
27
 
#endif
28
 
gboolean
29
 
org_freedesktop_indicator_listener_get_indicator_servers (DBusGProxy *proxy, char *** OUT_server_ids, GError **error)
30
 
 
31
 
{
32
 
  return dbus_g_proxy_call (proxy, "GetIndicatorServers", error, G_TYPE_INVALID, G_TYPE_STRV, OUT_server_ids, G_TYPE_INVALID);
33
 
}
34
 
 
35
 
typedef void (*org_freedesktop_indicator_listener_get_indicator_servers_reply) (DBusGProxy *proxy, char * *OUT_server_ids, GError *error, gpointer userdata);
36
 
 
37
 
static void
38
 
org_freedesktop_indicator_listener_get_indicator_servers_async_callback (DBusGProxy *proxy, DBusGProxyCall *call, void *user_data)
39
 
{
40
 
  DBusGAsyncData *data = (DBusGAsyncData*) user_data;
41
 
  GError *error = NULL;
42
 
  char ** OUT_server_ids;
43
 
  dbus_g_proxy_end_call (proxy, call, &error, G_TYPE_STRV, &OUT_server_ids, G_TYPE_INVALID);
44
 
  (*(org_freedesktop_indicator_listener_get_indicator_servers_reply)data->cb) (proxy, OUT_server_ids, error, data->userdata);
45
 
  return;
46
 
}
47
 
 
48
 
static
49
 
#ifdef G_HAVE_INLINE
50
 
inline
51
 
#endif
52
 
DBusGProxyCall*
53
 
org_freedesktop_indicator_listener_get_indicator_servers_async (DBusGProxy *proxy, org_freedesktop_indicator_listener_get_indicator_servers_reply callback, gpointer userdata)
54
 
 
55
 
{
56
 
  DBusGAsyncData *stuff;
57
 
  stuff = g_slice_new (DBusGAsyncData);
58
 
  stuff->cb = G_CALLBACK (callback);
59
 
  stuff->userdata = userdata;
60
 
  return dbus_g_proxy_begin_call (proxy, "GetIndicatorServers", org_freedesktop_indicator_listener_get_indicator_servers_async_callback, stuff, _dbus_glib_async_data_free, G_TYPE_INVALID);
61
 
}
62
 
#endif /* defined DBUS_GLIB_CLIENT_WRAPPERS_org_freedesktop_indicator_listener */
63
 
 
64
 
G_END_DECLS