Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

support.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           support.h  -  description
00003                              -------------------
00004     begin                : Tue Apr 9 2002
00005     copyright            : (C) 2002 by Sheldon Lee Wen
00006     email                : tormak@rogers.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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 /*#include "lineakconfig.h"*/
00033 #include "supportpriv.h"
00034 #include "defines.h"
00035 
00036 /* Standard gettext macros. */
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 //#ifdef __cplusplus
00061 //extern "C" {
00062 //#endif
00063 
00064 /* EAKey as member of list */
00065 typedef struct strEAkey {
00066   struct strEAkey *next;
00067   char *EAkeyname;
00068   int EAkeycode;
00069   KeySym EAkeysym;
00070   char *EAcommand;
00071 } EAkey;
00072 
00073 /* the EAK we will use.. */
00074 typedef struct {
00075   int EAKnr;
00076   char *EAKtype;
00077   char *EAKname;
00078   EAkey *EAKeylist;
00079 } EAKeyboard;
00080 
00081 EAKeyboard myEAK;
00082 
00083 /* function prototypes */
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 //#ifdef __cplusplus
00099 //}
00100 //#endif
00101 
00102 #endif

Generated on Thu May 16 23:43:08 2002 for KLineakConfig by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002