2
* call-stream-endpoint.h - Header for TpyCallStreamEndpoint
3
* Copyright (C) 2009 Collabora Ltd.
4
* @author Sjoerd Simons <sjoerd.simons@collabora.co.uk>
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
#ifndef __TPY_CALL_STREAM_ENDPOINT_H__
22
#define __TPY_CALL_STREAM_ENDPOINT_H__
24
#include <glib-object.h>
26
#include <telepathy-glib/dbus-properties-mixin.h>
27
#include <telepathy-glib/dbus.h>
29
#include <telepathy-yell/enums.h>
33
typedef struct _TpyCallStreamEndpoint TpyCallStreamEndpoint;
34
typedef struct _TpyCallStreamEndpointPrivate
35
TpyCallStreamEndpointPrivate;
36
typedef struct _TpyCallStreamEndpointClass TpyCallStreamEndpointClass;
38
struct _TpyCallStreamEndpointClass {
39
GObjectClass parent_class;
41
TpDBusPropertiesMixinClass dbus_props_class;
44
struct _TpyCallStreamEndpoint {
47
TpyCallStreamEndpointPrivate *priv;
50
GType tpy_call_stream_endpoint_get_type (void);
53
#define TPY_TYPE_CALL_STREAM_ENDPOINT \
54
(tpy_call_stream_endpoint_get_type ())
55
#define TPY_CALL_STREAM_ENDPOINT(obj) \
56
(G_TYPE_CHECK_INSTANCE_CAST((obj), \
57
TPY_TYPE_CALL_STREAM_ENDPOINT, TpyCallStreamEndpoint))
58
#define TPY_CALL_STREAM_ENDPOINT_CLASS(klass) \
59
(G_TYPE_CHECK_CLASS_CAST((klass), \
60
TPY_TYPE_CALL_STREAM_ENDPOINT, TpyCallStreamEndpointClass))
61
#define TPY_IS_CALL_STREAM_ENDPOINT(obj) \
62
(G_TYPE_CHECK_INSTANCE_TYPE((obj), TPY_TYPE_CALL_STREAM_ENDPOINT))
63
#define TPY_IS_CALL_STREAM_ENDPOINT_CLASS(klass) \
64
(G_TYPE_CHECK_CLASS_TYPE((klass), TPY_TYPE_CALL_STREAM_ENDPOINT))
65
#define TPY_CALL_STREAM_ENDPOINT_GET_CLASS(obj) \
66
(G_TYPE_INSTANCE_GET_CLASS ((obj), \
67
TPY_TYPE_CALL_STREAM_ENDPOINT, TpyCallStreamEndpointClass))
69
TpyCallStreamEndpoint *tpy_call_stream_endpoint_new (
70
TpDBusDaemon *dbus_daemon,
71
const gchar *object_path,
72
TpyStreamTransportType type);
74
void tpy_call_stream_endpoint_add_new_candidates (
75
TpyCallStreamEndpoint *endpoint,
76
GPtrArray *candidates);
77
void tpy_call_stream_endpoint_add_new_candidate (
78
TpyCallStreamEndpoint *endpoint,
79
TpyStreamComponent component,
82
const GHashTable *info_hash);
84
const gchar *tpy_call_stream_endpoint_get_object_path (
85
TpyCallStreamEndpoint *endpoint);
89
#endif /* #ifndef __TPY_CALL_STREAM_ENDPOINT_H__*/