00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef SUPPORT_H
00018 #define SUPPORT_H
00019
00020 #include <sys/types.h>
00021 #include <sys/stat.h>
00022 #include <stdio.h>
00023 #include <stdlib.h>
00024 #include <unistd.h>
00025 #include <string.h>
00026
00027 #include <X11/Xlib.h>
00028 #include <X11/XKBlib.h>
00029 #include <X11/extensions/XKBfile.h>
00030
00031
00032
00033 #include "supportpriv.h"
00034 #include "defines.h"
00035
00036
00037 #ifdef ENABLE_NLS
00038 # include <libintl.h>
00039 # undef _
00040 # define _(String) dgettext (PACKAGE, String)
00041 # ifdef gettext_noop
00042 # define N_(String) gettext_noop (String)
00043 # else
00044 # define N_(String) (String)
00045 # endif
00046 #else
00047 # define textdomain(String) (String)
00048 # define gettext(String) (String)
00049 # define dgettext(Domain,Message) (Message)
00050 # define dcgettext(Domain,Message,Type) (Message)
00051 # define bindtextdomain(Domain,Directory) (Domain)
00052 # define _(String) (String)
00053 # define N_(String) (String)
00054 #endif
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065 typedef struct strEAkey {
00066 struct strEAkey *next;
00067 char *EAkeyname;
00068 int EAkeycode;
00069 KeySym EAkeysym;
00070 char *EAcommand;
00071 } EAkey;
00072
00073
00074 typedef struct {
00075 int EAKnr;
00076 char *EAKtype;
00077 char *EAKname;
00078 EAkey *EAKeylist;
00079 } EAKeyboard;
00080
00081 EAKeyboard myEAK;
00082
00083
00084 int parseconffile(void);
00085 int parsedeffile(void);
00086 int initEAK (void);
00087 void cleanKeylist (void);
00088 int cleanexit(void);
00089 gboolean backup_conffile (void);
00090 gboolean restore_conffile (void);
00091 gboolean save_conffile (void);
00092 gint get_lineakd_pid(void);
00093
00094 gboolean changing_text_from_signal = FALSE;
00095 char *kbtype, *cdromdev;
00096 int selected_key;
00097
00098
00099
00100
00101
00102 #endif