diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-02 19:24:58 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-02 19:24:58 +0200 |
commit | 3db384424bd7398ffbb7a355cab8f15f3add009f (patch) | |
tree | 4536961c62454aca3ac87ee88229e4d20c0d44fa /xicc/ccmx.h | |
parent | d479dd1aab1c1cb907932c6595b0ef33523fc797 (diff) |
New upstream version 1.9.1+repackupstream/1.9.1+repack
Diffstat (limited to 'xicc/ccmx.h')
-rw-r--r-- | xicc/ccmx.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/xicc/ccmx.h b/xicc/ccmx.h index 94263e0..03d29d1 100644 --- a/xicc/ccmx.h +++ b/xicc/ccmx.h @@ -5,6 +5,9 @@ * Argyll Color Correction System * Colorimeter Correction Matrix support. * + */ + +/* * Author: Graeme W. Gill * Date: 19/8/2010 * @@ -19,6 +22,10 @@ * */ +#ifdef __cplusplus + extern "C" { +#endif + /* * This object provides storage and application of a 3x3 XYZ * corretion matrix suitable for corrected a particular @@ -46,13 +53,13 @@ struct _ccmx { /* write a CGATS .ccmx file to a memory buffer. */ /* return nz on error, with message in err[] */ - int (*buf_write_ccmx)(struct _ccmx *p, unsigned char **buf, int *len); + int (*buf_write_ccmx)(struct _ccmx *p, unsigned char **buf, size_t *len); /* read from a CGATS .ccmx file */ int (*read_ccmx)(struct _ccmx *p, char *filename); /* read from a CGATS .ccmx file from a memory buffer. */ - int (*buf_read_ccmx)(struct _ccmx *p, unsigned char *buf, int len); + int (*buf_read_ccmx)(struct _ccmx *p, unsigned char *buf, size_t len); /* Correct an XYZ value */ void (*xform) (struct _ccmx *p, @@ -83,6 +90,10 @@ struct _ccmx { /* Create a new, uninitialised ccmx */ ccmx *new_ccmx(void); +#ifdef __cplusplus + } +#endif + #endif /* CCMX_H */ |