Add the 'privilege' parameter to popup response callback
[platform/core/security/askuser.git] / src / client / include / askuser-notification-client.h
index 1b32d14..8398fdd 100644 (file)
@@ -43,6 +43,9 @@
 /*! \brief indicating that a connection error occurred */
 #define ASKUSER_API_CONNECTION_ERROR -4
 
+/*! \brief indicating that a request has already been sent */
+#define ASKUSER_API_ALREADY_IN_PROGRESS -5
+
 /** @} */
 
 /**
@@ -199,12 +202,14 @@ typedef void (*askuser_status_callback) (int fd, int events, void *p_user_data);
  *                          askuser_client_popup_request(). This should be
  *                          interpreted as a valid value only if cause is equal to
  *                          askuser_call_cause::ASKUSER_CALL_CAUSE_ANSWER.
+ * \param[in]   privilege   A privilege that has been checked.
  * \param[in]   p_user_data User specific data, this parameter was previously
  *                          passed to askuser_client_popup_request().
  */
 typedef void (*askuser_popup_response_callback) (int request_id,
                                                  askuser_call_cause cause,
                                                  askuser_popup_result result,
+                                                 const char *privilege,
                                                  void *p_user_data);
 
 /**