1 /* Copyright (C) 2010 Red Hat, Inc.
3 This program is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 3 of the License, or
6 (at your option) any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>. */
16 #if !defined(_STATE_DEFS_H)
22 #define MAX_FIELD_LEN 64
32 MHD_AccessHandlerCallback handler
;
38 char bucket
[MAX_FIELD_LEN
];
39 char key
[MAX_FIELD_LEN
];
40 char attr
[MAX_FIELD_LEN
];
46 /* for proxy puts and queries */
47 struct MHD_Connection
*conn
;
48 /* for proxy queries */
49 struct MHD_PostProcessor
*post
;
51 /* for bucket-level puts */
53 /* for new producer/consumer model */
58 /* for bucket/object/provider list generators */
62 #define CLEANUP_CURL 0x01
63 #define CLEANUP_BUF_PTR 0x02
64 #define CLEANUP_POST 0x04
65 #define CLEANUP_DICT 0x08
66 #define CLEANUP_QUERY 0x10
67 #define CLEANUP_TMPL 0x20
68 #define CLEANUP_URL 0x40