File: extensions-cli.c

package info (click to toggle)
telepathy-glib 0.24.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,756 kB
  • sloc: ansic: 124,638; xml: 34,410; sh: 4,531; python: 3,528; makefile: 1,722; javascript: 211; cpp: 16
file content (35 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "config.h"

#include "extensions.h"

#include <telepathy-glib/telepathy-glib.h>
#include <telepathy-glib/telepathy-glib-dbus.h>

#include <telepathy-glib/proxy-subclass.h>

static void _example_ext_register_dbus_glib_marshallers (void);

/* include auto-generated stubs for client-specific code */
#include "_gen/cli-connection-body.h"
#include "_gen/register-dbus-glib-marshallers-body.h"

static gpointer
example_cli_once (gpointer data)
{
  _example_ext_register_dbus_glib_marshallers ();

  tp_connection_init_known_interfaces ();

  tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_CONNECTION,
      example_cli_connection_add_signals);

  return NULL;
}

void
example_cli_init (void)
{
  static GOnce once = G_ONCE_INIT;

  g_once (&once, example_cli_once, NULL);
}