83296dda49ee6e95f02e3d90bdab2401740fd21f
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-request-handler.h
1 /*
2  * Bluetooth-frwk
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Girishashok Joshi <girish.joshi@samsung.com>
8  *               Chanyeol Park <chanyeol.park@samsung.com>
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *              http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */
23
24
25 #ifndef _BT_REQUEST_HANDLER_H_
26 #define _BT_REQUEST_HANDLER_H_
27
28 #include <sys/types.h>
29 #include <dbus/dbus-glib.h>
30 #include <glib.h>
31 #include <glib-object.h>
32
33 #include "bt-internal-types.h"
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 #define BT_SERVICE_NAME "org.projectx.bt"
40 #define BT_SERVICE_PATH "/org/projectx/bt_service"
41
42 #define BT_SERVICE_TYPE (bt_service_get_type())
43
44 typedef struct _BtService
45 {
46     GObject object;
47 } BtService;
48
49 typedef struct _BtServiceClass
50 {
51     GObjectClass object_class;
52 } BtServiceClass;
53
54 gboolean bt_service_request(
55                 BtService *service,
56                 int service_type,
57                 int service_function,
58                 int request_type,
59                 GArray* in_param1,
60                 GArray* in_param2,
61                 GArray* in_param3,
62                 GArray* in_param4,
63                 GArray* in_param5,
64                 DBusGMethodInvocation *context);
65
66 int _bt_service_register(void);
67
68 void _bt_service_unregister(void);
69
70 #ifdef __cplusplus
71 }
72 #endif /* __cplusplus */
73 #endif /*_BT_REQUEST_HANDLER_H_*/
74