Move get_cfg and usage out of compton.c

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-12-20 21:57:32 +00:00
parent 4ff9e810ff
commit 9880245200
4 changed files with 870 additions and 838 deletions

14
src/argparse.h Normal file
View File

@@ -0,0 +1,14 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright (c) Yuxuan Shui <yshuiv7@gmail.com>
#pragma once
#include <stdbool.h>
#include "compiler.h"
typedef struct session session_t;
/**
* Process arguments and configuration files.
*/
void get_cfg(session_t *ps, int argc, char *const *argv, bool first_pass);