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

Structure for reporting API errors. More...

Data Fields

int * error
 Error code. More...
 
char * error_txt
 String with error message. More...
 
int complete
 Reports whether the message is complete (if supported): More...
 

Detailed Description

Structure for reporting API errors.

Provides feedback on the success of an API call. Generally if an API call fails it will return NULL. More detail on why it failed can be found in the parameter with this type.

Definition at line 122 of file protobuf-c-text.h.

Field Documentation

int complete

Reports whether the message is complete (if supported):

  • -1: Required field check wasn't performed - this happens if your libprotobuf-c is too old.
  • 0: The message was incomplete.
  • >0: Message has all required fields set.

Definition at line 125 of file protobuf-c-text.h.

Referenced by protobuf_c_text_parse().

int* error

Error code.

0 for success, >0 for failure.

Definition at line 123 of file protobuf-c-text.h.

char* error_txt

String with error message.

Definition at line 124 of file protobuf-c-text.h.

Referenced by protobuf_c_text_parse().


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