OSDN Git Service

fix copyright year.
[bbk/bchan.git] / src / postres.h
1 /*
2  * postres.h
3  *
4  * Copyright (c) 2009-2011 project bchan
5  *
6  * This software is provided 'as-is', without any express or implied
7  * warranty. In no event will the authors be held liable for any damages
8  * arising from the use of this software.
9  *
10  * Permission is granted to anyone to use this software for any purpose,
11  * including commercial applications, and to alter it and redistribute it
12  * freely, subject to the following restrictions:
13  *
14  * 1. The origin of this software must not be misrepresented; you must not
15  *    claim that you wrote the original software. If you use this software
16  *    in a product, an acknowledgment in the product documentation would be
17  *    appreciated but is not required.
18  *
19  * 2. Altered source versions must be plainly marked as such, and must not be
20  *    misrepresented as being the original software.
21  *
22  * 3. This notice may not be removed or altered from any source
23  *    distribution.
24  *
25  */
26
27 #include        <basic.h>
28 #include        <btron/hmi.h>
29
30 #ifndef __POSTRES_H__
31 #define __POSTRES_H__
32
33 typedef struct postresdata_t_ postresdata_t;
34
35 IMPORT postresdata_t* postresdata_new();
36 IMPORT VOID postresdata_delete(postresdata_t *post);
37 IMPORT W postresdata_readfile(postresdata_t *post, VLINK *vlnk);
38 IMPORT W postresdata_genrequestbody(postresdata_t *post, UB *board, W board_len, UB *thread, W thread_len, STIME time, UB **body, W *body_len);
39 IMPORT W postresdata_gennamemail(postresdata_t *post, UB **name, W *name_len, UB **mail, W *mail_len);
40 IMPORT TC* postresdata_getfromstring(postresdata_t *post);
41 IMPORT W postresdata_getfromstringlen(postresdata_t *post);
42 IMPORT TC* postresdata_getmailstring(postresdata_t *post);
43 IMPORT W postresdata_getmailstringlen(postresdata_t *post);
44 IMPORT TC* postresdata_getmessagestring(postresdata_t *post);
45 IMPORT W postresdata_getmessagestringlen(postresdata_t *post);
46
47 #endif