File: api-cli.c

package info (click to toggle)
telepathy-stream-engine 0.5.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,200 kB
  • ctags: 554
  • sloc: sh: 8,913; ansic: 5,692; python: 1,929; makefile: 220; xml: 113
file content (29 lines) | stat: -rw-r--r-- 670 bytes parent folder | download
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
#include "api/api.h"

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

static void _se_api_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
stream_engine_cli_once (gpointer data G_GNUC_UNUSED)
{
  _se_api_register_dbus_glib_marshallers ();

  tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_PROXY,
      stream_engine_cli_misc_add_signals);

  return NULL;
}

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

  g_once (&once, stream_engine_cli_once, NULL);
}