diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-02-17 14:41:50 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-02-17 18:06:11 +0100 |
commit | 31186b61d979ba02c04ce68dcb66f7a5f1229c93 (patch) | |
tree | 84aa2debf18e6e4bab6c803e4b759b8851ce0ff4 /include/mupdf/fitz/device.h | |
parent | 72679561cddc6b2586e596f62492b79dcf9f118d (diff) | |
download | mupdf-31186b61d979ba02c04ce68dcb66f7a5f1229c93.tar.xz |
Use embedded superclass struct instead of user pointer in devices.
Diffstat (limited to 'include/mupdf/fitz/device.h')
-rw-r--r-- | include/mupdf/fitz/device.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h index fea65ff8..e8098502 100644 --- a/include/mupdf/fitz/device.h +++ b/include/mupdf/fitz/device.h @@ -99,8 +99,7 @@ struct fz_device_s int hints; int flags; - void *user; - void (*drop_user)(fz_context *, fz_device *); + void (*drop_imp)(fz_context *, fz_device *); void (*begin_page)(fz_context *, fz_device *, const fz_rect *rect, const fz_matrix *ctm); void (*end_page)(fz_context *, fz_device *); @@ -164,7 +163,7 @@ void fz_begin_tile(fz_context *ctx, fz_device *dev, const fz_rect *area, const f int fz_begin_tile_id(fz_context *ctx, fz_device *dev, const fz_rect *area, const fz_rect *view, float xstep, float ystep, const fz_matrix *ctm, int id); void fz_end_tile(fz_context *ctx, fz_device *dev); -fz_device *fz_new_device(fz_context *ctx, void *user); +void *fz_new_device(fz_context *ctx, int size); /* fz_drop_device: Free a devices of any type and its resources. |