2
2
* STFL - The Structured Terminal Forms Language/Library
3
* Copyright (C) 2006 Clifford Wolf <clifford@clifford.at>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
3
* Copyright (C) 2006, 2007 Clifford Wolf <clifford@clifford.at>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 3 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
20
* stfl.h: The STFL C header file
29
32
extern int stfl_api_allow_null_pointers;
33
extern struct stfl_form *stfl_create(const char *text);
37
extern struct stfl_form *stfl_create(const wchar_t *text);
34
38
extern void stfl_free(struct stfl_form *f);
36
extern const char *stfl_run(struct stfl_form *f, int timeout);
40
extern const wchar_t *stfl_run(struct stfl_form *f, int timeout);
37
41
extern void stfl_reset();
39
extern const char *stfl_get(struct stfl_form *f, const char *name);
40
extern void stfl_set(struct stfl_form *f, const char *name, const char *value);
42
extern const char *stfl_get_focus(struct stfl_form *f);
43
extern void stfl_set_focus(struct stfl_form *f, const char *name);
45
extern const char *stfl_quote(const char *text);
46
extern const char *stfl_dump(struct stfl_form *f, const char *name, const char *prefix, int focus);
47
extern void stfl_modify(struct stfl_form *f, const char *name, const char *mode, const char *text);
48
extern const char *stfl_lookup(struct stfl_form *f, const char *path, const char *newname);
50
extern const char *stfl_error();
51
extern void stfl_error_action(const char *mode);
43
extern const wchar_t * stfl_get(struct stfl_form *f, const wchar_t *name);
44
extern void stfl_set(struct stfl_form *f, const wchar_t *name, const wchar_t *value);
46
extern const wchar_t *stfl_get_focus(struct stfl_form *f);
47
extern void stfl_set_focus(struct stfl_form *f, const wchar_t *name);
49
extern const wchar_t *stfl_quote(const wchar_t *text);
50
extern const wchar_t *stfl_dump(struct stfl_form *f, const wchar_t *name, const wchar_t *prefix, int focus);
52
extern void stfl_modify(struct stfl_form *f, const wchar_t *name, const wchar_t *mode, const wchar_t *text);
53
extern const wchar_t *stfl_lookup(struct stfl_form *f, const wchar_t *path, const wchar_t *newname);
55
extern const wchar_t *stfl_error();
56
extern void stfl_error_action(const wchar_t *mode);
58
extern struct stfl_ipool *stfl_ipool_create(const char *code);
59
extern void *stfl_ipool_add(struct stfl_ipool *pool, void *data);
60
extern const wchar_t *stfl_ipool_towc(struct stfl_ipool *pool, const char *buf);
61
extern const char *stfl_ipool_fromwc(struct stfl_ipool *pool, const wchar_t *buf);
62
extern void stfl_ipool_flush(struct stfl_ipool *pool);
63
extern void stfl_ipool_destroy(struct stfl_ipool *pool);