Fix Prevent and remove compile warning messages
[platform/core/appfw/ail.git] / src / ail_sql.c
index 3b01254..febe8de 100755 (executable)
@@ -27,7 +27,7 @@
 #include "ail.h"
 #include "ail_sql.h"
 #include "ail_db.h"
-#include "vconf.h"
+#include "ail_vconf.h"
 #include "ail_private.h"
 
 static const char *filter[] = {
@@ -49,6 +49,8 @@ static const char *filter[] = {
        "app_info.X_SLP_APPID='%s'",
        "app_info.X_SLP_PKGID='%s'",
        "app_info.X_SLP_DOMAIN='%s'",
+       "app_info.X_SLP_SUBMODEMAINID='%s'",
+       "app_info.X_SLP_INSTALLEDSTORAGE='%s'",
        "app_info.X_SLP_BASELAYOUTWIDTH=%d",
        "app_info.X_SLP_INSTALLEDTIME=%d",
        "app_info.NODISPLAY=%d",
@@ -56,11 +58,11 @@ static const char *filter[] = {
        "app_info.X_SLP_MULTIPLE=%d",
        "app_info.X_SLP_REMOVABLE=%d",
        "app_info.X_SLP_ISHORIZONTALSCALE=%d",
-       "app_info.X_SLP_INACTIVATED=%d",
+       "app_info.X_SLP_ENABLED=%d",
+       "app_info.X_SLP_SUBMODE=%d",
        NULL,
 };
 
-
 inline const char *sql_get_filter(int prop)
 {
        retv_if(prop < 0 || prop >= NUM_OF_PROP , NULL);
@@ -74,7 +76,7 @@ inline char *sql_get_locale(void)
        char *r;
        char buf[6];
 
-       retv_if ((l = vconf_get_str(VCONFKEY_LANGSET)) == NULL, NULL);
+       retv_if((l = ail_vconf_get_str(VCONFKEY_LANGSET)) == NULL, NULL);
        snprintf(buf, sizeof(buf), "%s", l);
        free(l);
 
@@ -87,5 +89,3 @@ inline int sql_get_app_info_idx(int prop)
 {
        return prop;
 }
-
-// End of file