ZakFormJsonProviderPrivate *priv = zak_form_json_provider_get_instance_private (zak_form_json_provider);
priv->filename = NULL;
+ priv->root = NULL;
}
static void
iface->delete = zak_form_json_provider_delete;
}
+/**
+ * zak_form_json_provider_new:
+ *
+ * Returns: the newly created #ZakFormJsonProvider object.
+ */
+ZakFormJsonProvider
+*zak_form_json_provider_new ()
+{
+ ZakFormJsonProvider *zak_form_json_provider;
+ ZakFormJsonProviderPrivate *priv;
+
+ zak_form_json_provider = ZAK_FORM_JSON_PROVIDER (g_object_new (zak_form_json_provider_get_type (), NULL));
+ priv = zak_form_json_provider_get_instance_private (zak_form_json_provider);
+
+ priv->root = zak_utils_json_node_new_array ();
+
+ return zak_form_json_provider;
+}
+
/**
* zak_form_json_provider_new_from_file:
* @filename:
G_DECLARE_FINAL_TYPE (ZakFormJsonProvider, zak_form_json_provider, ZAK_FORM_JSON, PROVIDER, GObject)
+ZakFormJsonProvider *zak_form_json_provider_new (void);
ZakFormJsonProvider *zak_form_json_provider_new_from_file (const gchar *filename);
ZakFormJsonProvider *zak_form_json_provider_new_from_data (const gchar *data, gssize length);