From 3db384424bd7398ffbb7a355cab8f15f3add009f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 2 Oct 2016 19:24:58 +0200 Subject: New upstream version 1.9.1+repack --- xicc/ccss.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'xicc/ccss.h') 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 */ -- cgit v1.2.3