2
* call-stream.h - Header for TpyCallStream
3
* Copyright © 2009–2011 Collabora Ltd.
4
* @author Sjoerd Simons <sjoerd.simons@collabora.co.uk>
5
* @author Will Thompson <will.thompson@collabora.co.uk>
6
* @author Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
#ifndef TPY_CALL_STREAM_H
24
#define TPY_CALL_STREAM_H
26
#include <glib-object.h>
28
#include <telepathy-glib/telepathy-glib.h>
30
#include <telepathy-yell/enums.h>
34
typedef struct _TpyCallStream TpyCallStream;
35
typedef struct _TpyCallStreamPrivate TpyCallStreamPrivate;
36
typedef struct _TpyCallStreamClass TpyCallStreamClass;
38
struct _TpyCallStreamClass {
39
TpProxyClass parent_class;
42
struct _TpyCallStream {
45
TpyCallStreamPrivate *priv;
48
GType tpy_call_stream_get_type (void);
51
#define TPY_TYPE_CALL_STREAM \
52
(tpy_call_stream_get_type ())
53
#define TPY_CALL_STREAM(obj) \
54
(G_TYPE_CHECK_INSTANCE_CAST((obj), TPY_TYPE_CALL_STREAM, TpyCallStream))
55
#define TPY_CALL_STREAM_CLASS(klass) \
56
(G_TYPE_CHECK_CLASS_CAST((klass), TPY_TYPE_CALL_STREAM, \
58
#define TPY_IS_CALL_STREAM(obj) \
59
(G_TYPE_CHECK_INSTANCE_TYPE((obj), TPY_TYPE_CALL_STREAM))
60
#define TPY_IS_CALL_STREAM_CLASS(klass) \
61
(G_TYPE_CHECK_CLASS_TYPE((klass), TPY_TYPE_CALL_STREAM))
62
#define TPY_CALL_STREAM_GET_CLASS(obj) \
63
(G_TYPE_INSTANCE_GET_CLASS ((obj), TPY_TYPE_CALL_STREAM, \
66
TpySendingState tpy_call_stream_get_local_sending_state (
69
void tpy_call_stream_set_sending_async (TpyCallStream *self,
71
GAsyncReadyCallback callback,
73
gboolean tpy_call_stream_set_sending_finish (TpyCallStream *self,
77
void tpy_call_stream_request_receiving_async (TpyCallStream *self,
80
GAsyncReadyCallback callback,
82
gboolean tpy_call_stream_request_receiving_finish (TpyCallStream *self,