tizen 2.4 release
[adaptation/xorg/driver/xserver-xorg-module-lazyload.git] / src / module_lazyload_dbus.h
1 /**************************************************************************
2
3 xserver-xorg-module-lazyload
4
5 Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
6
7 Contact: Sung-Jin Park <sj76.park@samsung.com>
8          Sangjin LEE <lsj119@samsung.com>
9
10 Permission is hereby granted, free of charge, to any person obtaining a
11 copy of this software and associated documentation files (the
12 "Software"), to deal in the Software without restriction, including
13 without limitation the rights to use, copy, modify, merge, publish,
14 distribute, sub license, and/or sell copies of the Software, and to
15 permit persons to whom the Software is furnished to do so, subject to
16 the following conditions:
17
18 The above copyright notice and this permission notice (including the
19 next paragraph) shall be included in all copies or substantial portions
20 of the Software.
21
22 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
25 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
26 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30 **************************************************************************/
31
32 #ifndef __MODULE_LAZYLOAD_DBUS_H__
33 #define __MODULE_LAZYLOAD_DBUS_H__
34
35 #include <dbus/dbus.h>
36
37 typedef void (*MethodFunc) (void *data, int argc, char **argv, char *reply, int *len);
38
39 typedef struct _ModuleLazyloadDbusMethod
40 {
41     char       name[128];
42     MethodFunc func;
43     void       *data;
44
45     struct _ModuleLazyloadDbusMethod *next;
46 } ModuleLazyloadDbusMethod;
47
48 Bool moduleLazyloadDbusAddMethod    (ModuleLazyloadDbusMethod *method);
49 void moduleLazyloadDbusRemoveMethod (ModuleLazyloadDbusMethod *method);
50 Bool moduleLazyloadDbusConnect      (void);
51 void moduleLazyloadDbusDisconnect   (void);
52
53 #endif /* __MODULE_LAZYLOAD_DBUS_H__ */