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

An operator that we understand in an expression. More...

Data Fields

int(*const evaluate )(struct operator*op, enum aco_option_type type, void *op_left, struct expression_token *op_right)
 Evaluation function for binary operators. More...
 
int(*const evaluate_unary )(struct operator*op, enum aco_option_type type, void *operand)
 Evaluation function for unary operators. More...
 
int operands
 Number of operands the operator takes.
 
int precedence
 Precedence of the symbol.
 
int right_to_left
 Non-zero if the operator is evaluated right-to-left.
 
const char * symbol
 Our operator's symbol.
 

Detailed Description

An operator that we understand in an expression.

Definition at line 82 of file res_pjsip_history.c.

Field Documentation

int(* const evaluate) (struct operator*op, enum aco_option_type type, void *op_left, struct expression_token *op_right)

Evaluation function for binary operators.

Parameters
opThe operator being evaluated
typeThe type of value contained in op_left
op_leftA pointer to the value to evaluate (a result or extracted from an entry)
op_rightThe expression token containing the other value (a result or user-provided)
Return values
-1error
0evaluation is False
1evaluation is True

Definition at line 115 of file res_pjsip_history.c.

Referenced by evaluate_history_entry().

int(* const evaluate_unary) (struct operator*op, enum aco_option_type type, void *operand)

Evaluation function for unary operators.

Parameters
opThe operator being evaluated
typeThe type of value contained in operand
operandA pointer to the value to evaluate
Return values
-1error
0evaluation is False
1evaluation is True

Definition at line 102 of file res_pjsip_history.c.

Referenced by evaluate_history_entry().


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