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

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

#include <config_options.h>

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.

Examples:
app_skel.c.

Definition at line 121 of file config_options.h.

Field Documentation

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(), and aco_process_config().

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().

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().

aco_type_item_alloc item_alloc

An allocation function for item associated with this type

Examples:
app_skel.c.

Definition at line 134 of file config_options.h.

aco_type_item_find item_find

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

Examples:
app_skel.c.

Definition at line 135 of file config_options.h.

size_t item_offset

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

Examples:
app_skel.c.

Definition at line 130 of file config_options.h.

Referenced by aco_process_config().

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.

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.

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().

A function for determining whether the option value matches

Definition at line 128 of file config_options.h.

const char* matchvalue

The value of the option to require for matching (i.e. 'peer')

Definition at line 127 of file config_options.h.

Referenced by aco_info_init().

const char* name

The name of this type (must match XML documentation)

Definition at line 124 of file config_options.h.

Referenced by PathSegment::__init__(), aco_info_init(), aco_process_var(), and PathSegment::get_child().

enum aco_type_t type

Whether this is a global or item type

Examples:
app_skel.c.

Definition at line 123 of file config_options.h.

Referenced by aco_info_init(), aco_process_config(), and ast_sorcery_object_unregister().


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