mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "Fix Alembic upgrades." into 13
This commit is contained in:
@@ -445,6 +445,28 @@ enum aco_option_type {
|
||||
* {endcode}
|
||||
*/
|
||||
OPT_UINT_T,
|
||||
|
||||
/*! \brief Type for default option handler for bools (ast_true/ast_false)
|
||||
* \note aco_option_register flags:
|
||||
* non-zero : process via ast_true
|
||||
* 0 : process via ast_false
|
||||
* aco_option_register varargs:
|
||||
* FLDSET macro with the field of type int. It is important to note that the field
|
||||
* cannot be a bitfield. If bitfields are required, they must be set via a custom handler.
|
||||
*
|
||||
* This is exactly the same as OPT_BOOL_T. The only difference is that when
|
||||
* translated to a string, OPT_BOOL_T becomes "true" or "false"; OPT_YESNO_T becomes
|
||||
* "yes" or "no".
|
||||
*
|
||||
* Example:
|
||||
* {code}
|
||||
* struct test_item {
|
||||
* int enabled;
|
||||
* };
|
||||
* aco_option_register(&cfg_info, "enabled", ACO_EXACT, my_types, "no", OPT_YESNO_T, 1, FLDSET(struct test_item, enabled));
|
||||
* {endcode}
|
||||
*/
|
||||
OPT_YESNO_T,
|
||||
};
|
||||
|
||||
/*! \brief A callback function for handling a particular option
|
||||
|
Reference in New Issue
Block a user