File: maliitbus.h

package info (click to toggle)
maliit-framework 2.3.0-3.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,488 kB
  • sloc: cpp: 13,098; ansic: 2,506; xml: 299; sh: 34; makefile: 23; sed: 4
file content (56 lines) | stat: -rw-r--r-- 2,148 bytes parent folder | download | duplicates (2)
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
/* This file is part of Maliit framework
 *
 * Copyright (C) 2015 Canonical Ltd
 *
 *
 * 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 licence, 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., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef MALIIT_GLIB_BUS_H
#define MALIIT_GLIB_BUS_H

#include <gio/gio.h>

#include <maliit-glib/maliitserver.h>
#include <maliit-glib/maliitcontext.h>

G_BEGIN_DECLS

gboolean        maliit_is_running         (void);

void            maliit_get_server         (GCancellable         *cancellable,
                                           GAsyncReadyCallback   callback,
                                           gpointer              user_data);

MaliitServer *  maliit_get_server_finish  (GAsyncResult         *res,
                                           GError              **error);

MaliitServer *  maliit_get_server_sync    (GCancellable         *cancellable,
                                           GError              **error);

void            maliit_get_context        (GCancellable         *cancellable,
                                           GAsyncReadyCallback   callback,
                                           gpointer              user_data);

MaliitContext * maliit_get_context_finish (GAsyncResult         *res,
                                           GError              **error);

MaliitContext * maliit_get_context_sync   (GCancellable         *cancellable,
                                           GError              **error);

G_END_DECLS

#endif /* MALIIT_GLIB_BUS_H */