Issue #19: Implement first draft of command line rendering (synchronous-mode). Not yet fully tested!!

This commit is contained in:
2019-06-22 01:21:26 +02:00
parent 01ab56e07a
commit 01c9701492
3 changed files with 123 additions and 88 deletions

8
main.c
View File

@@ -240,7 +240,6 @@ int main(int argc, char **argv)
GError *error = NULL;
GOptionContext *context;
gchar *gds_name;
gchar *basename;
gchar **output_paths = NULL;
gchar *mappingname = NULL;
gchar *cellname = NULL;
@@ -292,14 +291,15 @@ int main(int argc, char **argv)
printf("Ignored argument: %s", argv[i]);
}
app_status =
command_line_convert_gds(gds_name, cellname, renderer_args, output_paths, mappingname,
custom_library_path, pdf_standalone, pdf_layers, scale);
} else {
app_status = start_gui(argc, argv);
}
ret_status:
/* If necessary, free command line parameters */
if (output_paths)
g_strfreev(output_paths);
@@ -309,7 +309,7 @@ ret_status:
g_free(mappingname);
if (cellname)
free(cellname);
if (custom_library_path);
if (custom_library_path)
free(custom_library_path);
return app_status;