1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* Copyright (C) 2001, 2002, 2003 by Hans Reiser, licensing governed by
libaal/COPYING.
ui.c -- callback function for using them for ask user enter something. */
#ifndef AAL_UI_H
#define AAL_UI_H
#ifndef ENABLE_MINIMAL
#include <aal/types.h>
typedef int (*aal_check_numeric_func_t) (int64_t, void *);
typedef int64_t (*aal_numeric_func_t) (const char *, int64_t,
aal_check_numeric_func_t, void *);
typedef int (*aal_check_alpha_func_t) (char *, void *);
typedef void (*aal_alpha_func_t) (const char *, char *,
aal_check_alpha_func_t, void *);
extern void aal_ui_set_numeric_handler(aal_numeric_func_t func);
extern aal_numeric_func_t aal_ui_get_numeric_handler(void);
extern int64_t aal_ui_get_numeric(int64_t defvalue,
aal_check_numeric_func_t check_func,
void *, const char *format, ...);
extern void aal_ui_set_alpha_handler(aal_alpha_func_t func);
extern aal_alpha_func_t aal_ui_get_alpha_handler(void);
extern void aal_ui_get_alpha(char *defvalue,
aal_check_alpha_func_t check_func,
void *, const char *format, ...);
#endif
#endif
|