1 /*
2  * vim:tw=80:ai:tabstop=4:softtabstop=4:shiftwidth=4:expandtab
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *
18  * (C) Copyright Kevin Timmerman 2007
19  */
20 
21 #ifndef WEB_H
22 #define WEB_H
23 
24 #include "remote.h"
25 
26 int GetTag(const char *find, uint8_t* data, uint32_t data_size, uint8_t *&found,
27            string *s = NULL, bool find_attributes = false);
28 
29 int GetAttribute(const char *find, string data, string *result);
30 
31 int encode_ir_signal(uint32_t carrier_clock, uint32_t *ir_signal,
32                      uint32_t ir_signal_length, string *learn_seq);
33 
34 int Post(uint8_t *xml, uint32_t xml_size, const char *root, TRemoteInfo &ri,
35          bool has_userid, bool add_cookiekeyval = false, bool z_post = false,
36          string *learn_seq=NULL, string *learn_key=NULL);
37 
38 #endif
39