Back to index

easystroke  0.5.5.1
main.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008-2009, Thomas Jaeger <ThJaeger@gmail.com>
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
00009  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
00010  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
00011  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
00012  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
00013  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
00014  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 #ifndef __MAIN_H__
00017 #define __MAIN_H__
00018 
00019 #include <string>
00020 #include <X11/X.h>
00021 
00022 bool is_file(std::string filename);
00023 bool is_dir(std::string dirname);
00024 
00025 extern std::string config_dir;
00026 extern const char *prefs_versions[];
00027 extern const char *actions_versions[];
00028 extern int verbosity;
00029 extern bool experimental;
00030 
00031 extern "C" {
00032 struct _XDisplay;
00033 typedef struct _XDisplay Display;
00034 }
00035 
00036 extern Display *dpy;
00037 extern Window ROOT;
00038 
00039 class Win;
00040 extern Win *win;
00041 
00042 #endif