2007-12-30 17:41:49 +01:00
|
|
|
/***************************************************************************
|
|
|
|
|
2009-08-17 12:41:51 +02:00
|
|
|
gbc_form.h
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2018-02-12 02:53:46 +01:00
|
|
|
(c) 2000-2017 Benoît Minisini <g4mba5@gmail.com>
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
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
|
2009-08-17 12:41:51 +02:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2007-12-30 17:41:49 +01:00
|
|
|
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
|
2011-06-03 02:51:09 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
2011-12-31 03:39:20 +01:00
|
|
|
MA 02110-1301, USA.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __GBC_FORM_H
|
|
|
|
#define __GBC_FORM_H
|
|
|
|
|
2012-01-28 10:55:55 +01:00
|
|
|
enum {
|
|
|
|
FORM_NORMAL = 0,
|
|
|
|
FORM_WEBPAGE = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef
|
|
|
|
struct {
|
|
|
|
char *ext;
|
|
|
|
int type;
|
|
|
|
}
|
|
|
|
FORM_FAMILY;
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
typedef
|
|
|
|
struct {
|
|
|
|
char *name;
|
2008-01-06 19:49:23 +01:00
|
|
|
int len;
|
2007-12-30 17:41:49 +01:00
|
|
|
}
|
|
|
|
FORM_PARENT;
|
|
|
|
|
2011-04-21 00:46:00 +02:00
|
|
|
#define FORM_FIRST_LINE 100000
|
|
|
|
#define FORM_FIRST_LINE_STRING "100000"
|
2022-02-05 18:41:36 +01:00
|
|
|
|
|
|
|
void FORM_set_target(char **target);
|
|
|
|
void FORM_do(char *source, bool convert, bool ctrl_public);
|
2012-01-28 10:55:55 +01:00
|
|
|
char *FORM_get_file_family(const char *file, const FORM_FAMILY **family);
|
2012-03-18 14:14:17 +01:00
|
|
|
void FORM_print_len(const char *buffer, int len);
|
|
|
|
void FORM_print(const char *buffer);
|
|
|
|
void FORM_print_char(char c);
|
2022-02-05 18:41:36 +01:00
|
|
|
void FORM_convert(const char *path);
|
2012-03-18 14:14:17 +01:00
|
|
|
|
|
|
|
void FORM_webpage(char *source);
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
#endif
|