Mercurial > galleryd
view config.h.in @ 0:3ae73be13d33
Initial commit
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 27 Jul 2017 01:18:28 +0300 |
parents | |
children |
line wrap: on
line source
/* * Copyright (c) 2017 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #ifndef __CONFIG_H #define __CONFIG_H /* settings */ #cmakedefine DEFAULT_SCGI_PORT ${DEFAULT_SCGI_PORT} #cmakedefine DEFAULT_SCGI_THREADS ${DEFAULT_SCGI_THREADS} #cmakedefine DEFAULT_DATA_DIR "${DEFAULT_DATA_DIR}" #cmakedefine DEFAULT_WEB_DIR "${DEFAULT_WEB_DIR}" /* * config alist symbol names */ #define CONFIG_SCGI_PORT "scgi-port" #define CONFIG_SCGI_THREADS "scgi-threads" #define CONFIG_DATA_DIR "data-dir" #define CONFIG_WEB_DIR "web-dir" #define CONFIG_BASE_URL "base-url" /* * prototypes, etc. for config.c */ #include <stdint.h> struct config { uint16_t scgi_port; uint64_t scgi_threads; struct str *data_dir; struct str *web_dir; struct str *base_url; }; extern struct config config; extern int config_load(const char *fname); #endif