Apply the initial codes for BT emulator
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-emul / include / bt-service-obex-server.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_OBEX_SERVER_H_
20 #define _BT_SERVICE_OBEX_SERVER_H_
21
22 #include <glib.h>
23 #include <sys/types.h>
24 #include "bluetooth-api.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 int _bt_obex_server_allocate(char *sender, const char *dest_path, int app_pid,
31                                 gboolean is_native);
32
33 int _bt_obex_server_deallocate(int app_pid, gboolean is_native);
34
35 int _bt_obex_server_accept_authorize(const char *filename, gboolean is_native);
36
37 int _bt_obex_server_reject_authorize(void);
38
39 int _bt_obex_server_set_destination_path(const char *dest_path,
40                                                 gboolean is_native);
41
42 int _bt_obex_server_set_root(const char *root);
43
44 int _bt_obex_server_cancel_transfer(int transfer_id);
45
46 int _bt_obex_server_cancel_all_transfers(void);
47
48 int _bt_obex_server_is_activated(gboolean *activated);
49
50 int _bt_obex_server_check_allocation(gboolean *allocation);
51
52 int _bt_obex_server_check_termination(char *sender);
53
54 int _bt_obex_server_accept_connection(int request_id);
55
56 int _bt_obex_server_reject_connection(void);
57
58 int _bt_obex_server_is_receiving(gboolean *receiving);
59
60 int _bt_obex_get_native_pid(void);
61
62 #ifdef __cplusplus
63 }
64 #endif /* __cplusplus */
65 #endif /*_BT_SERVICE_OBEX_SERVER_H_*/
66