X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2Fcommon.h;h=23b8ca33972d29bf589cae1799896c70408392bf;hb=579edbc3e615ade4ac65296eeaff383ac19fe9b1;hp=3fa8a81d985621ad15277a461b7a5fb313b10398;hpb=6a3c0962283d32bc6e5f6c47c929baf37ddc642f;p=ypp-sc-tools.web-live.git diff --git a/pctb/common.h b/pctb/common.h index 3fa8a81..23b8ca3 100644 --- a/pctb/common.h +++ b/pctb/common.h @@ -39,6 +39,8 @@ #include #include #include +#include +#include #include #include @@ -46,6 +48,7 @@ typedef struct { int w,h; + struct RgbImage *rgb; char d[]; } CanonImage; @@ -74,6 +77,7 @@ typedef struct { /* both inclusive */ DF(struct) \ DF(ocr) \ DF(rsync) \ + DF(structcolon) \ DF(callout) enum { @@ -157,4 +161,8 @@ char *masprintf(const char *fmt, ...) FMT(1,2); "(Are you in the correct directory?)", helper); \ }while(0) + +#define ARRAYSIZE(a) ((sizeof((a)) / sizeof((a)[0]))) + + #endif /*COMMON_H*/