diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-04-26 18:10:56 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-04-26 19:49:13 +0100 |
commit | 20610dc28ee3cf7e64ad46f11e9b96fb3befba00 (patch) | |
tree | caf1ecd133beea5ab478858fc8f022081912ab89 /devices/gdevx.h | |
parent | edd20b3b8c3c1a7117dd5dbee0b54cd1de7838bf (diff) | |
download | ghostpdl-20610dc28ee3cf7e64ad46f11e9b96fb3befba00.tar.gz |
Split initialize device proc into two.
The device initialize function currently performs 2 jobs. Firstly,
it fills out the device_procs. Secondly, it performs any minimal
initialization required by the device (typically none).
At various points in the code we want to be able to copy procs
from one 'prototype' device to another, so we call initialize
for that. This populates the device procs, but does other work
that typically requires a 'derived device' structure rather
than a vanilla gx_device to work in.
Accordingly, we split the job into two; initialize_device_procs
(the first part) and initialize_device (the second part). The
initialize_device_procs function will set up the initialize_device
function pointer along with the rest if required.
Diffstat (limited to 'devices/gdevx.h')
-rw-r--r-- | devices/gdevx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devices/gdevx.h b/devices/gdevx.h index 03defc609..5e352f3fd 100644 --- a/devices/gdevx.h +++ b/devices/gdevx.h @@ -227,7 +227,7 @@ dev_proc_map_rgb_color(gdev_x_map_rgb_color); /* gdevxcmp.c */ dev_proc_map_color_rgb(gdev_x_map_color_rgb); /* gdevxcmp.c */ dev_proc_get_params(gdev_x_get_params); /* gdevxini.c */ dev_proc_put_params(gdev_x_put_params); /* gdevxini.c */ -dev_proc_initialize(gdev_x_initialize); /* gdevxini.c */ +dev_proc_initialize_device_procs(gdev_x_initialize_device_procs); /* gdevxini.c */ dev_proc_open_device(x_open); dev_proc_get_initial_matrix(x_get_initial_matrix); dev_proc_sync_output(x_sync); |