Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Functions
udtlib.h File Reference

Header file for UDT functions for SIP messages. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void vSip1UdtCallbacks (void *vpParserCtx)
 Set the UDT callback functions for the SIP2.bnf grammar to their respective parse tree nodes. More...
 
void u_Digit (callback_data *spData)
 
void u_Digit1 (callback_data *spData)
 
void u_DomainLabel (callback_data *spData)
 Evaluates the lower elements of a host name. More...
 
void e_MessageBody (callback_data *spData)
 Evaluates the message body. More...
 
void e_SWS (callback_data *spData)
 Optional linear white space. (See u_LWS.) More...
 
void u_CRLF (callback_data *spData)
 Evaluates the line end character sequence. More...
 
void u_LWS (callback_data *spData)
 Linear white space. White space with possible line breaks allowed. More...
 
void u_WSP (callback_data *spData)
 
void e_alphanum0 (callback_data *spData)
 
void u_alphanum1 (callback_data *spData)
 
void u_alphanum (callback_data *spData)
 
void u_ALPHA (callback_data *spData)
 
void u_paramchar1 (callback_data *spData)
 
void u_unreserved (callback_data *spData)
 

Detailed Description

Header file for UDT functions for SIP messages.

Definition in file udtlib.h.

Function Documentation

◆ e_alphanum0()

void e_alphanum0 ( callback_data spData)

◆ e_MessageBody()

void e_MessageBody ( callback_data spData)

Evaluates the message body.

Note that this function never fails and simply accepts the remainder of the input string, no matter what it is.

Parameters
spDatathe callback_data passed to the function by the parser
Returns
none

Definition at line 195 of file udtlib.c.

◆ e_SWS()

void e_SWS ( callback_data spData)

Optional linear white space. (See u_LWS.)

Parameters
spDatathe callback_data passed to the function by the parser
Returns
none

Definition at line 296 of file udtlib.c.

◆ u_ALPHA()

void u_ALPHA ( callback_data spData)

Definition at line 366 of file udtlib.c.

◆ u_alphanum()

void u_alphanum ( callback_data spData)

Definition at line 354 of file udtlib.c.

◆ u_alphanum1()

void u_alphanum1 ( callback_data spData)

◆ u_CRLF()

void u_CRLF ( callback_data spData)

Evaluates the line end character sequence.

CRLF = CR LF / LF / CR
The line end sequence has been modified from the original ABNF to be forgiving.

Parameters
spDatathe callback_data passed to the function by the parser
Returns
none

Definition at line 207 of file udtlib.c.

◆ u_Digit()

void u_Digit ( callback_data spData)

Definition at line 99 of file udtlib.c.

◆ u_Digit1()

void u_Digit1 ( callback_data spData)

Definition at line 111 of file udtlib.c.

◆ u_DomainLabel()

void u_DomainLabel ( callback_data spData)

Evaluates the lower elements of a host name.

hostname = *( domainlabel "." &(alphanum/"-")) toplabel [ "." ] domainlabel = 1*alphanum *(1*"-" 1*alphanum)

eg. my.example.com
"my" and "example" are domain labels

Parameters
spDatathe callback_data passed to the function by the parser
Returns
none

Definition at line 141 of file udtlib.c.

◆ u_LWS()

void u_LWS ( callback_data spData)

Linear white space. White space with possible line breaks allowed.

LWS = [*WSP u_CRLF] 1*WSP

Parameters
spDatathe callback_data passed to the function by the parser
Returns
none

Definition at line 238 of file udtlib.c.

◆ u_paramchar1()

void u_paramchar1 ( callback_data spData)

Definition at line 379 of file udtlib.c.

◆ u_unreserved()

void u_unreserved ( callback_data spData)

Definition at line 409 of file udtlib.c.

◆ u_WSP()

void u_WSP ( callback_data spData)

Definition at line 303 of file udtlib.c.

◆ vSip1UdtCallbacks()

void vSip1UdtCallbacks ( void *  vpParserCtx)

Set the UDT callback functions for the SIP2.bnf grammar to their respective parse tree nodes.

Parameters
vpParserCtx- the context of the parser
Returns
none

Definition at line 447 of file udtlib.c.

APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.