diff --git a/command-line.c b/command-line.c index 3953fa7..8bfc8e2 100644 --- a/command-line.c +++ b/command-line.c @@ -104,7 +104,9 @@ static int create_renderers(char **renderers, fprintf(stderr, _("Please specify shared object for external renderer. Will ignore this renderer.\n")); continue; } - output_renderer = GDS_RENDER_OUTPUT_RENDERER(external_renderer_new_with_so(ext_params->so_path)); + output_renderer = GDS_RENDER_OUTPUT_RENDERER( + external_renderer_new_with_so_and_param(ext_params->so_path, + ext_params->cli_params)); } else { continue; } diff --git a/include/gds-render/output-renderers/external-renderer.h b/include/gds-render/output-renderers/external-renderer.h index 70877e7..271752b 100644 --- a/include/gds-render/output-renderers/external-renderer.h +++ b/include/gds-render/output-renderers/external-renderer.h @@ -50,9 +50,10 @@ ExternalRenderer *external_renderer_new(); /** * @brief Create new ExternalRenderer object with specified shared object path * @param so_path Path to shared object, the rendering function is searched in + * @param param_string Command line parameter string passed to external renderer * @return New object. */ -ExternalRenderer *external_renderer_new_with_so(const char *so_path); +ExternalRenderer *external_renderer_new_with_so_and_param(const char *so_path, const char *param_string); G_END_DECLS diff --git a/output-renderers/external-renderer.c b/output-renderers/external-renderer.c index 6ec1071..f79edb8 100644 --- a/output-renderers/external-renderer.c +++ b/output-renderers/external-renderer.c @@ -271,9 +271,10 @@ ExternalRenderer *external_renderer_new() return g_object_new(GDS_RENDER_TYPE_EXTERNAL_RENDERER, NULL); } -ExternalRenderer *external_renderer_new_with_so(const char *so_path) +ExternalRenderer *external_renderer_new_with_so_and_param(const char *so_path, const char *param_string) { - return g_object_new(GDS_RENDER_TYPE_EXTERNAL_RENDERER, "shared-object-path", so_path, NULL); + return g_object_new(GDS_RENDER_TYPE_EXTERNAL_RENDERER, "shared-object-path", so_path, + "param-string", param_string,NULL); } /** @} */