* @retval #PHONE_NUMBER_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #PHONE_NUMBER_ERROR_IPC Unknown IPC error
* @retval #PHONE_NUMBER_ERROR_OUT_OF_MEMORY Out of memory
- *
+ * @pre phone_number_connect() should be called to open a connection to the phonenumber-utils service.
+ * @post phone_number_disconnect() should be called to close a connection to the phonenumber-utils service.
* @see phone_number_remove_blocking_rule()
*/
int phone_number_add_blocking_rule(phone_number_blocking_rule_h rule);
* @retval #PHONE_NUMBER_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #PHONE_NUMBER_ERROR_IPC Unknown IPC error
* @retval #PHONE_NUMBER_ERROR_OUT_OF_MEMORY Out of memory
- *
+ * @pre phone_number_connect() should be called to open a connection to the phonenumber-utils service.
+ * @post phone_number_disconnect() should be called to close a connection to the phonenumber-utils service.
* @see phone_number_add_blocking_rule()
*/
int phone_number_remove_blocking_rule(phone_number_blocking_rule_h rule);
* @retval #PHONE_NUMBER_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #PHONE_NUMBER_ERROR_IPC Unknown IPC error
* @retval #PHONE_NUMBER_ERROR_NO_DATA Data does not exist
+ * @pre phone_number_connect() should be called to open a connection to the phonenumber-utils service.
+ * @post phone_number_disconnect() should be called to close a connection to the phonenumber-utils service.
*/
int phone_number_get_blocking_rules(int offset, int limit, phone_number_blocking_rule_h **rules, int *length);
* @retval #PHONE_NUMBER_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #PHONE_NUMBER_ERROR_IPC Unknown IPC error
* @retval #PHONE_NUMBER_ERROR_NO_DATA Data does not exist
+ * @pre phone_number_connect() should be called to open a connection to the phonenumber-utils service.
+ * @post phone_number_disconnect() should be called to close a connection to the phonenumber-utils service.
*/
int phone_number_get_blocking_rules_related(const char *number, phone_number_blocking_rule_h **rules, int *length);
* @retval #PHONE_NUMBER_ERROR_DB_FAILED Database operation failure
* @retval #PHONE_NUMBER_ERROR_PERMISSION_DENIED Permission denied. This application does not have the privilege to call this method.
* @retval #PHONE_NUMBER_ERROR_IPC Unknown IPC error
+ * @pre phone_number_connect() should be called to open a connection to the phonenumber-utils service.
+ * @post phone_number_disconnect() should be called to close a connection to the phonenumber-utils service.
*/
int phone_number_check_blocking(const char *number, bool *is_blocked);