/loggerouter/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerouter/trunk

« back to all changes in this revision

Viewing changes to src/options.vala

  • Committer: Gustav Hartvigsson
  • Date: 2025-06-03 20:51:10 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20250603205110-zfozhyqh8werenbv
* Inital release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*
 
3
   This file is part of LoggerOuter.
 
4
 
 
5
 LoggerOuter is free software: you can redistribute it and/or modify it under the
 
6
 terms of the GNU Lesser General Public License as published by the Free Software
 
7
 Foundation, either version 3 of the License, or (at your option) any later
 
8
 version.
 
9
 
 
10
 LoggerOuter is distributed in the hope that it will be useful, but WITHOUT
 
11
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
12
 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 
13
 License for more details.
 
14
 
 
15
 You should have received a copy of the GNU Lessel General Public License
 
16
 along with LoggerOuter. If not, see <https://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
public struct LO.Options{
 
20
  public string exec_name;
 
21
  public bool version;
 
22
  public string config_path;
 
23
  public bool config_help;
 
24
  public string actions_path;
 
25
 
 
26
  private static GLib.Once<LO.Options?> instance;
 
27
 
 
28
  public static unowned LO.Options? get_instance () {
 
29
    return instance.once (() => {
 
30
        return LO.Options ();
 
31
    });
 
32
  }
 
33
 
 
34
  private  Options () {
 
35
  }
 
36
}