gio-2.0
gio-unix-2.0
dbus-1
+ capi-system-info
)
## API ##
EXPORT_API int sticker_data_create(sticker_data_h *data_handle)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_destroy(sticker_data_h data_handle)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_clone(sticker_data_h origin_handle, sticker_data_h *target_handle)
{
- sticker_data_h handle;
+ CHECK_STICKER_FEATURE();
+ sticker_data_h handle;
if (!origin_handle || !target_handle)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_get_app_id(sticker_data_h data_handle, char **app_id)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !app_id)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_set_uri(sticker_data_h data_handle, sticker_data_uri_type_e type, const char *uri)
{
- char *file_path = NULL;
+ CHECK_STICKER_FEATURE();
+ char *file_path = NULL;
if (!data_handle || !type || !uri)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_get_uri(sticker_data_h data_handle, sticker_data_uri_type_e *type, char **uri)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !type || !uri)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_foreach_keyword(sticker_data_h data_handle, sticker_data_keyword_foreach_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !callback)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_add_keyword(sticker_data_h data_handle, const char *keyword)
{
- GList *node;
+ CHECK_STICKER_FEATURE();
+ GList *node;
if (!data_handle || !keyword)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_remove_keyword(sticker_data_h data_handle, const char *keyword)
{
- GList *node;
+ CHECK_STICKER_FEATURE();
+ GList *node;
if (!data_handle || !keyword)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_set_group_name(sticker_data_h data_handle, const char *group)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !group)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_get_group_name(sticker_data_h data_handle, char **group)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !group)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_set_thumbnail(sticker_data_h data_handle, const char *thumbnail)
{
- char *file_path = NULL;
+ CHECK_STICKER_FEATURE();
+ char *file_path = NULL;
if (!data_handle || !thumbnail)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_get_thumbnail(sticker_data_h data_handle, char **thumbnail)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !thumbnail)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_set_description(sticker_data_h data_handle, const char *description)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !description)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_get_description(sticker_data_h data_handle, char **description)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !description)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_data_get_date(sticker_data_h data_handle, char **date)
{
+ CHECK_STICKER_FEATURE();
+
if (!data_handle || !date)
return STICKER_ERROR_INVALID_PARAMETER;
#define __TIZEN_UIX_STICKER_DEFS_H__
#include <tzplatform_config.h>
+#include <stdbool.h>
+#include <system_info.h>
#ifdef __cplusplus
extern "C" {
#define STICKER_CONSUMER_INTERFACE_NAME "org.tizen.sticker_consumer"
#define STICKER_PRIVILEGE_MEDIASTORAGE "http://tizen.org/privilege/mediastorage"
+#define STICKER_FEATURE_STICKER "tizen.org/feature/ui_service.sticker"
+#define CHECK_STICKER_FEATURE() \
+ do { \
+ bool is_supported = false; \
+ if (!system_info_get_platform_bool(STICKER_FEATURE_STICKER, &is_supported)) { \
+ if (is_supported == false) { \
+ LOGE("ui_service.sticker feature not supported"); \
+ return STICKER_ERROR_NOT_SUPPORTED; \
+ } \
+ } \
+ } while (0)
typedef enum {
STICKER_CLIENT_LIB_NONE,
EXPORT_API int sticker_consumer_create(sticker_consumer_h *consumer_handle)
{
- int ret;
+ CHECK_STICKER_FEATURE();
+ int ret;
if (!consumer_handle)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_consumer_destroy(sticker_consumer_h consumer_handle)
{
- LOGD("consumer_handle : %p", consumer_handle);
- int ret;
+ CHECK_STICKER_FEATURE();
+ int ret;
if (!consumer_handle)
return STICKER_ERROR_INVALID_PARAMETER;
+ LOGD("consumer_handle : %p", consumer_handle);
ret = sticker_dbus_shutdown(consumer_handle->gdbus_connection, &consumer_handle->server_monitor_id, &consumer_handle->monitor_id);
if (ret != STICKER_ERROR_NONE) {
LOGE("Failed to finalize dbus : %d", ret);
EXPORT_API int sticker_consumer_data_foreach_all(sticker_consumer_h consumer_handle, int offset, int count, int *result, sticker_consumer_data_foreach_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
int info_id;
int sticker_count = 0;
EXPORT_API int sticker_consumer_data_foreach_by_keyword(sticker_consumer_h consumer_handle, int offset, int count, int *result, const char *keyword, sticker_consumer_data_foreach_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
int info_id;
int sticker_count = 0;
EXPORT_API int sticker_consumer_data_foreach_by_group(sticker_consumer_h consumer_handle, int offset, int count, int *result, const char *group, sticker_consumer_data_foreach_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
int info_id;
int sticker_count = 0;
EXPORT_API int sticker_consumer_data_foreach_by_type(sticker_consumer_h consumer_handle, int offset, int count, int *result, sticker_data_uri_type_e type, sticker_consumer_data_foreach_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
int info_id;
int sticker_count = 0;
EXPORT_API int sticker_consumer_group_list_foreach_all(sticker_consumer_h consumer_handle, sticker_consumer_group_list_foreach_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
GList *list = NULL;
EXPORT_API int sticker_consumer_keyword_list_foreach_all(sticker_consumer_h consumer_handle, sticker_consumer_keyword_list_foreach_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
GList *list = NULL;
*
* @section CAPI_UIX_STICKER_MODULE_OVERVIEW Overview
* Using sticker library, a sticker application can provide sticker information to applications that want to read the sticker information as the standard specification.
+ *
+ * @section CAPI_UIX_STICKER_MODULE_FEATURE Related Feature
+ * This API is related with the following feature:\n
+ * - http://tizen.org/feature/ui_service.sticker
+ *
+ * It is recommended to design feature related codes in your application for reliability.\n
+ * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n
+ * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n
+ * More details on featuring your application can be found from <a href="https://developer.tizen.org/development/tizen-studio/native-tools/configuring-your-app/manifest-text-editor#feature"><b>Feature Element</b>.</a>
+ *
*/
* @retval #STICKER_ERROR_PERMISSION_DENIED Permission denied
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_consumer_destroy()
*/
int sticker_consumer_create(sticker_consumer_h *consumer_handle);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_consumer_create()
*/
int sticker_consumer_destroy(sticker_consumer_h consumer_handle);
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_consumer_data_foreach_cb() repeatedly for getting data.
* @see sticker_consumer_data_foreach_cb()
*/
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_consumer_data_foreach_cb() repeatedly for getting data.
* @see sticker_consumer_data_foreach_cb()
*/
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_consumer_data_foreach_cb() repeatedly for getting data.
* @see sticker_consumer_data_foreach_cb()
*/
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_consumer_data_foreach_cb() repeatedly for getting data.
* @see sticker_consumer_data_foreach_cb()
*/
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_consumer_group_list_foreach_cb() repeatedly for getting data.
* @see sticker_consumer_group_list_foreach_cb()
*/
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_consumer_keyword_list_foreach_cb() repeatedly for getting data.
* @see sticker_consumer_keyword_list_foreach_cb()
*/
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_destroy()
*/
int sticker_data_create(sticker_data_h *data_handle);
* @return 0 on success, otherwise a negative error value
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_create()
*/
int sticker_data_destroy(sticker_data_h data_handle);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_destroy()
*/
int sticker_data_clone(sticker_data_h origin_handle, sticker_data_h *target_handle);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
*/
int sticker_data_get_app_id(sticker_data_h data_handle, char **app_id);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_get_uri()
*/
int sticker_data_set_uri(sticker_data_h data_handle, sticker_data_uri_type_e type, const char *uri);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_set_uri()
*/
int sticker_data_get_uri(sticker_data_h data_handle, sticker_data_uri_type_e *type, char **uri);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_data_keyword_foreach_cb() repeatedly for getting keywords.
* @see sticker_data_keyword_foreach_cb()
* @see sticker_data_add_keyword()
* @return 0 on success, otherwise a negative error value
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_keyword_foreach_cb()
* @see sticker_data_foreach_keyword()
* @see sticker_data_remove_keyword()
* @return 0 on success, otherwise a negative error value
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_keyword_foreach_cb()
* @see sticker_data_foreach_keyword()
* @see sticker_data_add_keyword()
* @return 0 on success, otherwise a negative error value
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_get_group()
*/
int sticker_data_set_group_name(sticker_data_h data_handle, const char *group);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_set_group()
*/
int sticker_data_get_group_name(sticker_data_h data_handle, char **group);
* @return 0 on success, otherwise a negative error value
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_get_thumbnail()
*/
int sticker_data_set_thumbnail(sticker_data_h data_handle, const char *thumbnail);
* @return 0 on success, otherwise a negative error value
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_set_thumbnail()
*/
int sticker_data_get_thumbnail(sticker_data_h data_handle, char **thumbnail);
* @return 0 on success, otherwise a negative error value
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_get_description()
*/
int sticker_data_set_description(sticker_data_h data_handle, const char *description);
* @return 0 on success, otherwise a negative error value
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_data_set_description()
*/
int sticker_data_get_description(sticker_data_h data_handle, char **description);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
*/
int sticker_data_get_date(sticker_data_h data_handle, char **date);
STICKER_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
STICKER_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
STICKER_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
+ STICKER_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */
STICKER_ERROR_OPERATION_FAILED = TIZEN_ERROR_STICKER | 0x0001, /**< Operation failed */
} sticker_error_e;
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_provider_destroy()
*/
int sticker_provider_create(sticker_provider_h *provider_handle);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_provider_create()
*/
int sticker_provider_destroy(sticker_provider_h provider_handle);
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_provider_update_data()
* @see sticker_provider_delete_data()
*/
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_provider_insert_finished_cb().
* @see sticker_provider_insert_finished_cb()
*
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_provider_insert_data()
* @see sticker_provider_delete_data()
*/
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @see sticker_provider_insert_data()
* @see sticker_provider_update_data()
*/
* @retval #STICKER_ERROR_NONE Successful
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
*/
int sticker_provider_get_sticker_count(sticker_provider_h provider_handle, int *count);
* @retval #STICKER_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #STICKER_ERROR_OUT_OF_MEMORY Out of memory
* @retval #STICKER_ERROR_OPERATION_FAILED Operation failed
+ * @retval #STICKER_ERROR_NOT_SUPPORTED Not supported
* @post This function invokes sticker_provider_data_foreach_cb() repeatedly for getting data.
* @see sticker_provider_data_foreach_cb()
*/
Source2: org.tizen.sticker.server.service
Source3: capi-ui-sticker.conf
BuildRequires: cmake, coreutils
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(libtzplatform-config)
-BuildRequires: pkgconfig(cynara-client)
-BuildRequires: pkgconfig(cynara-session)
BuildRequires: pkgconfig(capi-appfw-app-common)
BuildRequires: pkgconfig(capi-appfw-package-manager)
+BuildRequires: pkgconfig(capi-system-info)
+BuildRequires: pkgconfig(cynara-client)
+BuildRequires: pkgconfig(cynara-session)
BuildRequires: pkgconfig(dbus-1)
-BuildRequires: pkgconfig(sqlite3)
-BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(json-glib-1.0)
+BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(json-glib-1.0)
+BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(pkgmgr-info)
+BuildRequires: pkgconfig(sqlite3)
Requires: security-config
Requires(post): /sbin/ldconfig
Requires(post): dbus
EXPORT_API int sticker_provider_create(sticker_provider_h *provider_handle)
{
- int ret;
+ CHECK_STICKER_FEATURE();
+ int ret;
if (!provider_handle)
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_provider_destroy(sticker_provider_h provider_handle)
{
- LOGD("provider_handle : %p", provider_handle);
- int ret;
+ CHECK_STICKER_FEATURE();
+ int ret;
if (!provider_handle)
return STICKER_ERROR_INVALID_PARAMETER;
+ LOGD("provider_handle : %p", provider_handle);
ret = sticker_dbus_shutdown(provider_handle->gdbus_connection, &provider_handle->server_monitor_id, &provider_handle->monitor_id);
if (ret != STICKER_ERROR_NONE) {
LOGE("Failed to finalize dbus : %d", ret);
EXPORT_API int sticker_provider_insert_data(sticker_provider_h provider_handle, sticker_data_h data_handle)
{
- int ret;
+ CHECK_STICKER_FEATURE();
+ int ret;
if (!provider_handle || !data_handle || (data_handle->sticker_info_id > 0))
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_privider_insert_data_by_json_file(sticker_provider_h provider_handle, const char *json_path, sticker_provider_insert_finished_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
char *app_id = NULL;
package_info_h package_info = NULL;
EXPORT_API int sticker_provider_update_data(sticker_provider_h provider_handle, sticker_data_h data_handle)
{
- int ret;
+ CHECK_STICKER_FEATURE();
+ int ret;
if (!provider_handle || !data_handle || (data_handle->sticker_info_id <= 0))
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_provider_delete_data(sticker_provider_h provider_handle, sticker_data_h data_handle)
{
- int ret;
+ CHECK_STICKER_FEATURE();
+ int ret;
if (!provider_handle || (data_handle->sticker_info_id <= 0))
return STICKER_ERROR_INVALID_PARAMETER;
EXPORT_API int sticker_provider_get_sticker_count(sticker_provider_h provider_handle, int *count)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
char *app_id = NULL;
EXPORT_API int sticker_provider_data_foreach_all(sticker_provider_h provider_handle, int offset, int count, int *result, sticker_provider_data_foreach_cb callback, void *user_data)
{
+ CHECK_STICKER_FEATURE();
+
int ret;
int info_id;
int sticker_count = 0;