diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-02 19:25:17 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-02 19:25:17 +0200 |
commit | c2ca7be5a751879159f3cb591a64bb9568b79762 (patch) | |
tree | 04e38d4f4a2aad4d789bda0a65b7abb80a3439a2 /xicc/ccss.h | |
parent | 45c152c326d87478fbf41714b4b8e2f7b57a282b (diff) | |
parent | 3db384424bd7398ffbb7a355cab8f15f3add009f (diff) |
Updated version 1.9.1+repack from 'upstream/1.9.1+repack'
with Debian dir 98a996367aa69ae41accf9c6d369f600bc94de80
Diffstat (limited to 'xicc/ccss.h')
-rw-r--r-- | xicc/ccss.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/xicc/ccss.h b/xicc/ccss.h index 8258031..dbcfbc1 100644 --- a/xicc/ccss.h +++ b/xicc/ccss.h @@ -4,7 +4,9 @@ /* * Argyll Color Correction System * Colorimeter Calibration Spectral Set support. - * + */ + +/* * Author: Graeme W. Gill * Date: 18/8/2011 * @@ -17,6 +19,10 @@ * Based on ccmx.h */ +#ifdef __cplusplus + extern "C" { +#endif + /* * This object provides storage and application of emisive spectral * samples that can be used to compute calibration for suitable @@ -42,7 +48,7 @@ struct _ccss { /* write a CGATS .ccss file to a memory buffer. */ /* return nz on error, with message in err[] */ - int (*buf_write_ccss)(struct _ccss *p, unsigned char **buf, int *len); + int (*buf_write_ccss)(struct _ccss *p, unsigned char **buf, size_t *len); /* read from a CGATS .ccss file */ /* return nz on error, with message in err[] */ @@ -50,7 +56,7 @@ struct _ccss { /* read from a CGATS .ccss file from a memory buffer. */ /* return nz on error, with message in err[] */ - int (*buf_read_ccss)(struct _ccss *p, unsigned char *buf, int len); + int (*buf_read_ccss)(struct _ccss *p, unsigned char *buf, size_t len); /* Private: */ /* (All char * are owned by ccss) */ @@ -75,6 +81,10 @@ struct _ccss { /* Create a new, uninitialised ccss */ ccss *new_ccss(void); +#ifdef __cplusplus + } +#endif + #endif /* CCSS_H */ |