4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hocheol Seo <hocheol.seo@samsung.com>
7 * Girishashok Joshi <girish.joshi@samsung.com>
8 * Chanyeol Park <chanyeol.park@samsung.com>
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
14 * http://www.apache.org/licenses/LICENSE-2.0
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.
24 #ifndef _BT_EVENT_HANDLER_H_
25 #define _BT_EVENT_HANDLER_H_
27 #include <sys/types.h>
28 #include <dbus/dbus.h>
34 #define EVENT_MATCH_RULE \
42 GDBusConnection *conn;
47 int _bt_init_event_handler(void);
49 int _bt_deinit_event_handler(void);
51 int _bt_register_event(int event_type, void *event_cb, void *user_data);
53 int _bt_unregister_event(int event_type);
55 bt_event_info_t *_bt_event_get_cb_data(int event_type);
57 void _bt_add_server(int server_fd);
59 void _bt_remove_server(int server_fd);
61 void _bt_add_push_request_id(int request_id);
63 void _bt_set_obex_server_id(int server_type);
65 int _bt_get_obex_server_id(void);
67 void _bt_register_name_owner_changed(void);
69 void _bt_unregister_name_owner_changed(void);
75 #endif /* _BT_EVENT_HANDLER_H_ */