summaryrefslogtreecommitdiff
path: root/src/modules/xkbswitch/e_mod_parse.h
blob: e0ce2010817064683b87be8e3c3176deb24445fa (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * XML parsing abstraction interface header.
 * Contains public structs and lists externs which are further used.
 */

#ifndef E_MOD_PARSE_H
#define E_MOD_PARSE_H

typedef struct _E_XKB_Model
{
   const char *name;
   const char *description;
} E_XKB_Model;

typedef struct _E_XKB_Variant
{
   const char *name;
   const char *description;
} E_XKB_Variant;

typedef struct _E_XKB_Layout
{
   const char *name;
   const char *description;

   Eina_List  *variants;
} E_XKB_Layout;

typedef struct _E_XKB_Option_Group
{
   const char *description;
   Eina_List  *options;
} E_XKB_Option_Group;

typedef struct _E_XKB_Option
{
   const char *name;
   const char *description;
} E_XKB_Option;

int  parse_rules(void);
void clear_rules(void);
void find_rules(void);

int  layout_sort_by_name_cb(const void *data1, const void *data2);

extern Eina_List *models;
extern Eina_List *layouts;
extern Eina_List *optgroups;

#endif