2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #ifndef _BT_SERVICE_OBEX_SERVER_H_
20 #define _BT_SERVICE_OBEX_SERVER_H_
23 #include <sys/types.h>
24 #include "bluetooth-api.h"
30 int _bt_register_obex_server(void);
32 int _bt_unregister_obex_server(void);
34 int _bt_obex_server_allocate(char *sender, const char *dest_path, int app_pid,
37 int _bt_obex_server_deallocate(int app_pid, gboolean is_native);
39 int _bt_obex_server_accept_authorize(const char *filename, gboolean is_native);
41 int _bt_obex_server_reject_authorize(void);
43 int _bt_obex_server_set_destination_path(const char *dest_path,
46 int _bt_obex_server_set_root(const char *root);
48 int _bt_obex_server_cancel_transfer(int transfer_id);
50 int _bt_obex_server_cancel_all_transfers(void);
52 int _bt_obex_server_is_activated(gboolean *activated);
54 int _bt_obex_server_check_allocation(gboolean *allocation);
56 int _bt_obex_server_check_termination(char *sender);
58 int _bt_obex_server_accept_connection(int request_id);
60 int _bt_obex_server_reject_connection(void);
62 int _bt_opp_get_server_progress(int transfer_id, guint8 *progress);
64 int _bt_obex_server_is_receiving(gboolean *receiving);
67 void _bt_obex_transfer_progress(const char *transfer_path,
69 void _bt_obex_transfer_completed(const char *transfer_path, gboolean success);
71 void _bt_obex_transfer_started(const char *transfer_path);
73 void _bt_obex_check_pending_transfer(const char *address);
75 void _bt_obex_transfer_connected(const char *obj_path);
77 void _bt_obex_transfer_disconnected(char *address);
79 int _bt_obex_get_native_pid(void);
81 void _bt_obex_server_reply_accept(void);
85 #endif /* __cplusplus */
86 #endif /*_BT_SERVICE_OBEX_SERVER_H_*/