2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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.
17 /*****************************************************************************
19 *****************************************************************************/
26 /*****************************************************************************
28 *****************************************************************************/
33 /*****************************************************************************
34 * Application Service Platform Daemon headers
35 *****************************************************************************/
36 #include "asp-manager-util.h"
37 #include "asp-service.h"
38 #include "asp-session.h"
40 #include "asp-tech-nan.h"
42 /*****************************************************************************
44 *****************************************************************************/
46 /* TODO : define service data structure */
48 /*****************************************************************************
50 *****************************************************************************/
52 /* TODO : define local memory for service data structure */
54 /*****************************************************************************
55 * Local Functions Definition
56 *****************************************************************************/
58 gint32 asp_tech_nan_init()
60 __ASP_LOG_FUNC_ENTER__;
63 __ASP_LOG_FUNC_EXIT__;
67 gint32 asp_tech_nan_deinit()
69 __ASP_LOG_FUNC_ENTER__;
72 __ASP_LOG_FUNC_EXIT__;
76 gint32 asp_tech_nan_advertise(asp_service_advertise_s *service, gint32 replace)
78 __ASP_LOG_FUNC_ENTER__;
81 __ASP_LOG_FUNC_EXIT__;
85 gint32 asp_tech_nan_cancel_advertise(asp_service_advertise_s *service)
87 __ASP_LOG_FUNC_ENTER__;
90 __ASP_LOG_FUNC_EXIT__;
94 gint32 asp_tech_nan_seek(asp_service_seek_s *service)
96 __ASP_LOG_FUNC_ENTER__;
99 __ASP_LOG_FUNC_EXIT__;
103 gint32 asp_tech_nan_cancel_seek(asp_service_seek_s *service)
105 __ASP_LOG_FUNC_ENTER__;
108 __ASP_LOG_FUNC_EXIT__;
112 gint32 asp_tech_nan_connect_session(asp_tech_session_request_params_s *params)
114 __ASP_LOG_FUNC_ENTER__;
117 __ASP_LOG_FUNC_EXIT__;
121 gint32 asp_tech_nan_confirm_session(const guint8 *session_mac, gint32 session_id, gint32 confirm, guint32 pin)
123 __ASP_LOG_FUNC_ENTER__;
126 __ASP_LOG_FUNC_EXIT__;
130 gint32 asp_tech_nan_destroy_connection(const guint8 *peer_id, gint32 peer_id_length)
132 __ASP_LOG_FUNC_ENTER__;
135 __ASP_LOG_FUNC_EXIT__;
139 gint32 asp_tech_nan_is_peer_connected(const guint8 *peer_id, gint32 peer_id_length, gint32 *is_connected)
141 __ASP_LOG_FUNC_ENTER__;
144 __ASP_LOG_FUNC_EXIT__;
148 asp_tech_ops_s asp_tech_nan_ops = {
149 .init = asp_tech_nan_init,
150 .deinit = asp_tech_nan_deinit,
151 .advertise = asp_tech_nan_advertise,
152 .cancel_advertise = asp_tech_nan_cancel_advertise,
153 .seek = asp_tech_nan_seek,
154 .cancel_seek = asp_tech_nan_cancel_seek,
155 .connect_session = asp_tech_nan_connect_session,
156 .confirm_session = asp_tech_nan_confirm_session,
157 .destroy_connection = asp_tech_nan_destroy_connection,
158 .is_peer_connected = asp_tech_nan_is_peer_connected,
159 .session_request_cb = NULL,
160 .session_request_cb_user_data = NULL,
161 .session_config_request_cb = NULL,
162 .connect_status_cb = NULL,
163 .connect_status_cb_user_data = NULL,
164 .ip_assigned_cb = NULL,
165 .ip_assigned_cb_user_data = NULL,