Code Sync [Tizen3.0]: Merged the tizen_2.4 Spin code to tizen.org
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / include / bt-service-obex-server.h
1 /*
2  * Bluetooth-frwk
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact:  Hocheol Seo <hocheol.seo@samsung.com>
7  *               Girishashok Joshi <girish.joshi@samsung.com>
8  *               Chanyeol Park <chanyeol.park@samsung.com>
9  *
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
13  *
14  *              http://www.apache.org/licenses/LICENSE-2.0
15  *
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.
21  *
22  */
23
24
25 #ifndef _BT_SERVICE_OBEX_SERVER_H_
26 #define _BT_SERVICE_OBEX_SERVER_H_
27
28 #include <glib.h>
29 #include <sys/types.h>
30 #include "bluetooth-api.h"
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 int _bt_register_obex_server(void);
37
38 int _bt_unregister_obex_server(void);
39
40 int _bt_obex_server_allocate(char *sender, const char *dest_path, int app_pid,
41                                 gboolean is_native);
42
43 int _bt_obex_server_deallocate(int app_pid, gboolean is_native);
44
45 int _bt_obex_server_accept_authorize(const char *filename, gboolean is_native);
46
47 int _bt_obex_server_reject_authorize(void);
48
49 int _bt_obex_server_set_destination_path(const char *dest_path,
50                                                 gboolean is_native);
51
52 int _bt_obex_server_set_root(const char *root);
53
54 int _bt_obex_server_cancel_transfer(int transfer_id);
55
56 int _bt_obex_server_cancel_all_transfers(void);
57
58 int _bt_obex_server_is_activated(gboolean *activated);
59
60 int _bt_obex_server_check_allocation(gboolean *allocation);
61
62 int _bt_obex_server_check_termination(char *sender);
63
64 int _bt_obex_server_accept_connection(int request_id);
65
66 int _bt_obex_server_reject_connection(void);
67
68 int _bt_obex_server_is_receiving(gboolean *receiving);
69
70
71 void _bt_obex_transfer_progress(const char *transfer_path,
72                                         int transferred);
73 void _bt_obex_transfer_completed(const char *transfer_path, gboolean success);
74
75 void _bt_obex_transfer_started(const char *transfer_path);
76
77 void _bt_obex_check_pending_transfer(const char *address);
78
79 void _bt_obex_transfer_connected(void);
80
81 void _bt_obex_transfer_disconnected(void);
82
83 #ifdef __cplusplus
84 }
85 #endif /* __cplusplus */
86 #endif /*_BT_SERVICE_OBEX_SERVER_H_*/
87