int wifi_aware_gdbus_open_ndp(wifi_aware_data_path_h data_path,
int client_id, uint16_t pub_sub_id, unsigned int peer_id,
+ const char *service_name,
wifi_aware_data_path_role_e role, int port,
GAsyncReadyCallback cb);
int wifi_aware_gdbus_open_ndp_psk(wifi_aware_data_path_h data_path,
int client_id, uint16_t pub_sub_id, unsigned int peer_id,
+ const char *service_name,
wifi_aware_data_path_role_e role, int port,
const char *psk, GAsyncReadyCallback cb);
int wifi_aware_gdbus_open_ndp_pmk(wifi_aware_data_path_h data_path,
int client_id, uint16_t pub_sub_id, unsigned int peer_id,
+ const char *service_name,
wifi_aware_data_path_role_e role, int port,
const unsigned char *pmk,
GAsyncReadyCallback cb);
_wifi_aware_get_client_id(),
_wifi_aware_session_get_pub_sub_id(ndp->session),
_wifi_aware_peer_get_id(ndp->peer),
+ _wifi_aware_session_get_service_name(ndp->session),
ndp->role,
ndp->port,
__data_path_open_reply);
_wifi_aware_get_client_id(),
_wifi_aware_session_get_pub_sub_id(ndp->session),
_wifi_aware_peer_get_id(ndp->peer),
+ _wifi_aware_session_get_service_name(ndp->session),
ndp->role,
ndp->port,
ndp->psk,
_wifi_aware_get_client_id(),
_wifi_aware_session_get_pub_sub_id(ndp->session),
_wifi_aware_peer_get_id(ndp->peer),
+ _wifi_aware_session_get_service_name(ndp->session),
ndp->role,
ndp->port,
ndp->pmk,
}
static GVariant *__create_ndp_open_request_param(int client_id, uint16_t pub_sub_id,
- unsigned int peer_id, wifi_aware_data_path_role_e role, int port)
+ unsigned int peer_id, const char *service_name,
+ wifi_aware_data_path_role_e role, int port)
{
- return g_variant_new("(iquii)", client_id, pub_sub_id, peer_id, role, port);
+ return g_variant_new("(iqusii)", client_id, pub_sub_id, peer_id, service_name, role, port);
}
static GVariant *__append_param_psk(GVariant *params, const char *psk)
int wifi_aware_gdbus_open_ndp(wifi_aware_data_path_h data_path,
int client_id, uint16_t pub_sub_id, unsigned int peer_id,
+ const char *service_name,
wifi_aware_data_path_role_e role, int port,
GAsyncReadyCallback cb)
{
GVariant *params = NULL;
int ret = WIFI_AWARE_ERROR_NONE;
- params = __create_ndp_open_request_param(client_id, pub_sub_id, peer_id, role, port);
+ params = __create_ndp_open_request_param(client_id, pub_sub_id, peer_id,
+ service_name, role, port);
WIFI_AWARE_LOGD("created parameters");
DBUS_DEBUG_VARIANT(params);
int wifi_aware_gdbus_open_ndp_psk(wifi_aware_data_path_h data_path,
int client_id, uint16_t pub_sub_id, unsigned int peer_id,
+ const char *service_name,
wifi_aware_data_path_role_e role, int port, const char *psk,
GAsyncReadyCallback cb)
{
GVariant *params_psk = NULL;
int ret = WIFI_AWARE_ERROR_NONE;
- params = __create_ndp_open_request_param(client_id, pub_sub_id, peer_id, role, port);
+ params = __create_ndp_open_request_param(client_id, pub_sub_id, peer_id,
+ service_name, role, port);
params_psk = __append_param_psk(params, psk);
g_variant_unref(params);
WIFI_AWARE_LOGD("created parameters");
int wifi_aware_gdbus_open_ndp_pmk(wifi_aware_data_path_h data_path,
int client_id, uint16_t pub_sub_id, unsigned int peer_id,
+ const char *service_name,
wifi_aware_data_path_role_e role, int port, const unsigned char *pmk,
GAsyncReadyCallback cb)
{
GVariant *params_pmk = NULL;
int ret = WIFI_AWARE_ERROR_NONE;
- params = __create_ndp_open_request_param(client_id, pub_sub_id, peer_id, role, port);
+ params = __create_ndp_open_request_param(client_id, pub_sub_id, peer_id,
+ service_name, role, port);
params_pmk = __append_param_pmk(params, pmk);
g_variant_unref(params);
WIFI_AWARE_LOGD("created parameters");