]> Dogcows Code - chaz/openbox/blob - otk/util.hh
doc the state functions better
[chaz/openbox] / 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 #ifdef TIME_WITH_SYS_TIME
10 # include <sys/time.h>
11 # include <time.h>
12 #else // !TIME_WITH_SYS_TIME
13 # ifdef HAVE_SYS_TIME_H
14 # include <sys/time.h>
15 # else // !HAVE_SYS_TIME_H
16 # include <time.h>
17 # endif // HAVE_SYS_TIME_H
18 #endif // TIME_WITH_SYS_TIME
19 }
20
21 #include <string>
22 #include <vector>
23
24 namespace otk {
25
26 std::string expandTilde(const std::string& s);
27
28 void bexec(const std::string& command, const std::string& displaystring);
29
30 std::string itostring(unsigned long i);
31 std::string itostring(long i);
32 inline std::string itostring(unsigned int i)
33 { return itostring((unsigned long) i); }
34 inline std::string itostring(int i)
35 { return itostring((long) i); }
36
37 void putenv(const std::string &data);
38
39 std::string basename(const std::string& path);
40
41 }
42
43 #endif // __util_hh
This page took 0.03485 seconds and 4 git commands to generate.