4 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #ifndef _BT_SERVICE_OBEX_SERVER_H_
21 #define _BT_SERVICE_OBEX_SERVER_H_
24 #include <sys/types.h>
25 #include "bluetooth-api.h"
31 int _bt_register_obex_server(void);
33 int _bt_unregister_obex_server(void);
35 int _bt_obex_server_allocate(char *sender, const char *dest_path, int app_pid,
38 int _bt_obex_server_deallocate(int app_pid, gboolean is_native);
40 int _bt_obex_server_accept_authorize(const char *filename, gboolean is_native);
42 int _bt_obex_server_reject_authorize(void);
44 int _bt_obex_server_set_destination_path(const char *dest_path,
47 int _bt_obex_server_set_root(const char *root);
49 int _bt_obex_server_cancel_transfer(int transfer_id);
51 int _bt_obex_server_cancel_all_transfers(void);
53 int _bt_obex_server_is_activated(gboolean *activated);
55 int _bt_obex_server_check_allocation(gboolean *allocation);
57 int _bt_obex_server_check_termination(char *sender);
59 int _bt_obex_server_accept_connection(int request_id);
61 int _bt_obex_server_reject_connection(void);
63 int _bt_obex_server_is_receiving(gboolean *receiving);
65 void _bt_obex_transfer_started(const char *transfer_path);
67 void _bt_obex_transfer_progress(const char *transfer_path,
70 void _bt_obex_transfer_completed(const char *transfer_path, gboolean success);
76 #endif /* __cplusplus */
77 #endif /*_BT_SERVICE_OBEX_SERVER_H_*/