+/*
+ * The default language
+ */
+static char *default_lang;
+
+/*
+ * initilize object 'apps'.
+ * returns 1 if okay or 0 on case of memory depletion
+ */
+static int apps_init(struct afm_apps *apps)
+{
+ apps->publics.all = json_object_new_array();
+ apps->publics.visibles = json_object_new_array();
+ apps->publics.byname = json_object_new_object();
+
+ apps->privates.all = json_object_new_array();
+ apps->privates.visibles = json_object_new_array();
+ apps->privates.byname = json_object_new_object();
+
+ return apps->publics.all
+ && apps->publics.visibles
+ && apps->publics.byname
+ && apps->privates.all
+ && apps->privates.visibles
+ && apps->privates.byname;
+}
+