Add the privilege check for GATT SERVER APIs
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-event.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *              http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18
19 #ifndef _BT_SERVICE_EVENT_H_
20 #define _BT_SERVICE_EVENT_H_
21
22 #include <sys/types.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 int _bt_send_event(int event_type, int event, GVariant *param);
29
30 int _bt_send_event_to_dest(const char* dest, int event_type, int event, GVariant *param);
31
32 int _bt_init_service_event_sender(void);
33 void _bt_deinit_service_event_sender(void);
34
35 int _bt_init_service_event_receiver(void);
36 void _bt_deinit_service_event_receiver(void);
37
38 int _bt_opp_client_event_init(void);
39 void _bt_opp_client_event_deinit(void);
40
41 int _bt_send_hf_local_term_event(char *address);
42 int _bt_init_hf_local_term_event_sender(void);
43 void _bt_deinit_hf_local_term_event_sender(void);
44
45 #ifdef __cplusplus
46 }
47 #endif /* __cplusplus */
48 #endif /*_BT_SERVICE_EVENT_H_*/
49