4 * Copyright (c) 2009-2011 project bchan
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.
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:
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.
19 * 2. Altered source versions must be plainly marked as such, and must not be
20 * misrepresented as being the original software.
22 * 3. This notice may not be removed or altered from any source
28 #include <btron/hmi.h>
33 typedef struct postresdata_t_ postresdata_t;
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);