ekg2  GIT master
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
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 
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. */
32 };
33 
34 typedef struct query_def_node {
36  char *name;
37  int name_hash;
39 } query_def_t;
40 
41 int queries_init();
42 int query_register_const(const query_def_t *def);
43 
45 extern int registered_queries_count;
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif
52