ekg2
GIT master
Strona główna
Dodatkowe strony
Moduły
Struktury Danych
Pliki
Lista plików
Globalne
All
Struktury Danych
Pliki
Funkcje
Zmienne
Definicje typów
Wyliczenia
Wartości wyliczeń
Definicje
Grupay
Strony
ekg
queries.h
Idź do dokumentacji tego pliku.
1
#ifndef __EKG_QUERIES
2
#define __EKG_QUERIES
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
#define QUERY_ARGS_MAX 12
9
10
enum
query_arg_type
{
11
QUERY_ARG_END
= 0,
/* Terminates an array of `query_arg_type' values */
12
13
/* Type specifiers */
14
QUERY_ARG_CHARP
,
/* char * */
15
QUERY_ARG_CHARPP
,
/* char ** */
16
QUERY_ARG_INT
,
/* int */
17
QUERY_ARG_UINT
,
/* unsigned int */
/* -> time_t, guint32 */
18
19
QUERY_ARG_WINDOW
= 100,
/* window_t */
20
QUERY_ARG_FSTRING
,
/* fstring_t */
21
QUERY_ARG_USERLIST
,
/* userlist_t */
22
QUERY_ARG_SESSION
,
/* session_t */
23
24
/* Flags. Can be OR-ed with type specifiers. */
25
QUERY_ARG_CONST
= (1<<31),
/* Means that the argument should not be modified by a script.
26
* In case it _will_ be modified, the new value will be
27
* ignored and not propagated further. */
28
29
/* Masks. Used for extracting type specifiers and flags. */
30
QUERY_ARG_FLAGS
= (
QUERY_ARG_CONST
),
31
QUERY_ARG_TYPES
= ~
QUERY_ARG_FLAGS
32
};
33
34
typedef
struct
query_def_node
{
35
struct
query_def_node
*
next
;
36
char
*
name
;
37
int
name_hash
;
38
enum
query_arg_type
params
[
QUERY_ARGS_MAX
];
39
}
query_def_t
;
40
41
int
queries_init
();
42
int
query_register_const
(
const
query_def_t
*def);
43
44
extern
query_def_t
*
registered_queries
;
45
extern
int
registered_queries_count
;
46
47
#ifdef __cplusplus
48
}
49
#endif
50
51
#endif
52
Wygenerowano Wt, 29 paź 2013 20:17:04 dla ekg2 programem
1.8.4