g_free (t->keys_sql);
}
-static void
-free_datasource (gpointer data)
-{
- Datasource *d;
-
- d = (Datasource *)data;
-
- g_free (d->name);
- g_free (d->cnc_string);
- g_free (d->gdaex);
- g_list_free_full (d->tables, free_table);
-}
-
static gboolean
load_fields (ZakAudit *zak_audit,
ZakAuditDatasource *datasource,
str_in = NULL;
- g_list_free_full (priv->datasources, free_datasource);
+ g_list_free_full (priv->datasources, g_free);
datasource_name = va_arg (ap, char *);
if (datasource_name != NULL)
g_free (datasource->name);
g_free (datasource->cnc_string);
g_object_unref (datasource->gdaex);
- g_list_free (datasource->tables);
+ g_list_free_full (datasource->tables, free_table);
g_slice_free (ZakAuditDatasource, datasource);
}
ZakAudit *zak_audit_new (GdaConnection *gda_connection);
ZakAudit *zak_audit_new_from_string (const gchar *cnc_string);
-gboolean zak_audit_set_gda_connection_with_datasources (ZakAudit *zak_audit,GdaConnection *gda_connection, ...);
-gboolean zak_audit_set_gda_connection (ZakAudit *zak_audit,GdaConnection *gda_connection);
+gboolean zak_audit_set_gda_connection_with_datasources (ZakAudit *zak_audit, GdaConnection *gda_connection, ...);
+gboolean zak_audit_set_gda_connection (ZakAudit *zak_audit, GdaConnection *gda_connection);
-gboolean zak_audit_set_cnc_string_with_datasources (ZakAudit *zak_audit,const gchar *cnc_string, ...);
-gboolean zak_audit_set_cnc_string (ZakAudit *zak_audit,const gchar *cnc_string);
+gboolean zak_audit_set_cnc_string_with_datasources (ZakAudit *zak_audit, const gchar *cnc_string, ...);
+gboolean zak_audit_set_cnc_string (ZakAudit *zak_audit, const gchar *cnc_string);
gboolean zak_audit_action (ZakAudit *zak_audit,
enum ZakAuditActions action,