#define PMINFO_PKGINFO_INSTALL_LOCATION_EXTERNAL "LOCATION_EXTERNAL"
typedef enum {
- PMINFO_HWACCELERATION_NOT_USE_GL = 0, /**< Don't use hardware acceleration*/
- PMINFO_HWACCELERATION_USE_GL = 1, /**< Use hardware acceleration*/
- PMINFO_HWACCELERATION_USE_SYSTEM_SETTING = 2 /**< Follow system setting for hardware acceleration */
+ PMINFO_HWACCELERATION_OFF = 0, /**< Don't use hardware acceleration*/
+ PMINFO_HWACCELERATION_ON = 1, /**< Use hardware acceleration*/
+ PMINFO_HWACCELERATION_DEFAULT = 2 /**< Follow system setting for hardware acceleration */
}pkgmgrinfo_app_hwacceleration;
typedef enum {
application->indicatordisplay = strdup("false");
}
+ /* hw-acceleration values are changed from use-GL/not-use-GL/use-system-setting to on/off/default */
+ if (strcmp(application->hwacceleration, "use-GL") == 0) {
+ free((void *)application->hwacceleration);
+ application->hwacceleration = strdup("on");
+ } else if (strcmp(application->hwacceleration, "not-use-GL") == 0) {
+ free((void *)application->hwacceleration);
+ application->hwacceleration = strdup("off");
+ } else if (strcmp(application->hwacceleration, "use-system-setting") == 0) {
+ free((void *)application->hwacceleration);
+ application->hwacceleration = strdup("default");
+ }
+
depth = xmlTextReaderDepth(reader);
while ((ret = __next_child_element(reader, depth))) {
node = xmlTextReaderConstName(reader);
return PMINFO_R_ERROR;
val = (char *)info->app_info->hwacceleration;
- if (strcasecmp(val, "not-use-GL") == 0)
- *hwacceleration = PMINFO_HWACCELERATION_NOT_USE_GL;
- else if (strcasecmp(val, "use-GL") == 0)
- *hwacceleration = PMINFO_HWACCELERATION_USE_GL;
+ if (strcasecmp(val, "off") == 0)
+ *hwacceleration = PMINFO_HWACCELERATION_OFF;
+ else if (strcasecmp(val, "on") == 0)
+ *hwacceleration = PMINFO_HWACCELERATION_ON;
else
- *hwacceleration = PMINFO_HWACCELERATION_USE_SYSTEM_SETTING;
+ *hwacceleration = PMINFO_HWACCELERATION_DEFAULT;
return PMINFO_R_OK;
}