git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@248 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
lahiker42 2010-09-03 20:38:57 +00:00
parent 56f2af6435
commit 6c49e55c61

View 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);