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.
23 #include "bluetooth-api.h"
24 #include "bt-internal-types.h"
26 #include "bt-service-common.h"
27 #include "bt-service-event.h"
28 #include "bt-service-util.h"
29 #include "bt-service-obex-server.h"
32 GDBusMethodInvocation *reply_context;
51 bt_auth_info_t *auth_info;
52 bt_server_info_t *native_server;
53 bt_server_info_t *custom_server;
54 } bt_obex_agent_info_t;
56 static bt_obex_agent_info_t agent_info;
58 int _bt_obex_server_allocate(char *sender, const char *dest_path, int app_pid, gboolean is_native)
60 return BLUETOOTH_ERROR_NOT_SUPPORT;
63 int _bt_obex_server_deallocate(int app_pid, gboolean is_native)
65 return BLUETOOTH_ERROR_NOT_SUPPORT;
68 int _bt_obex_server_accept_authorize(const char *filename, gboolean is_native)
70 BT_CHECK_PARAMETER(filename, return);
72 return BLUETOOTH_ERROR_NOT_SUPPORT;
75 int _bt_obex_server_reject_authorize(void)
77 return BLUETOOTH_ERROR_NOT_SUPPORT;
80 int _bt_obex_server_set_destination_path(const char *dest_path,
83 BT_CHECK_PARAMETER(dest_path, return);
85 return BLUETOOTH_ERROR_NOT_SUPPORT;
88 int _bt_obex_server_set_root(const char *root)
90 BT_CHECK_PARAMETER(root, return);
92 return BLUETOOTH_ERROR_NOT_SUPPORT;
95 int _bt_obex_server_cancel_transfer(int transfer_id)
97 return BLUETOOTH_ERROR_NOT_SUPPORT;
100 int _bt_obex_server_cancel_all_transfers(void)
102 return BLUETOOTH_ERROR_NOT_SUPPORT;
105 int _bt_obex_server_is_activated(gboolean *activated)
107 BT_CHECK_PARAMETER(activated, return);
109 return BLUETOOTH_ERROR_NOT_SUPPORT;
112 /* To support the BOT */
113 int _bt_obex_server_accept_connection(int request_id)
115 return BLUETOOTH_ERROR_NOT_SUPPORT;
118 /* To support the BOT */
119 int _bt_obex_server_reject_connection(void)
121 return BLUETOOTH_ERROR_NOT_SUPPORT;
124 int _bt_obex_server_is_receiving(gboolean *receiving)
126 BT_CHECK_PARAMETER(receiving, return);
128 return BLUETOOTH_ERROR_NOT_SUPPORT;
131 int _bt_obex_get_native_pid(void)
133 return agent_info.native_server->app_pid;