Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
737 B
32 lines
737 B
15 years ago
|
/*
|
||
|
* upb - a minimalist implementation of protocol buffers.
|
||
|
*
|
||
14 years ago
|
* Copyright (c) 2009 Google Inc. See LICENSE for details.
|
||
|
* Author: Josh Haberman <jhaberman@gmail.com>
|
||
15 years ago
|
*/
|
||
|
|
||
|
#ifndef UPB_TEXT_H_
|
||
|
#define UPB_TEXT_H_
|
||
|
|
||
14 years ago
|
#include "upb/bytestream.h"
|
||
|
#include "upb/handlers.h"
|
||
15 years ago
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
struct _upb_textprinter;
|
||
|
typedef struct _upb_textprinter upb_textprinter;
|
||
|
|
||
|
upb_textprinter *upb_textprinter_new();
|
||
|
void upb_textprinter_free(upb_textprinter *p);
|
||
14 years ago
|
void upb_textprinter_reset(upb_textprinter *p, upb_bytesink *sink,
|
||
|
bool single_line);
|
||
14 years ago
|
upb_mhandlers *upb_textprinter_reghandlers(upb_handlers *h, upb_msgdef *m);
|
||
15 years ago
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern "C" */
|
||
|
#endif
|
||
|
|
||
|
#endif /* UPB_TEXT_H_ */
|