forked from dbmail/dbmail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdm_request.h
49 lines (36 loc) · 1.58 KB
/
dm_request.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
Copyright (C) 2008-2012 NFG Net Facilities Group BV, support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef DM_REQUEST_H
#define DM_REQUEST_H
#include "dbmail.h"
#define T Request_T
typedef struct T *T;
extern T Request_new(struct evhttp_request *, void *);
extern void Request_cb(struct evhttp_request *, void *);
extern void Request_send(T, int, const char *, struct evbuffer *);
extern void Request_error(T, int, const char *);
extern void Request_header(T, const char *, const char *);
extern void Request_setContentType(T, const char *);
extern void Request_free(T *);
extern uint64_t Request_getUser(T R);
extern const char * Request_getController(T);
extern const char * Request_getId(T);
extern const char * Request_getMethod(T);
extern const char * Request_getArg(T);
extern struct evkeyvalq * Request_getPOST(T);
extern struct evkeyvalq * Request_getGET(T);
#undef T
#endif