]> icculus.org git repositories - mikachu/openbox.git/blob - otk/util.hh
execute files such that i can track if an exception was thrown in it
[mikachu/openbox.git] / otk / util.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __util_hh
3 #define __util_hh
4
5 extern "C" {
6 #include <X11/Xlib.h>
7 #include <X11/Xutil.h>
8 }
9
10 #include <string>
11 #include <vector>
12
13 namespace otk {
14
15 std::string expandTilde(const std::string& s);
16
17 void bexec(const std::string& command, const std::string& displaystring);
18
19 std::string itostring(unsigned long i);
20 std::string itostring(long i);
21 inline std::string itostring(unsigned int i)
22   { return itostring((unsigned long) i); }
23 inline std::string itostring(int i)
24   { return itostring((long) i); }
25
26 void putenv(const std::string &data);
27
28 std::string basename(const std::string& path);
29
30 }
31
32 #endif // __util_hh