GDS-Render v1.2.1
external-renderer.c File Reference

This file implements the dynamic library loading for the external rendering feature. More...

#include <dlfcn.h>
#include <stdio.h>
#include <sys/wait.h>
#include <glib/gi18n.h>
#include <gds-render/output-renderers/external-renderer.h>
#include <gds-render/version.h>
Include dependency graph for external-renderer.c:

Go to the source code of this file.

Data Structures

struct  _ExternalRenderer
 

Macros

#define FORCE_FORK   0U
 if != 0, then forking is forced regardless of the shared object's settings More...
 

Enumerations

enum  { PROP_SO_PATH = 1 , PROP_PARAM_STRING , N_PROPERTIES }
 

Functions

static int external_renderer_render_cell (struct gds_cell *toplevel_cell, GList *layer_info_list, const char *output_file, double scale, const char *so_path, const char *params)
 Execute render function in shared object to render the supplied cell. More...
 
static int external_renderer_render_output (GdsOutputRenderer *renderer, struct gds_cell *cell, double scale)
 
static void external_renderer_get_property (GObject *obj, guint property_id, GValue *value, GParamSpec *pspec)
 
static void external_renderer_set_property (GObject *obj, guint property_id, const GValue *value, GParamSpec *pspec)
 
static void external_renderer_dispose (GObject *self_obj)
 
static void external_renderer_class_init (ExternalRendererClass *klass)
 
static void external_renderer_init (ExternalRenderer *self)
 
ExternalRenderer * external_renderer_new ()
 Create new ExternalRenderer object. More...
 
ExternalRenderer * external_renderer_new_with_so_and_param (const char *so_path, const char *param_string)
 Create new ExternalRenderer object with specified shared object path. More...
 

Variables

static GParamSpec * external_renderer_properties [N_PROPERTIES] = {NULL}
 

Detailed Description

This file implements the dynamic library loading for the external rendering feature.

Author
Mario Hüttel mario.nosp@m..hue.nosp@m.ttel@.nosp@m.gmx..nosp@m.net

Definition in file external-renderer.c.