taskrambler  v0.1.8
Web server and task management solution.
http_intro.h
Go to the documentation of this file.
1 /**
2  * \file
3  * Virtual (dynamically bound) methods to get the size of the http intro
4  * line. As i have two kinds of http messages (response, request) which
5  * need a slitly different handling when turning the data into a string.
6  *
7  * \author Georg Hopp
8  *
9  * \copyright
10  * Copyright © 2012 Georg Hopp
11  *
12  * This program is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <http://www.gnu.org/licenses/>.
24  */
25 
26 #ifndef __HTTP_INTRO_H__
27 #define __HTTP_INTRO_H__
28 
29 #include <sys/types.h>
30 
31 typedef size_t (* fptr_httpIntroSizeGet)(void *);
32 typedef char * (* fptr_httpIntroToString)(void *, char *);
33 
34 extern const struct interface i_HttpIntro;
35 
36 struct i_HttpIntro {
37  const struct interface * const _;
40 };
41 
42 extern size_t httpIntroSizeGet(void *);
43 extern char * httpIntroToString(void *, char *);
44 
45 #endif // __HTTP_INTRO_H__
46 
47 // vim: set ts=4 sw=4:
char *(* fptr_httpIntroToString)(void *, char *)
Definition: http_intro.h:32
char * httpIntroToString(void *, char *)
Definition: i_http_intro.c:42
size_t(* fptr_httpIntroSizeGet)(void *)
Definition: http_intro.h:31
size_t httpIntroSizeGet(void *)
Definition: i_http_intro.c:32
fptr_httpIntroSizeGet sizeGet
Definition: http_intro.h:38
fptr_httpIntroToString toString
Definition: http_intro.h:39
const struct interface *const _
Definition: http_intro.h:37