char *color_depth;
} splashscreen_x;
+/* FIXME: For temporary hotfix, will be removed */
+typedef struct support_size_x {
+ char *preview;
+ char *size;
+} support_size_x;
+
typedef struct application_x {
char *appid; /*attr*/
char *exec; /*attr*/
GList *background_category; /*element*/
GList *appcontrol; /*element*/
GList *splashscreens; /*element*/
+ GList *support_sizes; /* FIXME */
} application_x;
typedef struct package_x {
free((void *)splashscreen);
}
+/* FIXME */
+static void __ps_free_support_size(gpointer data)
+{
+ support_size_x *support_size = (support_size_x *)data;
+ if (support_size == NULL)
+ return;
+ if (support_size->preview)
+ free((void *)support_size->preview);
+ if (support_size->size)
+ free((void *)support_size->size);
+ free((void *)support_size);
+}
+
static void __ps_free_application(gpointer data)
{
application_x *application = (application_x *)data;
g_list_free_full(application->background_category, free);
/*Free SplashScreen*/
g_list_free_full(application->splashscreens, __ps_free_splashscreen);
+ /* FIXME */
+ g_list_free_full(application->support_sizes, __ps_free_support_size);
free((void *)application);
}