aboutsummaryrefslogtreecommitdiff
path: root/src/cli.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.hh')
-rw-r--r--src/cli.hh50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/cli.hh b/src/cli.hh
new file mode 100644
index 0000000..ac1e655
--- /dev/null
+++ b/src/cli.hh
@@ -0,0 +1,50 @@
1#ifndef CLI_HH
2#define CLI_HH
3
4// cli.hh for Fluxbox Window Manager
5// Copyright (c) 2014 - Mathias Gumz <akira at fluxbox.org>
6//
7// Permission is hereby granted, free of charge, to any person obtaining a
8// copy of this software and associated documentation files (the "Software"),
9// to deal in the Software without restriction, including without limitation
10// the rights to use, copy, modify, merge, publish, distribute, sublicense,
11// and/or sell copies of the Software, and to permit persons to whom the
12// Software is furnished to do so, subject to the following conditions:
13//
14// The above copyright notice and this permission notice shall be included in
15// all copies or substantial portions of the Software.
16//
17// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE.
24
25#include <fstream>
26#include <string>
27
28namespace FluxboxCli {
29
30struct Options {
31 Options();
32 int parse(int argc, char** argv);
33
34 std::string session_display;
35 std::string rc_path;
36 std::string rc_file;
37 std::string log_filename;
38 bool xsync;
39};
40
41
42void showInfo(std::ostream&);
43
44void setupConfigFiles(const std::string& dirname, const std::string& rc);
45void updateConfigFilesIfNeeded(const std::string& rc_file);
46
47}
48
49#endif /* end of include guard: CLI_HH */
50