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.
25 #ifndef _BT_SERVICE_OBEX_SERVER_H_
26 #define _BT_SERVICE_OBEX_SERVER_H_
29 #include <sys/types.h>
30 #include "bluetooth-api.h"
36 int _bt_register_obex_server(void);
38 int _bt_unregister_obex_server(void);
40 int _bt_obex_server_allocate(char *sender, const char *dest_path, int app_pid,
43 int _bt_obex_server_deallocate(int app_pid, gboolean is_native);
45 int _bt_obex_server_accept_authorize(const char *filename, gboolean is_native);
47 int _bt_obex_server_reject_authorize(void);
49 int _bt_obex_server_set_destination_path(const char *dest_path,
52 int _bt_obex_server_set_root(const char *root);
54 int _bt_obex_server_cancel_transfer(int transfer_id);
56 int _bt_obex_server_cancel_all_transfers(void);
58 int _bt_obex_server_is_activated(gboolean *activated);
60 int _bt_obex_server_check_allocation(gboolean *allocation);
62 int _bt_obex_server_check_termination(char *sender);
64 int _bt_obex_server_accept_connection(int request_id);
66 int _bt_obex_server_reject_connection(void);
68 int _bt_obex_server_is_receiving(gboolean *receiving);
71 void _bt_obex_transfer_progress(const char *transfer_path,
73 void _bt_obex_transfer_completed(const char *transfer_path, gboolean success);
75 void _bt_obex_transfer_started(const char *transfer_path);
77 void _bt_obex_check_pending_transfer(const char *address);
79 void _bt_obex_transfer_connected(void);
81 void _bt_obex_transfer_disconnected(void);
83 int _bt_obex_get_native_pid(void);
87 #endif /* __cplusplus */
88 #endif /*_BT_SERVICE_OBEX_SERVER_H_*/