diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-11-08 11:51:54 +0100 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-01-10 09:52:43 +0100 |
commit | 3fb5a0f0d3b5cf26257ac972ebdc853dd88de2a1 (patch) | |
tree | 4cb3824c417a870860741338deeeda22521c8900 /telepathy-glib/call-misc.c | |
parent | 45d9a2b8758edfedd15fc4203236918fdfa6fe14 (diff) | |
download | telepathy-glib-3fb5a0f0d3b5cf26257ac972ebdc853dd88de2a1.tar.gz |
Generate lowlevel API for Call1 spec
Add skeleton for TpCallChannel, TpCallContent and TpCallStream
Diffstat (limited to 'telepathy-glib/call-misc.c')
-rw-r--r-- | telepathy-glib/call-misc.c | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/telepathy-glib/call-misc.c b/telepathy-glib/call-misc.c new file mode 100644 index 000000000..a653d57c6 --- /dev/null +++ b/telepathy-glib/call-misc.c @@ -0,0 +1,127 @@ +/* + * call.c - misc low level API for Call + * + * Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/** + * SECTION:call-misc + * @title: Misc Call APIs + * @short_description: Misc generated APISs for Call + * + * This contains generated APIs to be used by #TpCallChannel, #TpCallStream, + * #TpCallContent or telepathy-farstream. Should not be needed for normal + * clients. + */ + +#include <config.h> + +#include "telepathy-glib/call-misc.h" +#include "telepathy-glib/errors.h" +#include "telepathy-glib/interfaces.h" +#include "telepathy-glib/proxy-subclass.h" + +#include "_gen/tp-cli-call-content-media-description-body.h" +#include "_gen/tp-cli-call-mute-body.h" +#include "_gen/tp-cli-call-stream-endpoint-body.h" + +/** + * tp_call_mute_init_known_interfaces: + * + * Ensure that the known interfaces for #TpProxy have been set up. + * This is done automatically when necessary, but for correct + * overriding of library interfaces by local extensions, you should + * call this function before calling + * tp_proxy_or_subclass_hook_on_interface_add() with first argument + * %TP_TYPE_PROXY. + * + * Since: 0.UNRELEASED + */ +void +tp_call_mute_init_known_interfaces (void) +{ + static gsize once = 0; + + if (g_once_init_enter (&once)) + { + GType tp_type = TP_TYPE_PROXY; + + tp_proxy_init_known_interfaces (); + tp_proxy_or_subclass_hook_on_interface_add (tp_type, + tp_cli_call_mute_add_signals); + + g_once_init_leave (&once, 1); + } +} + +/** + * tp_call_stream_endpoint_init_known_interfaces: + * + * Ensure that the known interfaces for #TpProxy have been set up. + * This is done automatically when necessary, but for correct + * overriding of library interfaces by local extensions, you should + * call this function before calling + * tp_proxy_or_subclass_hook_on_interface_add() with first argument + * %TP_TYPE_PROXY. + * + * Since: 0.UNRELEASED + */ +void +tp_call_stream_endpoint_init_known_interfaces (void) +{ + static gsize once = 0; + + if (g_once_init_enter (&once)) + { + GType tp_type = TP_TYPE_PROXY; + + tp_proxy_init_known_interfaces (); + tp_proxy_or_subclass_hook_on_interface_add (tp_type, + tp_cli_call_stream_endpoint_add_signals); + + g_once_init_leave (&once, 1); + } +} + +/** + * tp_call_content_media_description_init_known_interfaces: + * + * Ensure that the known interfaces for #TpProxy have been set up. + * This is done automatically when necessary, but for correct + * overriding of library interfaces by local extensions, you should + * call this function before calling + * tp_proxy_or_subclass_hook_on_interface_add() with first argument + * %TP_TYPE_PROXY. + * + * Since: 0.UNRELEASED + */ +void +tp_call_content_media_description_init_known_interfaces (void) +{ + static gsize once = 0; + + if (g_once_init_enter (&once)) + { + GType tp_type = TP_TYPE_PROXY; + + tp_proxy_init_known_interfaces (); + tp_proxy_or_subclass_hook_on_interface_add (tp_type, + tp_cli_call_content_media_description_add_signals); + + g_once_init_leave (&once, 1); + } +} |