diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-06-04 19:27:15 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-06-25 00:19:12 +0100 |
commit | 4438e3e5bc4dfc9e46fc86d86d912171ec582a4e (patch) | |
tree | c2cbc61774320346337f2311876f4bc9de46d011 /psi/gsdll64metro.def | |
parent | 7e427246abb151cde9154783775acfaa776b502e (diff) | |
download | ghostpdl-4438e3e5bc4dfc9e46fc86d86d912171ec582a4e.tar.gz |
Rework display device "DisplayHandle" passing.
Add gsapi_{,de}register_callout API. This allows integrators
to register handlers for "callouts" from gs devices.
The first example of such a callout is the display device.
Previously, this has relied on the gsapi_set_display_callback
API to pass a pointer to a structure into the core, from where
it was hackily poked into the display device structure.
Instead, we now have the display device "callout" to registered
handlers to get the structure and the handle to use.
The legacy API is maintained by the API level implementing
a handler to return the display callback in response to the
devices callout.
The code to do the 'poking' of the display device has therefore
been removed, and replaced by code that checks to see if an
opened device needs reopening after init, if so, opens/closes it.
Diffstat (limited to 'psi/gsdll64metro.def')
-rw-r--r-- | psi/gsdll64metro.def | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psi/gsdll64metro.def b/psi/gsdll64metro.def index cc05cf0bf..9991270fe 100644 --- a/psi/gsdll64metro.def +++ b/psi/gsdll64metro.def @@ -30,6 +30,8 @@ EXPORTS gsapi_set_poll gsapi_set_poll_with_handle gsapi_set_display_callback + gsapi_register_callout + gsapi_deregister_callout gsapi_set_arg_encoding gsapi_set_default_device_list gsapi_get_default_device_list |