" <arg type='u' name='id' direction='in'/>"
" <arg type='q' name='offset' direction='in'/>"
" <arg type='b' name='response_needed' direction='in'/>"
+" <arg type='b' name='prep_authorize' direction='in'/>"
" <arg type='ay' name='value' direction='in'/>"
" </method>"
" <method name ='AcquireWrite'>"
" <arg type='u' name='id' direction='in'/>"
" <arg type='q' name='offset' direction='in'/>"
" <arg type='b' name='response_needed' direction='in'/>"
+" <arg type='b' name='prep_authorize' direction='in'/>"
" <arg type='ay' name='value' direction='in'/>"
" </method>"
" </interface>"
guint req_id = 0;
guint16 offset = 0;
gboolean response_needed = FALSE;
+ gboolean prep_authorize = FALSE;
struct hal_ev_gatt_server_write_req ev;
int desc_hdl = -1;
int len;
DBG("Application path = %s", object_path);
DBG("Sender = %s", sender);
- g_variant_get(parameters, "(&suqb@ay)",
- &addr, &req_id, &offset, &response_needed, &var);
+ g_variant_get(parameters, "(&suqbb@ay)",
+ &addr, &req_id, &offset, &response_needed, &prep_authorize, &var);
DBG("Request id = %u, Offset = %u", req_id, offset);
+ if (prep_authorize)
+ DBG("prep_authorize = true");
+
/* Check if device is already in connected list */
conn_info = __bt_find_remote_gatt_client_info(addr);
guint req_id = 0;
guint16 offset = 0;
gboolean response_needed = FALSE;
+ gboolean prep_authorize = FALSE;
struct hal_ev_gatt_server_write_req ev;
int char_hdl = -1;
int len;
DBG("WriteValue : Application path %s, sender %s", object_path, sender);
- g_variant_get(parameters, "(&suqb@ay)",
- &addr, &req_id, &offset, &response_needed, &var);
+ g_variant_get(parameters, "(&suqbb@ay)",
+ &addr, &req_id, &offset, &response_needed, &prep_authorize, &var);
DBG("Request id = %u, Offset = %u", req_id, offset);
+ if (prep_authorize)
+ DBG("prep_authorize = true");
+
svc_info = __bt_gatt_find_gatt_service_from_char(object_path, &char_hdl);
/* Check if device is already in connected list */