Merge "bt-api: Do not log the _bt_check_privilege() using macro" into tizen_3.0
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-emul / include / bt-service-event-manager.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_MANAGER_H_
20 #define _BT_SERVICE_EVENT_MANAGER_H_
21
22 #include <sys/types.h>
23 #include <bt-service-common.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 typedef enum {
30         BT_EVENT_TIMER_ENABLE = 0x00,
31         BT_EVENT_TIMER_DISABLE,
32         BT_EVENT_TIMER_START_DISCOVERY,
33         BT_EVENT_TIMER_STOP_DISCOVERY,
34         BT_EVENT_TIMER_FOUND_DEVICE,
35         BT_EVENT_MAX
36 } bt_event_timer_e;
37
38
39 void _bt_create_event_timer(int event_id, int interval, void *event_cb, void *user_data);
40
41 void _bt_delete_event_timer(int event_id);
42
43 void _bt_delete_all_event_timer(void);
44
45 int _bt_get_sample_device_number(void);
46
47 bt_remote_dev_info_t *_bt_get_sample_device(int index);
48
49
50 #ifdef __cplusplus
51 }
52 #endif /* __cplusplus */
53 #endif /*_BT_SERVICE_EVENT_MANAGER_H_*/
54