diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/artifactory.h | 18 | ||||
-rw-r--r-- | include/conda.h | 8 | ||||
-rw-r--r-- | include/config.h.in | 18 | ||||
-rw-r--r-- | include/copy.h | 6 | ||||
-rw-r--r-- | include/core.h (renamed from include/omc.h) | 26 | ||||
-rw-r--r-- | include/delivery.h (renamed from include/deliverable.h) | 18 | ||||
-rw-r--r-- | include/docker.h | 16 | ||||
-rw-r--r-- | include/download.h | 6 | ||||
-rw-r--r-- | include/environment.h | 6 | ||||
-rw-r--r-- | include/ini.h | 6 | ||||
-rw-r--r-- | include/junitxml.h | 6 | ||||
-rw-r--r-- | include/os_darwin.h | 4 | ||||
-rw-r--r-- | include/os_linux.h | 4 | ||||
-rw-r--r-- | include/recipe.h | 6 | ||||
-rw-r--r-- | include/relocation.h | 8 | ||||
-rw-r--r-- | include/rules.h | 8 | ||||
-rw-r--r-- | include/str.h | 24 | ||||
-rw-r--r-- | include/strlist.h | 6 | ||||
-rw-r--r-- | include/system.h | 8 | ||||
-rw-r--r-- | include/template.h | 8 | ||||
-rw-r--r-- | include/utils.h | 58 | ||||
-rw-r--r-- | include/wheel.h | 6 |
22 files changed, 137 insertions, 137 deletions
diff --git a/include/artifactory.h b/include/artifactory.h index 0883eef..6880d17 100644 --- a/include/artifactory.h +++ b/include/artifactory.h @@ -1,10 +1,10 @@ //! @file artifactory.h -#ifndef OMC_ARTIFACTORY_H -#define OMC_ARTIFACTORY_H +#ifndef STASIS_ARTIFACTORY_H +#define STASIS_ARTIFACTORY_H #include <stdio.h> #include <stdlib.h> -#include "omc.h" +#include "core.h" //! JFrog Artifactory Authentication struct struct JFRT_Auth { @@ -276,13 +276,13 @@ int jfrog_cli_rt_build_collect_env(struct JFRT_Auth *auth, char *build_name, cha int jfrog_cli_rt_build_publish(struct JFRT_Auth *auth, char *build_name, char *build_number); /** - * Configure JFrog CLI authentication according to OMC specs + * Configure JFrog CLI authentication according to STASIS specs * - * This function will use the OMC_JF_* environment variables to configure the authentication - * context. With this in mind, if an OMC_JF_* environment variable is not defined, the original value of + * This function will use the STASIS_JF_* environment variables to configure the authentication + * context. With this in mind, if an STASIS_JF_* environment variable is not defined, the original value of * the structure member will be used instead. * - * Use OMC_JF_* variables to configure context + * Use STASIS_JF_* variables to configure context * * ```c * struct JFRT_Auth auth_ctx; @@ -299,7 +299,7 @@ int jfrog_cli_rt_build_publish(struct JFRT_Auth *auth, char *build_name, char *b * jfrt_auth_init(&auth_ctx); * ``` * - * Use your own input without OMC's help. Purely an illustrative example. + * Use your own input without STASIS's help. Purely an illustrative example. * * ```c * struct JFRT_Auth auth_ctx; @@ -320,4 +320,4 @@ int jfrt_auth_init(struct JFRT_Auth *auth_ctx); */ void jfrt_upload_init(struct JFRT_Upload *ctx); -#endif //OMC_ARTIFACTORY_H
\ No newline at end of file +#endif //STASIS_ARTIFACTORY_H
\ No newline at end of file diff --git a/include/conda.h b/include/conda.h index 9cbbf9c..086a842 100644 --- a/include/conda.h +++ b/include/conda.h @@ -1,10 +1,10 @@ //! @file conda.h -#ifndef OMC_CONDA_H -#define OMC_CONDA_H +#ifndef STASIS_CONDA_H +#define STASIS_CONDA_H #include <stdio.h> #include <string.h> -#include "omc.h" +#include "core.h" #define CONDA_INSTALL_PREFIX "conda" @@ -167,4 +167,4 @@ int conda_env_export(char *name, char *output_dir, char *output_filename); * @return exit code from "conda" */ int conda_index(const char *path); -#endif //OMC_CONDA_H +#endif //STASIS_CONDA_H diff --git a/include/config.h.in b/include/config.h.in index fe6beb2..0df955d 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -1,28 +1,28 @@ -#ifndef OMC_CONFIG_H -#define OMC_CONFIG_H +#ifndef STASIS_CONFIG_H +#define STASIS_CONFIG_H -#define OMC_SYSCONFDIR "@SYSCONFDIR@/omc" +#define STASIS_SYSCONFDIR "@SYSCONFDIR@/stasis" #if defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__) -#define OMC_OS_WINDOWS +#define STASIS_OS_WINDOWS #elif defined(__linux__) -#define OMC_OS_LINUX +#define STASIS_OS_LINUX #include "os_linux.h" #elif defined(unix) || defined(__unix__) || defined(__unix) -#define OMC_OS_UNIX +#define STASIS_OS_UNIX #elif defined(__APPLE__) -#define OMC_OS_DARWIN +#define STASIS_OS_DARWIN #include "os_darwin.h" #else -#define OMC_OS_UNKNOWN +#define STASIS_OS_UNKNOWN #error Operating system unknown/unsupported #endif // OS detection -#endif // OMC_CONFIG_H +#endif // STASIS_CONFIG_H diff --git a/include/copy.h b/include/copy.h index 5a53d7d..609a6cf 100644 --- a/include/copy.h +++ b/include/copy.h @@ -1,5 +1,5 @@ //! @file copy.h -#ifndef OMC_COPY_H +#ifndef STASIS_COPY_H #include <stdio.h> #include <stdlib.h> @@ -8,7 +8,7 @@ #include <errno.h> #include <sys/stat.h> #include <unistd.h> -#include "omc.h" +#include "core.h" #define CT_OWNER 1 << 1 #define CT_PERM 1 << 2 @@ -58,4 +58,4 @@ int mkdirs(const char *_path, mode_t mode); */ int copy2(const char *src, const char *dest, unsigned op); -#endif // OMC_COPY_H
\ No newline at end of file +#endif // STASIS_COPY_H
\ No newline at end of file diff --git a/include/omc.h b/include/core.h index e728207..1a7ddea 100644 --- a/include/omc.h +++ b/include/core.h @@ -1,6 +1,6 @@ -//! @file omc.h -#ifndef OMC_OMC_H -#define OMC_OMC_H +//! @file stasis.h +#ifndef STASIS_CORE_H +#define STASIS_CORE_H #include <stdio.h> #include <stdlib.h> @@ -14,10 +14,10 @@ fprintf(stderr, "%s:%s:%d:%s - ", path_basename(__FILE__), __FUNCTION__, __LINE__, strerror(errno) ? "info" : strerror(errno)); \ fprintf(stderr, MSG LINE_SEP, __VA_ARGS__); \ } while (0) -#define OMC_BUFSIZ 8192 -#define OMC_NAME_MAX 255 -#define OMC_DIRSTACK_MAX 1024 -#define OMC_TIME_STR_MAX 128 +#define STASIS_BUFSIZ 8192 +#define STASIS_NAME_MAX 255 +#define STASIS_DIRSTACK_MAX 1024 +#define STASIS_TIME_STR_MAX 128 #define HTTP_ERROR(X) X >= 400 #include "config.h" @@ -29,7 +29,7 @@ #include "environment.h" #include "artifactory.h" #include "docker.h" -#include "deliverable.h" +#include "delivery.h" #include "str.h" #include "strlist.h" #include "system.h" @@ -52,12 +52,12 @@ #define COE_CHECK_ABORT(COND, MSG) \ do {\ if (!globals.continue_on_error && COND) { \ - msg(OMC_MSG_ERROR, MSG ": Aborting execution (--continue-on-error/-C is not enabled)\n"); \ + msg(STASIS_MSG_ERROR, MSG ": Aborting execution (--continue-on-error/-C is not enabled)\n"); \ exit(1); \ } \ } while (0) -struct OMC_GLOBAL { +struct STASIS_GLOBAL { bool verbose; //!< Enable verbose output bool always_update_base_environment; //!< Update base environment immediately after activation bool continue_on_error; //!< Do not stop on test failures @@ -69,7 +69,7 @@ struct OMC_GLOBAL { struct StrList *pip_packages; //!< Pip packages to install after initial activation char *tmpdir; //!< Path to temporary storage directory char *conda_install_prefix; //!< Path to install conda - char *sysconfdir; //!< Path where OMC reads its configuration files (mission directory, etc) + char *sysconfdir; //!< Path where STASIS reads its configuration files (mission directory, etc) struct { char *tox_posargs; } workaround; @@ -85,7 +85,7 @@ struct OMC_GLOBAL { char *url; } jfrog; }; -extern struct OMC_GLOBAL globals; +extern struct STASIS_GLOBAL globals; extern const char *VERSION; extern const char *AUTHOR; extern const char *BANNER; @@ -96,4 +96,4 @@ extern const char *BANNER; */ void globals_free(); -#endif //OMC_OMC_H +#endif //STASIS_CORE_H diff --git a/include/deliverable.h b/include/delivery.h index effd098..971705f 100644 --- a/include/deliverable.h +++ b/include/delivery.h @@ -1,13 +1,13 @@ -/// @file deliverable.h +/// @file delivery.h -#ifndef OMC_DELIVERABLE_H -#define OMC_DELIVERABLE_H +#ifndef STASIS_DELIVERY_H +#define STASIS_DELIVERY_H #include <string.h> #include <stdbool.h> #include <unistd.h> #include <sys/utsname.h> -#include "omc.h" +#include "core.h" #define DELIVERY_PLATFORM_MAX 4 #define DELIVERY_PLATFORM_MAXLEN 65 @@ -37,17 +37,17 @@ struct Content { * \brief A structure describing a full delivery object */ struct Delivery { - /*! \struct OMC_INI_FP + /*! \struct STASIS_INI_FP * \brief Container for INIFILE handles */ - struct OMC_INI_FP { + struct STASIS_INI_FP { struct INIFILE *delivery; struct INIFILE *cfg; struct INIFILE *mission; char *delivery_path; char *cfg_path; char *mission_path; - } _omc_ini_fp; + } _stasis_ini_fp; /*! \struct System * \brief System information @@ -110,7 +110,7 @@ struct Delivery { char *build_name; char *build_number; struct tm *time_info; ///< Delivery time structure - time_t time_now; ///< Time stamp for when OMC execution started + time_t time_now; ///< Time stamp for when STASIS execution started char *time_str_epoch; ///< String representation of Unix epoch } info; @@ -391,4 +391,4 @@ int *bootstrap_build_info(struct Delivery *ctx); int delivery_dump_metadata(struct Delivery *ctx); -#endif //OMC_DELIVERABLE_H +#endif //STASIS_DELIVERY_H diff --git a/include/docker.h b/include/docker.h index a5fdbc4..ff8a8d5 100644 --- a/include/docker.h +++ b/include/docker.h @@ -1,17 +1,17 @@ //! @file docker.h -#ifndef OMC_DOCKER_H -#define OMC_DOCKER_H +#ifndef STASIS_DOCKER_H +#define STASIS_DOCKER_H //! Flag to squelch output from docker_exec() -#define OMC_DOCKER_QUIET 1 << 1 +#define STASIS_DOCKER_QUIET 1 << 1 //! Flag for older style docker build -#define OMC_DOCKER_BUILD 1 << 1 +#define STASIS_DOCKER_BUILD 1 << 1 //! Flag for docker buildx -#define OMC_DOCKER_BUILD_X 1 << 2 +#define STASIS_DOCKER_BUILD_X 1 << 2 //! Compress "docker save"ed images with a compression program -#define OMC_DOCKER_IMAGE_COMPRESSION "zstd" +#define STASIS_DOCKER_IMAGE_COMPRESSION "zstd" struct DockerCapabilities { int podman; //!< Is "docker" really podman? @@ -42,7 +42,7 @@ int docker_capable(struct DockerCapabilities *result); /** * Execute a docker command * - * Use the `OMC_DOCKER_QUIET` flag to suppress all output from stdout and stderr. + * Use the `STASIS_DOCKER_QUIET` flag to suppress all output from stdout and stderr. * * ```c * if (docker_exec("run --rm -t ubuntu:latest /bin/bash -c 'echo Hello world'", 0)) { @@ -87,4 +87,4 @@ void docker_sanitize_tag(char *str); int docker_validate_compression_program(char *prog); -#endif //OMC_DOCKER_H +#endif //STASIS_DOCKER_H diff --git a/include/download.h b/include/download.h index 568809e..058812e 100644 --- a/include/download.h +++ b/include/download.h @@ -1,10 +1,10 @@ //! @file download.h -#ifndef OMC_DOWNLOAD_H -#define OMC_DOWNLOAD_H +#ifndef STASIS_DOWNLOAD_H +#define STASIS_DOWNLOAD_H #include <curl/curl.h> size_t download_writer(void *fp, size_t size, size_t nmemb, void *stream); long download(char *url, const char *filename, char **errmsg); -#endif //OMC_DOWNLOAD_H +#endif //STASIS_DOWNLOAD_H diff --git a/include/environment.h b/include/environment.h index 484f02c..34bc600 100644 --- a/include/environment.h +++ b/include/environment.h @@ -1,8 +1,8 @@ /** * @file environment.h */ -#ifndef OMC_ENVIRONMENT_H -#define OMC_ENVIRONMENT_H +#ifndef STASIS_ENVIRONMENT_H +#define STASIS_ENVIRONMENT_H #include <stdio.h> #include <stdlib.h> @@ -20,4 +20,4 @@ char *runtime_expand_var(RuntimeEnv *env, char *input); void runtime_export(RuntimeEnv *env, char **keys); void runtime_apply(RuntimeEnv *env); void runtime_free(RuntimeEnv *env); -#endif //OMC_ENVIRONMENT_H +#endif //STASIS_ENVIRONMENT_H diff --git a/include/ini.h b/include/ini.h index 022a066..af2639b 100644 --- a/include/ini.h +++ b/include/ini.h @@ -1,7 +1,7 @@ /// @file ini.h -#ifndef OMC_INI_H -#define OMC_INI_H +#ifndef STASIS_INI_H +#define STASIS_INI_H #include <stddef.h> #include <stdbool.h> @@ -217,4 +217,4 @@ int ini_write(struct INIFILE *ini, FILE **stream, unsigned mode); * @param ini */ void ini_free(struct INIFILE **ini); -#endif //OMC_INI_H +#endif //STASIS_INI_H diff --git a/include/junitxml.h b/include/junitxml.h index 2d94eb8..504b8e4 100644 --- a/include/junitxml.h +++ b/include/junitxml.h @@ -1,6 +1,6 @@ /// @file junitxml.h -#ifndef OMC_JUNITXML_H -#define OMC_JUNITXML_H +#ifndef STASIS_JUNITXML_H +#define STASIS_JUNITXML_H #include <libxml/xmlreader.h> #define JUNIT_RESULT_STATE_NONE 0 @@ -132,4 +132,4 @@ struct JUNIT_Testsuite *junitxml_testsuite_read(const char *filename); */ void junitxml_testsuite_free(struct JUNIT_Testsuite **testsuite); -#endif //OMC_JUNITXML_H +#endif //STASIS_JUNITXML_H diff --git a/include/os_darwin.h b/include/os_darwin.h index 390968c..e8513ff 100644 --- a/include/os_darwin.h +++ b/include/os_darwin.h @@ -1,5 +1,5 @@ -#ifndef OMC_OS_DARWIN_H -#define OMC_OS_DARWIN_H +#ifndef STASIS_OS_DARWIN_H +#define STASIS_OS_DARWIN_H #include <sys/mount.h> diff --git a/include/os_linux.h b/include/os_linux.h index 8c3aed7..d418090 100644 --- a/include/os_linux.h +++ b/include/os_linux.h @@ -1,5 +1,5 @@ -#ifndef OMC_OS_LINUX_H -#define OMC_OS_LINUX_H +#ifndef STASIS_OS_LINUX_H +#define STASIS_OS_LINUX_H #include <limits.h> diff --git a/include/recipe.h b/include/recipe.h index f1b4df1..4dea248 100644 --- a/include/recipe.h +++ b/include/recipe.h @@ -1,6 +1,6 @@ //! @file recipe.h -#ifndef OMC_RECIPE_H -#define OMC_RECIPE_H +#ifndef STASIS_RECIPE_H +#define STASIS_RECIPE_H #include "str.h" #include "utils.h" @@ -69,4 +69,4 @@ int recipe_clone(char *recipe_dir, char *url, char *gitref, char **result); */ int recipe_get_type(char *repopath); -#endif //OMC_RECIPE_H +#endif //STASIS_RECIPE_H diff --git a/include/relocation.h b/include/relocation.h index 924f00f..9a1f0f4 100644 --- a/include/relocation.h +++ b/include/relocation.h @@ -1,15 +1,15 @@ /** * @file relocation.h */ -#ifndef OMC_RELOCATION_H -#define OMC_RELOCATION_H +#ifndef STASIS_RELOCATION_H +#define STASIS_RELOCATION_H #include "config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> -#if defined(OMC_OS_DARWIN) +#if defined(STASIS_OS_DARWIN) #include <limits.h> # else #include <linux/limits.h> @@ -21,4 +21,4 @@ int replace_text(char *original, const char *target, const char *replacement, unsigned flags); int file_replace_text(const char* filename, const char* target, const char* replacement, unsigned flags); -#endif //OMC_RELOCATION_H +#endif //STASIS_RELOCATION_H diff --git a/include/rules.h b/include/rules.h index 63eade7..666d331 100644 --- a/include/rules.h +++ b/include/rules.h @@ -2,10 +2,10 @@ // Created by jhunk on 12/18/23. // -#ifndef OMC_RULES_H -#define OMC_RULES_H +#ifndef STASIS_RULES_H +#define STASIS_RULES_H -#include "omc.h" +#include "core.h" -#endif //OMC_RULES_H +#endif //STASIS_RULES_H diff --git a/include/str.h b/include/str.h index 595a055..4cf221d 100644 --- a/include/str.h +++ b/include/str.h @@ -1,20 +1,20 @@ /** * @file str.h */ -#ifndef OMC_STR_H -#define OMC_STR_H +#ifndef STASIS_STR_H +#define STASIS_STR_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <ctype.h> -#include "omc.h" +#include "core.h" -#define OMC_SORT_ALPHA 1 << 0 -#define OMC_SORT_NUMERIC 1 << 1 -#define OMC_SORT_LEN_ASCENDING 1 << 2 -#define OMC_SORT_LEN_DESCENDING 1 << 3 +#define STASIS_SORT_ALPHA 1 << 0 +#define STASIS_SORT_NUMERIC 1 << 1 +#define STASIS_SORT_LEN_ASCENDING 1 << 2 +#define STASIS_SORT_LEN_DESCENDING 1 << 3 /** * Determine how many times the character `ch` appears in `sptr` string @@ -115,10 +115,10 @@ char *substring_between(char *sptr, const char *delims); * Sort an array of strings * @param arr a NULL terminated array of strings * @param sort_mode - * - OMC_SORT_LEN_DESCENDING - * - OMC_SORT_LEN_ASCENDING - * - OMC_SORT_ALPHA - * - OMC_SORT_NUMERIC + * - STASIS_SORT_LEN_DESCENDING + * - STASIS_SORT_LEN_ASCENDING + * - STASIS_SORT_ALPHA + * - STASIS_SORT_NUMERIC */ void strsort(char **arr, unsigned int sort_mode); @@ -307,4 +307,4 @@ char *tolower_s(char *s); */ char *to_short_version(const char *s); -#endif //OMC_STR_H +#endif //STASIS_STR_H diff --git a/include/strlist.h b/include/strlist.h index 3f35e23..dd22a0a 100644 --- a/include/strlist.h +++ b/include/strlist.h @@ -2,8 +2,8 @@ * String array convenience functions * @file strlist.h */ -#ifndef OMC_STRLIST_H -#define OMC_STRLIST_H +#ifndef STASIS_STRLIST_H +#define STASIS_STRLIST_H #include <stdlib.h> #include "utils.h" #include "str.h" @@ -52,4 +52,4 @@ extern int strlist_errno; const char *strlist_get_error(int flag); -#endif //OMC_STRLIST_H +#endif //STASIS_STRLIST_H diff --git a/include/system.h b/include/system.h index 94d5a36..7019b92 100644 --- a/include/system.h +++ b/include/system.h @@ -2,8 +2,8 @@ * System functions * @file system.h */ -#ifndef OMC_SYSTEM_H -#define OMC_SYSTEM_H +#ifndef STASIS_SYSTEM_H +#define STASIS_SYSTEM_H #include <stdio.h> #include <stdlib.h> @@ -14,7 +14,7 @@ #include <sys/wait.h> #include <sys/stat.h> -#define OMC_SHELL_SAFE_RESTRICT ";&|()" +#define STASIS_SHELL_SAFE_RESTRICT ";&|()" struct Process { // Write stdout stream to file @@ -31,4 +31,4 @@ int shell(struct Process *proc, char *args); int shell_safe(struct Process *proc, char *args); char *shell_output(const char *command, int *status); -#endif //OMC_SYSTEM_H +#endif //STASIS_SYSTEM_H diff --git a/include/template.h b/include/template.h index 362eb3d..ba62667 100644 --- a/include/template.h +++ b/include/template.h @@ -1,8 +1,8 @@ //! @file template.h -#ifndef OMC_TEMPLATE_H -#define OMC_TEMPLATE_H +#ifndef STASIS_TEMPLATE_H +#define STASIS_TEMPLATE_H -#include "omc.h" +#include "core.h" /** * Map a text value to a pointer in memory @@ -64,4 +64,4 @@ struct tplfunc_frame { }; void tpl_register_func(char *key, struct tplfunc_frame *frame); -#endif //OMC_TEMPLATE_H +#endif //STASIS_TEMPLATE_H diff --git a/include/utils.h b/include/utils.h index 8840a0d..2c80e77 100644 --- a/include/utils.h +++ b/include/utils.h @@ -1,6 +1,6 @@ //! @file utils.h -#ifndef OMC_UTILS_H -#define OMC_UTILS_H +#ifndef STASIS_UTILS_H +#define STASIS_UTILS_H #include <stdio.h> #include <stdlib.h> #include <dirent.h> @@ -10,7 +10,7 @@ #include <errno.h> #include "system.h" -#if defined(OMC_OS_WINDOWS) +#if defined(STASIS_OS_WINDOWS) #define PATH_ENV_VAR "path" #define DIR_SEP "\\" #define PATH_SEP ";" @@ -22,8 +22,8 @@ #define LINE_SEP "\n" #endif -#define OMC_XML_PRETTY_PRINT_PROG "xmllint" -#define OMC_XML_PRETTY_PRINT_ARGS "--format" +#define STASIS_XML_PRETTY_PRINT_PROG "xmllint" +#define STASIS_XML_PRETTY_PRINT_ARGS "--format" typedef int (ReaderFn)(size_t line, char **); @@ -167,7 +167,7 @@ char *git_describe(const char *path); char *git_rev_parse(const char *path, char *args); /** - * Helper function to initialize simple OMC internal path strings + * Helper function to initialize simple STASIS internal path strings * * ```c * char *mypath = NULL; @@ -188,43 +188,43 @@ char *git_rev_parse(const char *path, char *args); */ int path_store(char **destptr, size_t maxlen, const char *base, const char *path); -#if defined(OMC_DUMB_TERMINAL) -#define OMC_COLOR_RED "" -#define OMC_COLOR_GREEN "" -#define OMC_COLOR_YELLOW "" -#define OMC_COLOR_BLUE "" -#define OMC_COLOR_WHITE "" -#define OMC_COLOR_RESET "" +#if defined(STASIS_DUMB_TERMINAL) +#define STASIS_COLOR_RED "" +#define STASIS_COLOR_GREEN "" +#define STASIS_COLOR_YELLOW "" +#define STASIS_COLOR_BLUE "" +#define STASIS_COLOR_WHITE "" +#define STASIS_COLOR_RESET "" #else //! Set output color to red -#define OMC_COLOR_RED "\e[1;91m" +#define STASIS_COLOR_RED "\e[1;91m" //! Set output color to green -#define OMC_COLOR_GREEN "\e[1;92m" +#define STASIS_COLOR_GREEN "\e[1;92m" //! Set output color to yellow -#define OMC_COLOR_YELLOW "\e[1;93m" +#define STASIS_COLOR_YELLOW "\e[1;93m" //! Set output color to blue -#define OMC_COLOR_BLUE "\e[1;94m" +#define STASIS_COLOR_BLUE "\e[1;94m" //! Set output color to white -#define OMC_COLOR_WHITE "\e[1;97m" +#define STASIS_COLOR_WHITE "\e[1;97m" //! Reset output color to terminal default -#define OMC_COLOR_RESET "\e[0;37m\e[0m" +#define STASIS_COLOR_RESET "\e[0;37m\e[0m" #endif -#define OMC_MSG_SUCCESS 0 +#define STASIS_MSG_SUCCESS 0 //! Suppress printing of the message text -#define OMC_MSG_NOP 1 << 0 +#define STASIS_MSG_NOP 1 << 0 //! The message is an error -#define OMC_MSG_ERROR 1 << 1 +#define STASIS_MSG_ERROR 1 << 1 //! The message is a warning -#define OMC_MSG_WARN 1 << 2 +#define STASIS_MSG_WARN 1 << 2 //! The message will be indented once -#define OMC_MSG_L1 1 << 3 +#define STASIS_MSG_L1 1 << 3 //! The message will be indented twice -#define OMC_MSG_L2 1 << 4 +#define STASIS_MSG_L2 1 << 4 //! The message will be indented thrice -#define OMC_MSG_L3 1 << 5 +#define STASIS_MSG_L3 1 << 5 //! The message will only be printed in verbose mode -#define OMC_MSG_RESTRICT 1 << 6 +#define STASIS_MSG_RESTRICT 1 << 6 void msg(unsigned type, char *fmt, ...); @@ -278,7 +278,7 @@ int isempty_dir(const char *path); int xml_pretty_print_in_place(const char *filename, const char *pretty_print_prog, const char *pretty_print_args); /** - * Applies OMC fixups to a tox ini config + * Applies STASIS fixups to a tox ini config * @param filename path to tox.ini * @param result path to processed configuration * @return 0 on success, -1 on error @@ -351,4 +351,4 @@ int redact_sensitive(const char **to_redact, size_t to_redact_size, char *src, c */ struct StrList *listdir(const char *path); -#endif //OMC_UTILS_H +#endif //STASIS_UTILS_H diff --git a/include/wheel.h b/include/wheel.h index cca15d4..94cf46a 100644 --- a/include/wheel.h +++ b/include/wheel.h @@ -1,5 +1,5 @@ -#ifndef OMC_WHEEL_H -#define OMC_WHEEL_H +#ifndef STASIS_WHEEL_H +#define STASIS_WHEEL_H #include <dirent.h> #include <string.h> @@ -18,4 +18,4 @@ struct Wheel { }; struct Wheel *get_wheel_file(const char *basepath, const char *name, char *to_match[]); -#endif //OMC_WHEEL_H +#endif //STASIS_WHEEL_H |