* fix another off by one while retrieving the iterator counter params
[citadel.git] / webcit / paramhandling.h
blob35999ad98f552aa64144036b50e7f14fdd68a0ce
1 /* URL / Mime Post parsing -> paramhandling.c */
2 void upload_handler(char *name, char *filename, char *partnum, char *disp,
3 void *content, char *cbtype, char *cbcharset,
4 size_t length, char *encoding, char *cbid, void *userdata);
6 void ParseURLParams(StrBuf *url);
9 /* These may return NULL if not foud */
10 #define sbstr(a) SBstr(a, sizeof(a) - 1)
11 const StrBuf *SBSTR(const char *key);
12 const StrBuf *SBstr(const char *key, size_t keylen);
14 #define xbstr(a, b) (char*) XBstr(a, sizeof(a) - 1, b)
15 const char *XBstr(const char *key, size_t keylen, size_t *len);
16 const char *XBSTR(const char *key, size_t *len);
18 #define lbstr(a) LBstr(a, sizeof(a) - 1)
19 long LBstr(const char *key, size_t keylen);
20 long LBSTR(const char *key);
22 #define ibstr(a) IBstr(a, sizeof(a) - 1)
23 int IBstr(const char *key, size_t keylen);
24 int IBSTR(const char *key);
26 #define havebstr(a) HaveBstr(a, sizeof(a) - 1)
27 int HaveBstr(const char *key, size_t keylen);
28 int HAVEBSTR(const char *key);
30 #define yesbstr(a) YesBstr(a, sizeof(a) - 1)
31 int YesBstr(const char *key, size_t keylen);
32 int YESBSTR(const char *key);
34 /* TODO: get rid of the non-const-typecast */
35 #define bstr(a) (char*) Bstr(a, sizeof(a) - 1)
36 const char *BSTR(const char *key);
37 const char *Bstr(const char *key, size_t keylen);
38 /* if you want to ease some parts by just parametring yourself... */
39 #define putbstr(a, b) PutBstr(a, sizeof(a) - 1, b)
40 void PutBstr(const char *key, long keylen, StrBuf *Value);