~oif-team/geis/utopic

« back to all changes in this revision

Viewing changes to libutouch-geis/server/geis_dbus_server.h

  • Committer: Stephen M. Webb
  • Date: 2011-08-18 22:07:20 UTC
  • mto: (158.1.39 client-arch)
  • mto: This revision was merged to the branch mainline in revision 166.
  • Revision ID: stephen.webb@canonical.com-20110818220720-v443m85qsxf41e87
Introduced a skeletal geis-dbus server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * @file geis_backend_dbus.h
3
 
 * @brief internal GEIS DBUS Server
4
 
 *
 
2
 * @file geis_dbus_server.h
 
3
 * @brief Interface for the GEIS DBus server.
 
4
 *
 
5
 * The GEIS DBus server offers remote GEIS functionality over a set of managed
 
6
 * DBus connections.
 
7
 *
 
8
 * This header is for internal GEIS use only and contains no client
 
9
 * (externally-visible) symbols.
 
10
 */
 
11
 
 
12
/*
5
13
 * Copyright 2011 Canonical Ltd.
6
14
 *
7
15
 * This library is free software; you can redistribute it and/or modify it under
14
22
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15
23
 * details.
16
24
 *
17
 
 * You should have received a copy of the GNU Lesser General Public License
18
 
 * along with this program; if not, write to the Free Software Foundation, Inc.,
19
 
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
25
 * You should have received a copy of the GNU General Public License
 
26
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
27
 */
21
28
#ifndef GEIS_DBUS_SERVER_H_
22
29
#define GEIS_DBUS_SERVER_H_
23
30
 
24
 
#include "geis_backend.h"
25
 
 
26
 
#define GEIS_DBUS_MAX_BUS_NAME_LEN    64
27
 
#define GEIS_DBUS_MAX_BUS_OBJECT_LEN  64
28
 
 
29
 
typedef struct _GeisDBus
30
 
{
31
 
  DBusConnection *conn;
32
 
  int             fd;
33
 
  char            busname[GEIS_DBUS_MAX_BUS_NAME_LEN];
34
 
  char            busobject[GEIS_DBUS_MAX_BUS_OBJECT_LEN];
35
 
} GeisDBus;
36
 
 
37
 
/**
38
 
 * Constructs a new GEIS DBUS Server.
39
 
 *
40
 
 * @param[in] geis The API instance the Server will run in.
41
 
 *
42
 
 * The uTouch stack in Ubuntu Natty use DBUS to coordinate gesture and touch
43
 
 * information between Unity and Applications.
44
 
 */
45
 
GeisDBus* geis_server_dbus_new(Geis geis);
46
 
 
47
 
#endif /* GEIS_SERVER_DBUS_H_ */
 
31
#include "geis/geis.h"
 
32
#include "geis_dbus_dispatcher.h"
 
33
 
 
34
typedef struct GeisDBusServer *GeisDBusServer;
 
35
 
 
36
 
 
37
/**
 
38
 * Creates a new %GeisDBusServer object.
 
39
 */
 
40
GeisDBusServer
 
41
geis_dbus_server_new(Geis geis);
 
42
 
 
43
/**
 
44
 * Destroys a %GeisDBusServer.
 
45
 *
 
46
 * @param[in]  server  A GeisDBusServer.
 
47
 */
 
48
void
 
49
geis_dbus_server_delete(GeisDBusServer server);
 
50
 
 
51
/**
 
52
 * Gets the address of a %GeisDBusServer.
 
53
 *
 
54
 * @param[in]  server  A GeisDBusServer.
 
55
 */
 
56
char *
 
57
geis_dbus_server_address(GeisDBusServer server);
 
58
 
 
59
/**
 
60
 * Gets the server dispatcher.
 
61
 *
 
62
 * @param[in]  server  A GeisDBusServer.
 
63
 */
 
64
GeisDBusDispatcher
 
65
geis_dbus_server_dispatcher(GeisDBusServer server);
 
66
 
 
67
#endif /* GEIS_DBUS_SERVER_H_ */