33
33
/* Set the contents of the ccss. return nz on error. */
34
34
/* (Makes copies of all parameters) */
35
35
int (*set_ccss)(struct _ccss *p, char *orig, char *cdate,
36
char *desc, char *disp, char *tech, char *ref,
37
xspect *samples, int no_samp);
36
char *desc, char *disp, char *tech, int refrmode, char *sel,
37
char *ref, xspect *samples, int no_samp);
39
39
/* write to a CGATS .ccss file */
40
40
/* return nz on error, with message in err[] */
41
41
int (*write_ccss)(struct _ccss *p, char *filename);
43
/* write a CGATS .ccss file to a memory buffer. */
44
/* return nz on error, with message in err[] */
45
int (*buf_write_ccss)(struct _ccss *p, unsigned char **buf, int *len);
43
47
/* read from a CGATS .ccss file */
44
48
/* return nz on error, with message in err[] */
45
49
int (*read_ccss)(struct _ccss *p, char *filename);
51
/* read from a CGATS .ccss file from a memory buffer. */
52
/* return nz on error, with message in err[] */
53
int (*buf_read_ccss)(struct _ccss *p, unsigned char *buf, int len);
48
56
/* (All char * are owned by ccss) */
49
57
char *orig; /* Originator. May be NULL */
51
59
char *desc; /* General Description (optional) */
52
60
char *disp; /* Description of the display (Manfrr and Model No) (optional if tech) */
53
61
char *tech; /* Technology (CRT, LCD + backlight type etc.) (optional if disp) */
62
int refrmode; /* Refresh mode, -1 if unknown, 0 of no, 1 if yes */
63
char *sel; /* Optional UI selector characters. May be NULL */
54
64
char *ref; /* Name of reference spectrometer instrument (optional) */
55
65
xspect *samples; /* Set of spectral samples */
56
66
int no_samp; /* Number of samples */
68
/* Houskeeping - should switch this to a1log ? */
59
69
int errc; /* Error code */
60
70
char err[200]; /* Error message */
61
71
}; typedef struct _ccss ccss;