mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-29 07:19:42 +08:00
..
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@248 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
parent
56f2af6435
commit
6c49e55c61
33
src/google/protobuf-c/protobuf-c-parser.h
Normal file
33
src/google/protobuf-c/protobuf-c-parser.h
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
|
||||||
|
typedef struct _ProtobufC_ParseResult ProtobufC_ParseResult;
|
||||||
|
struct _ProtobufC_ParseResult
|
||||||
|
{
|
||||||
|
...
|
||||||
|
};
|
||||||
|
|
||||||
|
struct _ProtobufC_ParserPackage
|
||||||
|
{
|
||||||
|
char *name;
|
||||||
|
unsigned n_messages;
|
||||||
|
ProtobufCMessageDescriptor *message_descriptors;
|
||||||
|
};
|
||||||
|
|
||||||
|
ProtobufC_Parser *protobuf_c_parser_new (void);
|
||||||
|
|
||||||
|
/* If non-NULL, return-value should be freed with default allocator */
|
||||||
|
typedef char *(*ProtobufC_ImportHandlerFunc) (const char *package_name,
|
||||||
|
void *func_data);
|
||||||
|
|
||||||
|
void protobuf_c_parser_set_import_handler (ProtobufC_Parser *parser,
|
||||||
|
ProtobufC_ImportHandlerFunc func,
|
||||||
|
void *func_data);
|
||||||
|
|
||||||
|
ProtobufC_ParserPackage *
|
||||||
|
protobuf_c_parser_parse_file(ProtobufC_Parser *parser,
|
||||||
|
const char *filename,
|
||||||
|
ProtobufC_ParseResult *error);
|
||||||
|
ProtobufC_ParserPackage *
|
||||||
|
protobuf_c_parser_import (ProtobufC_Parser *parser,
|
||||||
|
const char *package_name,
|
||||||
|
ProtobufC_ParseResult *error);
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user