Constants for all the config types. More...
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | DTYPE(t) ((enum ConfigType)((t) & 0x1F)) |
#define | D_ON_STARTUP (1 << D_B_ON_STARTUP) |
May only be set at startup. | |
#define | D_NOT_EMPTY (1 << D_B_NOT_EMPTY) |
Empty strings are not allowed. | |
#define | D_SENSITIVE (1 << D_B_SENSITIVE) |
Contains sensitive value, e.g. password. | |
#define | D_L10N_STRING (1 << D_B_L10N_STRING) |
String can be localised. | |
#define | D_CHARSET_SINGLE (1 << D_B_CHARSET_SINGLE) |
Flag for charset_validator to allow only one charset. | |
#define | D_CHARSET_STRICT (1 << D_B_CHARSET_STRICT) |
Flag for charset_validator to use strict char check. | |
#define | D_INTERNAL_FREE_CONFIGDEF (1 << D_B_INTERNAL_FREE_CONFIGDEF) |
Config item must have its ConfigDef freed. | |
#define | D_INTERNAL_DEPRECATED (1 << D_B_INTERNAL_DEPRECATED) |
Config item shouldn't be used any more. | |
#define | D_INTERNAL_INHERITED (1 << D_B_INTERNAL_INHERITED) |
Config item is inherited. | |
#define | D_INTERNAL_INITIAL_SET (1 << D_B_INTERNAL_INITIAL_SET) |
Config item must have its initial value freed. | |
#define | D_CUSTOM_BIT_0 (1 << D_B_CUSTOM_BIT_0) |
#define | D_CUSTOM_BIT_1 (1 << D_B_CUSTOM_BIT_1) |
#define | D_CUSTOM_BIT_2 (1 << D_B_CUSTOM_BIT_2) |
#define | D_CUSTOM_BIT_3 (1 << D_B_CUSTOM_BIT_3) |
#define | D_CUSTOM_BIT_4 (1 << D_B_CUSTOM_BIT_4) |
#define | D_STRING_MAILBOX D_CUSTOM_BIT_0 |
Don't perform path expansions. | |
#define | D_STRING_COMMAND D_CUSTOM_BIT_1 |
A command. | |
#define | D_INTEGER_NOT_NEGATIVE D_CUSTOM_BIT_0 |
Negative numbers are not allowed. | |
#define | D_PATH_DIR D_CUSTOM_BIT_0 |
Path is a directory. | |
#define | D_PATH_FILE D_CUSTOM_BIT_1 |
Path is a file. | |
#define | D_REGEX_MATCH_CASE D_CUSTOM_BIT_0 |
Case-sensitive matching. | |
#define | D_REGEX_ALLOW_NOT D_CUSTOM_BIT_1 |
Regex can begin with '!'. | |
#define | D_REGEX_NOSUB D_CUSTOM_BIT_2 |
Do not report what was matched (REG_NOSUB) | |
#define | D_SLIST_SEP_SPACE (0 << D_B_CUSTOM_BIT_0) |
Slist items are space-separated. | |
#define | D_SLIST_SEP_COMMA (1 << D_B_CUSTOM_BIT_0) |
Slist items are comma-separated. | |
#define | D_SLIST_SEP_COLON (2 << D_B_CUSTOM_BIT_0) |
Slist items are colon-separated. | |
#define | D_SLIST_SEP_MASK (D_CUSTOM_BIT_0 | D_CUSTOM_BIT_1) |
#define | D_SLIST_ALLOW_DUPES D_CUSTOM_BIT_2 |
Slist may contain duplicates. | |
#define | D_SLIST_ALLOW_EMPTY D_CUSTOM_BIT_3 |
Slist may be empty. | |
#define | D_SLIST_CASE_SENSITIVE D_CUSTOM_BIT_4 |
Slist is case-sensitive. | |
#define | D_SORT_LAST D_CUSTOM_BIT_0 |
Sort flag for -last prefix. | |
#define | D_SORT_REVERSE D_CUSTOM_BIT_1 |
Sort flag for -reverse prefix. | |
#define | IS_MAILBOX(flags) ((DTYPE(flags) == DT_STRING) && (flags & D_STRING_MAILBOX)) |
#define | IS_COMMAND(flags) ((DTYPE(flags) == DT_STRING) && (flags & D_STRING_COMMAND)) |
Enumerations | |
enum | ConfigType { DT_ADDRESS , DT_BOOL , DT_ENUM , DT_EXPANDO , DT_HCACHE , DT_LONG , DT_MBTABLE , DT_MYVAR , DT_NUMBER , DT_PATH , DT_QUAD , DT_REGEX , DT_SLIST , DT_SORT , DT_STRING , DT_SYNONYM , DT_END } |
enum | ConfigTypeField { D_B_ON_STARTUP = 5 , D_B_NOT_EMPTY , D_B_SENSITIVE , D_B_L10N_STRING , D_B_CHARSET_SINGLE , D_B_CHARSET_STRICT , D_B_INTERNAL_FREE_CONFIGDEF , D_B_INTERNAL_DEPRECATED , D_B_INTERNAL_INHERITED , D_B_INTERNAL_INITIAL_SET , D_B_CUSTOM_BIT_0 , D_B_CUSTOM_BIT_1 , D_B_CUSTOM_BIT_2 , D_B_CUSTOM_BIT_3 , D_B_CUSTOM_BIT_4 , D_B_CUSTOM_BIT_5 , D_B_CUSTOM_BIT_6 , D_B_CUSTOM_BIT_7 , D_B_END } |
Constants for all the config types.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file types.h.
#define DTYPE | ( | t | ) | ((enum ConfigType)((t) & 0x1F)) |
#define D_ON_STARTUP (1 << D_B_ON_STARTUP) |
#define D_NOT_EMPTY (1 << D_B_NOT_EMPTY) |
#define D_SENSITIVE (1 << D_B_SENSITIVE) |
#define D_L10N_STRING (1 << D_B_L10N_STRING) |
#define D_CHARSET_SINGLE (1 << D_B_CHARSET_SINGLE) |
#define D_CHARSET_STRICT (1 << D_B_CHARSET_STRICT) |
#define D_INTERNAL_FREE_CONFIGDEF (1 << D_B_INTERNAL_FREE_CONFIGDEF) |
#define D_INTERNAL_DEPRECATED (1 << D_B_INTERNAL_DEPRECATED) |
#define D_INTERNAL_INHERITED (1 << D_B_INTERNAL_INHERITED) |
#define D_INTERNAL_INITIAL_SET (1 << D_B_INTERNAL_INITIAL_SET) |
#define D_CUSTOM_BIT_0 (1 << D_B_CUSTOM_BIT_0) |
#define D_CUSTOM_BIT_1 (1 << D_B_CUSTOM_BIT_1) |
#define D_CUSTOM_BIT_2 (1 << D_B_CUSTOM_BIT_2) |
#define D_CUSTOM_BIT_3 (1 << D_B_CUSTOM_BIT_3) |
#define D_CUSTOM_BIT_4 (1 << D_B_CUSTOM_BIT_4) |
#define D_STRING_MAILBOX D_CUSTOM_BIT_0 |
#define D_STRING_COMMAND D_CUSTOM_BIT_1 |
#define D_INTEGER_NOT_NEGATIVE D_CUSTOM_BIT_0 |
#define D_PATH_DIR D_CUSTOM_BIT_0 |
#define D_PATH_FILE D_CUSTOM_BIT_1 |
#define D_REGEX_MATCH_CASE D_CUSTOM_BIT_0 |
#define D_REGEX_ALLOW_NOT D_CUSTOM_BIT_1 |
#define D_REGEX_NOSUB D_CUSTOM_BIT_2 |
#define D_SLIST_SEP_SPACE (0 << D_B_CUSTOM_BIT_0) |
#define D_SLIST_SEP_COMMA (1 << D_B_CUSTOM_BIT_0) |
#define D_SLIST_SEP_COLON (2 << D_B_CUSTOM_BIT_0) |
#define D_SLIST_SEP_MASK (D_CUSTOM_BIT_0 | D_CUSTOM_BIT_1) |
#define D_SLIST_ALLOW_DUPES D_CUSTOM_BIT_2 |
#define D_SLIST_ALLOW_EMPTY D_CUSTOM_BIT_3 |
#define D_SLIST_CASE_SENSITIVE D_CUSTOM_BIT_4 |
#define D_SORT_LAST D_CUSTOM_BIT_0 |
#define D_SORT_REVERSE D_CUSTOM_BIT_1 |
#define IS_MAILBOX | ( | flags | ) | ((DTYPE(flags) == DT_STRING) && (flags & D_STRING_MAILBOX)) |
#define IS_COMMAND | ( | flags | ) | ((DTYPE(flags) == DT_STRING) && (flags & D_STRING_COMMAND)) |
enum ConfigType |
Definition at line 29 of file types.h.
enum ConfigTypeField |
Enumerator | |
---|---|
D_B_ON_STARTUP | May only be set at startup. |
D_B_NOT_EMPTY | Empty strings are not allowed. |
D_B_SENSITIVE | Contains sensitive value, e.g. password. |
D_B_L10N_STRING | String can be localised. |
D_B_CHARSET_SINGLE | Flag for charset_validator to allow only one charset. |
D_B_CHARSET_STRICT | Flag for charset_validator to use strict char check. |
D_B_INTERNAL_FREE_CONFIGDEF | Config item must have its ConfigDef freed. |
D_B_INTERNAL_DEPRECATED | Config item shouldn't be used any more. |
D_B_INTERNAL_INHERITED | Config item is inherited. |
D_B_INTERNAL_INITIAL_SET | Config item must have its initial value freed. |
D_B_CUSTOM_BIT_0 | 1st flag available for customising config types |
D_B_CUSTOM_BIT_1 | 2nd flag available for customising config types |
D_B_CUSTOM_BIT_2 | 3rd flag available for customising config types |
D_B_CUSTOM_BIT_3 | 4th flag available for customising config types |
D_B_CUSTOM_BIT_4 | 5th flag available for customising config types |
D_B_CUSTOM_BIT_5 | 6th flag available for customising config types |
D_B_CUSTOM_BIT_6 | 7th flag available for customising config types |
D_B_CUSTOM_BIT_7 | 8th flag available for customising config types |
D_B_END |
Definition at line 52 of file types.h.