Index: util_sheet.h =================================================================== --- util_sheet.h (nonexistent) +++ util_sheet.h (revision 8972) @@ -0,0 +1,12 @@ +#include + +typedef enum csch_sheet_setup_cfg_e { /* bitfield */ + CSCH_SSC_PENS, + CSCH_SSC_UUID +} csch_sheet_setup_cfg_t; + +/* Copy defaults into dst (from the default sheet) as cfg dictates; if + CSCH_SSC_PENS is true chk_copy_pen is called on each pen and the pen + is copied only if it returns non-zero. If chk_copy_pen is NULL, it is + assumed to always return 1. */ +void csch_sheet_setup(csch_sheet_t *dst, csch_sheet_setup_cfg_t cfg, int (*chk_copy_pen)(void *udata, csch_sheet_t *dst), void *udata);