File indexing completed on 2025-02-22 10:38:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #pragma once
0022 #ifndef GFAL_CONSTANTS_H_
0023 #define GFAL_CONSTANTS_H_
0024
0025 #if !defined(__GFAL2_H_INSIDE__) && !defined(__GFAL2_BUILD__)
0026 # warning "Direct inclusion of gfal2 headers is deprecated. Please, include only gfal_api.h or gfal_plugins_api.h"
0027 #endif
0028
0029 #ifdef __cplusplus
0030 extern "C"
0031 {
0032 #endif
0033
0034
0035 #define MAX_PLUGIN_LIST 15
0036
0037
0038 #define GFAL_MODULE_NAME_SIZE 1024
0039
0040
0041 #define GFAL_ERRMSG_LEN 2048
0042
0043
0044 #define GFAL_URL_MAX_LEN 2048
0045
0046
0047 #define GFAL_ADLER_CHKSUM_LEN 8
0048
0049
0050 #define GFAL_PLUGIN_DIR_ENV "GFAL_PLUGIN_DIR"
0051
0052 #define GFAL_PLUGIN_DIR_SUFFIX "gfal2-plugins"
0053
0054 #define GFAL_PLUGIN_INIT_SYM "gfal_plugin_init"
0055
0056
0057 #define GFAL_CONFIG_DIR_ENV "GFAL_CONFIG_DIR"
0058
0059 #define GFAL_CONFIG_DIR_SUFFIX "gfal2.d"
0060
0061
0062
0063 #define GFAL_XATTR_REPLICA "user.replicas"
0064
0065 #define GFAL_XATTR_GUID "user.guid"
0066
0067 #define GFAL_XATTR_COMMENT "user.comment"
0068
0069 #define GFAL_XATTR_CHKSUM_TYPE "user.chksumtype"
0070
0071 #define GFAL_XATTR_CHKSUM_VALUE "user.checksum"
0072
0073
0074
0075
0076
0077 #define GFAL_XATTR_STATUS "user.status"
0078
0079
0080
0081
0082 #define GFAL_XATTR_STATUS_ONLINE "ONLINE"
0083 #define GFAL_XATTR_STATUS_NEARLINE "NEARLINE"
0084 #define GFAL_XATTR_STATUS_NEARLINE_ONLINE "ONLINE_AND_NEARLINE"
0085 #define GFAL_XATTR_STATUS_UNKNOWN "UNKNOWN"
0086 #define GFAL_XATTR_STATUS_LOST "LOST"
0087 #define GFAL_XATTR_STATUS_UNAVAILABLE "UNAVAILABLE"
0088 #define GFAL_XATTR_STATUS_NONE "NONE"
0089
0090
0091 #define GFAL_XATTR_SPACETOKEN "spacetoken"
0092
0093
0094 #define GFAL_XATTR_TAPE_API_SITENAME "taperestapi.sitename"
0095 #define GFAL_XATTR_TAPE_API_URI "taperestapi.uri"
0096 #define GFAL_XATTR_TAPE_API_VERSION "taperestapi.version"
0097
0098
0099 #define GFAL_SCITAG_MIN_VALUE ((1<<6) + 1)
0100 #define GFAL_SCITAG_MAX_VALUE ((1<<16) - 1)
0101
0102 #ifdef __cplusplus
0103 }
0104 #endif
0105
0106 #endif