diff options
| author | kx <kx@radix.pro> | 2023-04-11 01:18:34 +0300 |
|---|---|---|
| committer | kx <kx@radix.pro> | 2023-04-11 01:18:34 +0300 |
| commit | 11c606a6888dc269ef018359469a7276c3ad8f67 (patch) | |
| tree | 368294bb7cadcd5c44ccd082187d6a4433401027 /src/defs.h | |
| parent | 8c55752ed5b29a22fdab9faaa6ff27b7cafa6791 (diff) | |
| download | pkgtools-0.2.1.tar.xz | |
Version 0.2.1pkgtools-0.2.1
Diffstat (limited to 'src/defs.h')
| -rw-r--r-- | src/defs.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/defs.h b/src/defs.h new file mode 100644 index 0000000..08fe4b2 --- /dev/null +++ b/src/defs.h @@ -0,0 +1,51 @@ + +/********************************************************************** + + Copyright 2019 Andrey V.Kosteltsev + + Licensed under the Radix.pro License, Version 1.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + https://radix.pro/licenses/LICENSE-1.0-en_US.txt + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied. + + **********************************************************************/ + +#ifndef _DEFS_H_ +#define _DEFS_H_ + +#ifdef __cplusplus +extern "C" { +#endif + + +#define SETUP_DB_PATH "var/lib/" DISTRO_NAME +#define PACKAGES_PATH SETUP_DB_PATH "/packages" +#define REMOVED_PKGS_PATH SETUP_DB_PATH "/removed-packages" +#define SETUP_PATH SETUP_DB_PATH "/setup" +#define LOG_PATH SETUP_DB_PATH +#define SETUP_LOG_FILE "/setup.log" /* : used by: update-package, remove-package, install-package. */ +#define LOG_FILE "/" PROGRAM_NAME ".log" /* : used by: check-requires, check-package, check-db-integrity. */ + + +#define DO_NOT_WARN_ABOUT_EMPTY_REQUIRES (1) +#define DO_NOT_WARN_ABOUT_EMPTY_RESTORE_LINKS (1) +#define DO_NOT_WARN_ABOUT_SERVICE_FILES (1) +#define DO_NOT_WARN_ABOUT_OPT_PKGINFO_ITEMS (1) + +#define DO_NOT_PRINTOUT_INFO (1) + +#define DESCRIPTION_NUMBER_OF_LINES 11 +#define DESCRIPTION_LENGTH_OF_LINE 68 + + +#ifdef __cplusplus +} /* ... extern "C" */ +#endif + +#endif /* _DEFS_H_ */ |
