protobuf-c-text
Library to generate & parse text format protobufs in C.
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
Data Fields

Maintain state for the FSM. More...

Collaboration diagram for State:
Collaboration graph
[legend]

Data Fields

Scannerscanner
 Tracks state for the scanner. More...
 
const ProtobufCFieldDescriptor * field
 After finding a TOK_BAREWORD in a STATE_OPEN field is set to the field in the message that matches that bareword. More...
 
int current_msg
 Index on the message stack of the current message. More...
 
int max_msg
 Size of the message stack. More...
 
ProtobufCMessage ** msgs
 The message stack. More...
 
ProtobufCAllocator * allocator
 allocator functions. More...
 
int error
 Notes an error has occurred. More...
 
char * error_str
 Text of error. More...
 

Detailed Description

Maintain state for the FSM.

Tracks the current state of the FSM.

Definition at line 484 of file parse.re.

Field Documentation

ProtobufCAllocator* allocator

allocator functions.

Definition at line 495 of file parse.re.

Referenced by state_assignment(), state_init(), and state_value().

int current_msg

Index on the message stack of the current message.

Definition at line 490 of file parse.re.

Referenced by state_assignment(), state_open(), and state_value().

int error

Notes an error has occurred.

Definition at line 496 of file parse.re.

Referenced by protobuf_c_text_parse(), and state_free().

char* error_str

Text of error.

Definition at line 497 of file parse.re.

Referenced by protobuf_c_text_parse(), state_free(), and state_init().

const ProtobufCFieldDescriptor* field

After finding a TOK_BAREWORD in a STATE_OPEN field is set to the field in the message that matches that bareword.

Definition at line 486 of file parse.re.

Referenced by state_assignment(), state_open(), and state_value().

int max_msg

Size of the message stack.

Definition at line 492 of file parse.re.

Referenced by state_assignment(), and state_init().

ProtobufCMessage** msgs

The message stack.

As nested messages are found, they're put here.

Definition at line 493 of file parse.re.

Referenced by protobuf_c_text_parse(), state_assignment(), state_free(), state_init(), state_open(), and state_value().

Scanner* scanner

Tracks state for the scanner.

Definition at line 485 of file parse.re.

Referenced by state_init().


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