Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
aco_type Struct Reference

Type information about a category-level configurable object. More...

#include <config_options.h>

Collaboration diagram for aco_type:
Collaboration graph
[legend]

Data Fields

const char * category
 
enum aco_category_op category_match
 
unsigned int hidden
 
struct aco_type_internalinternal
 
aco_type_item_alloc item_alloc
 
aco_type_item_find item_find
 
size_t item_offset
 
aco_type_item_pre_process item_pre_process
 
aco_type_prelink item_prelink
 
const char * matchfield
 
aco_matchvalue_func matchfunc
 
const char * matchvalue
 
const char * name
 
enum aco_type_t type
 

Detailed Description

Type information about a category-level configurable object.

Definition at line 121 of file config_options.h.

Field Documentation

◆ category

const char* category

A regular expression for matching categories to be allowed or denied

Definition at line 125 of file config_options.h.

Referenced by aco_info_init(), aco_process_config(), internal_aco_type_category_check(), and internal_type_init().

◆ category_match

enum aco_category_op category_match

Whether the following category regex is a whitelist or blacklist

Definition at line 129 of file config_options.h.

Referenced by aco_info_init(), internal_aco_type_category_check(), and internal_type_init().

◆ hidden

unsigned int hidden

Type is for internal purposes only and it and all options should not be visible to users

Definition at line 131 of file config_options.h.

Referenced by aco_info_init().

◆ internal

struct aco_type_internal* internal

◆ item_alloc

aco_type_item_alloc item_alloc

An allocation function for item associated with this type

Definition at line 134 of file config_options.h.

Referenced by process_category(), and sorcery_object_load().

◆ item_find

aco_type_item_find item_find

A callback function to find an existing item in a particular container

Definition at line 135 of file config_options.h.

Referenced by process_category().

◆ item_offset

size_t item_offset

The offset in the config snapshot for the global config or item config container

Definition at line 130 of file config_options.h.

Referenced by aco_process_config(), and process_category().

◆ item_pre_process

aco_type_item_pre_process item_pre_process

An optional callback function that is called after defaults are applied, but before config processing

Definition at line 136 of file config_options.h.

Referenced by process_category().

◆ item_prelink

aco_type_prelink item_prelink

An optional callback function that is called after config processing, but before applying changes

Definition at line 137 of file config_options.h.

Referenced by process_category().

◆ matchfield

const char* matchfield

An option name to match for this type (i.e. a 'type'-like column)

Definition at line 126 of file config_options.h.

Referenced by aco_info_init(), and internal_aco_type_find().

◆ matchfunc

A function for determing whether the option value matches (i.e. hassip= requires ast_true())

Definition at line 128 of file config_options.h.

Referenced by internal_aco_type_find().

◆ matchvalue

const char* matchvalue

The value of the option to require for matching (i.e. 'peer' for type= in sip.conf)

Definition at line 127 of file config_options.h.

Referenced by aco_info_init(), and internal_aco_type_find().

◆ name

const char* name

The name of this type (must match XML documentation)

Definition at line 124 of file config_options.h.

Referenced by aco_info_init(), aco_process_var(), PathSegment::get_child(), link_option_to_types(), Parameter::load(), SwaggerType::load(), Property::load(), and notify_option_handler().

◆ type

enum aco_type_t type

Whether this is a global or item type

Definition at line 123 of file config_options.h.

Referenced by aco_info_init(), aco_process_config(), ast_sorcery_object_unregister(), Property::load(), and process_category().


The documentation for this struct was generated from the following file: