File: extensions-cli.c

package info (click to toggle)
empathy 2.30.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 20,248 kB
  • ctags: 6,575
  • sloc: ansic: 68,289; sh: 10,388; python: 2,431; xml: 1,355; makefile: 1,277
file content (31 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (3)
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
#include "extensions.h"

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

static void _emp_ext_register_dbus_glib_marshallers (void);

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

static gpointer
emp_cli_once (gpointer data)
{
  _emp_ext_register_dbus_glib_marshallers ();

  tp_proxy_init_known_interfaces ();

  tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_PROXY,
      emp_cli_misc_add_signals);

  return NULL;
}

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

  g_once (&once, emp_cli_once, NULL);
}