summaryrefslogtreecommitdiff
path: root/ytstenut/yts-client-internal.h
blob: de13ccf3f5b64db485caf9cd1c84c9f031ac5330 (plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * Copyright © 2011 Intel Corp.
 *
 * 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 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, see
 * <http://www.gnu.org/licenses/>.
 *
 * Authored by: Rob Staudinger <robsta@linux.intel.com>
 */

#ifndef YTS_CLIENT_INTERNAL_H
#define YTS_CLIENT_INTERNAL_H

#include <telepathy-ytstenut-glib/telepathy-ytstenut-glib.h>
#include <ytstenut/yts-client.h>
#include <ytstenut/yts-error.h>
#include <ytstenut/yts-metadata.h>

TpConnection *const
yts_client_get_tp_connection (YtsClient *client);

TpYtsStatus *const
yts_client_get_tp_status (YtsClient *client);

YtsError
yts_client_send_message (YtsClient    *client,
                         YtsContact   *contact,
                         char const   *service_id,
                         YtsMetadata  *message);

void
yts_client_emit_error (YtsClient  *self,
                       YtsError    error);

bool
yts_client_get_invocation_proxy (YtsClient   *self,
                                  char const   *invocation_id,
                                  YtsContact **contact,
                                  char const  **proxy_id);

GVariant *
yts_client_register_proxy (YtsClient  *self,
                            char const  *capability,
                            YtsContact *contact,
                            char const  *proxy_id);

bool
yts_client_unregister_proxy (YtsClient  *self,
                              char const  *capability,
                              char const  *proxy_id);

#endif /* YTS_CLIENT_INTERNAL_H */