~ubuntu-branches/ubuntu/lucid/stfl/lucid

« back to all changes in this revision

Viewing changes to stfl.h

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde
  • Date: 2007-08-07 13:06:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070807130654-fmvsraotulj0nbri
Tags: 0.15-3
Again added fPIC to CFLAGS. Hopefully all build issues
are fixed now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  STFL - The Structured Terminal Forms Language/Library
3
 
 *  Copyright (C) 2006  Clifford Wolf <clifford@clifford.at>
4
 
 *
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.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
 
3
 *  Copyright (C) 2006, 2007  Clifford Wolf <clifford@clifford.at>
 
4
 *
 
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.
 
9
 *  
 
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.
14
 
 *
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.
 
14
 *  
 
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,
 
18
 *  MA 02110-1301 USA
18
19
 *
19
20
 *  stfl.h: The STFL C header file
20
21
 */
22
23
#ifndef STFL_H
23
24
#define STFL_H 1
24
25
 
 
26
#include <wchar.h>
 
27
 
25
28
#ifdef  __cplusplus
26
29
extern "C" {
27
30
#endif
29
32
extern int stfl_api_allow_null_pointers;
30
33
 
31
34
struct stfl_form;
 
35
struct stfl_ipool;
32
36
 
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);
35
39
 
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();
38
42
 
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);
41
 
 
42
 
extern const char *stfl_get_focus(struct stfl_form *f);
43
 
extern void stfl_set_focus(struct stfl_form *f, const char *name);
44
 
 
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);
49
 
 
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);
 
45
 
 
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);
 
48
 
 
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);
 
51
 
 
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);
 
54
 
 
55
extern const wchar_t *stfl_error();
 
56
extern void stfl_error_action(const wchar_t *mode);
 
57
 
 
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);
52
64
 
53
65
#ifdef __cplusplus
54
66
}