summaryrefslogtreecommitdiff
path: root/xicc/ccss.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:24:58 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:24:58 +0200
commit3db384424bd7398ffbb7a355cab8f15f3add009f (patch)
tree4536961c62454aca3ac87ee88229e4d20c0d44fa /xicc/ccss.h
parentd479dd1aab1c1cb907932c6595b0ef33523fc797 (diff)
New upstream version 1.9.1+repackupstream/1.9.1+repack
Diffstat (limited to 'xicc/ccss.h')
-rw-r--r--xicc/ccss.h16
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 */