2020-02-02 03:27:55 +01:00
|
|
|
/*
|
|
|
|
* stack.h - client stack management header
|
|
|
|
*
|
|
|
|
* Copyright © 2020 Emmanuel Lepage-Vallee <elv1313@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#include "common/array.h"
|
|
|
|
#include "globalconf.h"
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialization values extracted from the command line or modeline.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
INIT_FLAG_NONE = 0x0,
|
|
|
|
INIT_FLAG_RUN_TEST = 0x1,
|
|
|
|
INIT_FLAG_ARGB = 0x1 << 1,
|
|
|
|
INIT_FLAG_REPLACE_WM = 0x1 << 2,
|
|
|
|
INIT_FLAG_AUTO_SCREEN = 0x1 << 3,
|
|
|
|
INIT_FLAG_ALLOW_FALLBACK = 0x1 << 4,
|
2020-02-08 23:11:26 +01:00
|
|
|
INIT_FLAG_FORCE_CMD_ARGS = 0x1 << 5,
|
2024-04-13 12:48:36 +02:00
|
|
|
INIT_FLAG_FULL_ARGB = 0x1 << 6,
|
2020-02-02 03:27:55 +01:00
|
|
|
} awesome_init_config_t;
|
|
|
|
|
2020-02-02 11:15:36 +01:00
|
|
|
char *options_detect_shebang(int argc, char **argv);
|
2020-09-14 20:02:09 +02:00
|
|
|
bool options_init_config(xdgHandle *xdg, char *execpath, char *configpath, int *init_flags, string_array_t *paths);
|
2020-02-02 03:27:55 +01:00
|
|
|
char *options_check_args(int argc, char **argv, int *init_flags, string_array_t *paths);
|