int badge_db_get_count(const char *pkgname, unsigned int *count);
int badge_db_set_display_option(const char *pkgname, const char *caller_pkg, unsigned int is_display);
int badge_db_get_display_option(const char *pkgname, unsigned int *is_display);
-int badge_db_exec(sqlite3 * db, const char *query, int *num_changes);
+int badge_db_exec(sqlite3 *db, const char *query, int *num_changes);
#ifdef __cplusplus
}
#define DEPRECATED __attribute__((deprecated))
#endif
-#define BADGE_ERROR (badge_error_quark ())
+#define BADGE_ERROR (badge_error_quark())
GQuark badge_error_quark(void);
#ifdef __cplusplus
char *pkgs = NULL;
if (!pkgname) {
- WARN("package name is NULL");
+ ERR("package name is NULL");
return BADGE_ERROR_INVALID_PARAMETER;
}
}
EXPORT_API
-int badge_db_exec(sqlite3 * db, const char *query, int *num_changes)
+int badge_db_exec(sqlite3 *db, const char *query, int *num_changes)
{
int ret = 0;
sqlite3_stmt *stmt = NULL;
if (pkgname[0] == '\0') {
free(pkgname);
return NULL;
- } else
+ } else {
return pkgname;
+ }
}
static int _badge_check_data_inserted(const char *pkgname,