X-Git-Url: http://git.imager.perl.org/imager.git/blobdiff_plain/d03fd5a40a0a0901a91966b938b2e872bfa0ee03..b7194de0205410036d510450e934b875fccf0d56:/imdatatypes.h diff --git a/imdatatypes.h b/imdatatypes.h index d9ad0eb4..1fa7c0b5 100644 --- a/imdatatypes.h +++ b/imdatatypes.h @@ -6,6 +6,11 @@ #define MAXCHANNELS 4 +typedef struct im_context_tag *im_context_t; + +typedef ptrdiff_t im_slot_t; +typedef void (*im_slot_destroy_t)(void *); + /* used for palette indices in some internal code (which might be exposed at some point */ @@ -36,6 +41,7 @@ May be larger than int on some platforms. */ typedef ptrdiff_t i_img_dim; +typedef size_t i_img_dim_u; /* =item i_color @@ -283,6 +289,14 @@ i_f_psamp - implements psamp() for this image. i_f_psampf - implements psamp() for this image. +=item * + +C - image specific data internal to Imager. + +=item * + +C - the Imager API context this image belongs to. + =back =cut @@ -335,6 +349,9 @@ struct i_img_ { i_f_psampf_t i_f_psampf; void *im_data; + + /* 0.91 */ + im_context_t context; }; /* ext_data for paletted images @@ -540,6 +557,18 @@ typedef enum { ic_color } i_combine_t; +/* +=item i_mutex_t +X +=category mutex +=synopsis i_mutex_t mutex; + +Opaque type for Imager's mutex API. + +=cut + */ +typedef struct i_mutex_tag *i_mutex_t; + /* describes an axis of a MM font. Modelled on FT2's FT_MM_Axis. @@ -681,6 +710,13 @@ enum { #include "iolayert.h" +/* error message information returned by im_errors() */ + +typedef struct { + char *msg; + int code; +} i_errmsg; + typedef struct i_render_tag i_render; #ifdef IMAGER_FORMAT_ATTR