wmbattery: add autogen.
[dockapps.git] / libdockapp / src / daargs.h
blobf3608fe9012f28bfd4a45ecddd8d2f9319c04b92
1 /*
2 * Copyright (c) 2005 Alban G. Hertroys
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 #include "dockapp.h"
26 * Context structure to keep track of globals
28 struct DAContext {
29 int argc; /* Raw input data */
30 char **argv;
32 int windowed;
33 int width, height;
34 int timeOut;
36 DACallbacks callbacks;
38 char *programName; /* shortcut to argv[0] */
40 DAProgramOption **options; /* Array of option pointers */
41 short optionCount;
45 struct DAContext *DAContextInit(int argc, char **argv);
46 void DAFreeContext(void);