a1025699da0355cb7fb4e3e238b95c3a43e1626e
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-obex-server.h
1 /*
2  * bluetooth-frwk
3  *
4  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *              http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef _BT_SERVICE_OBEX_SERVER_H_
21 #define _BT_SERVICE_OBEX_SERVER_H_
22
23 #include <glib.h>
24 #include <sys/types.h>
25 #include "bluetooth-api.h"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 int _bt_register_obex_server(void);
32
33 int _bt_unregister_obex_server(void);
34
35 int _bt_obex_server_allocate(char *sender, const char *dest_path, int app_pid,
36                                 gboolean is_native);
37
38 int _bt_obex_server_deallocate(int app_pid, gboolean is_native);
39
40 int _bt_obex_server_accept_authorize(const char *filename, gboolean is_native);
41
42 int _bt_obex_server_reject_authorize(void);
43
44 int _bt_obex_server_set_destination_path(const char *dest_path,
45                                                 gboolean is_native);
46
47 int _bt_obex_server_set_root(const char *root);
48
49 int _bt_obex_server_cancel_transfer(int transfer_id);
50
51 int _bt_obex_server_cancel_all_transfers(void);
52
53 int _bt_obex_server_is_activated(gboolean *activated);
54
55 int _bt_obex_server_check_allocation(gboolean *allocation);
56
57 int _bt_obex_server_check_termination(char *sender);
58
59 int _bt_obex_server_accept_connection(int request_id);
60
61 int _bt_obex_server_reject_connection(void);
62
63 int _bt_obex_server_is_receiving(gboolean *receiving);
64
65 void _bt_obex_transfer_started(const char *transfer_path);
66
67 void _bt_obex_transfer_progress(const char *transfer_path,
68                                         int transferred);
69
70 void _bt_obex_transfer_completed(const char *transfer_path, gboolean success);
71
72
73
74 #ifdef __cplusplus
75 }
76 #endif /* __cplusplus */
77 #endif /*_BT_SERVICE_OBEX_SERVER_H_*/
78