Dual license dbus helpers to match the libdbus licensing
[ladish.git] / dbus / types.h
blob1e35a11fb0237c524f30a99267b03cb6c6210315
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*
3 * LADI Session Handler (ladish)
5 * Copyright (C) 2009 Nedko Arnaudov <nedko@arnaudov.name>
6 * Copyright (C) 2008 Juuso Alasuutari <juuso.alasuutari@gmail.com>
8 **************************************************************************
9 * This file contains typdefs for internal structs (obsolete)
10 **************************************************************************
12 * Licensed under the Academic Free License version 2.1
14 * LADI Session Handler is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
19 * LADI Session Handler is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with LADI Session Handler. If not, see <http://www.gnu.org/licenses/>
26 * or write to the Free Software Foundation, Inc.,
27 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
30 #ifndef __LASH_DBUS_TYPES_H__
31 #define __LASH_DBUS_TYPES_H__
33 #include <stdbool.h>
35 /* signal types */
36 typedef struct _signal_msg signal_msg_t;
37 typedef struct _signal_arg signal_arg_t;
38 typedef struct _signal signal_t;
40 /* method types */
41 typedef struct _method_msg method_msg_t;
42 typedef struct _method_call method_call_t;
43 typedef struct _method_arg method_arg_t;
44 typedef struct _method method_t;
45 typedef void (*method_handler_t) (method_call_t *call);
47 /* interface types */
48 typedef struct _interface interface_t;
49 typedef bool (*interface_handler_t) (const interface_t *, method_call_t *);
51 /* service types */
52 typedef struct _service service_t;
54 #endif /* __LASH_DBUS_TYPES_H__ */