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.
31 lines
642 B
31 lines
642 B
15 years ago
|
/*
|
||
|
* upb - a minimalist implementation of protocol buffers.
|
||
|
*
|
||
|
* Copyright (c) 2009 Joshua Haberman. See LICENSE for details.
|
||
|
*/
|
||
|
|
||
|
#ifndef UPB_TEXT_H_
|
||
|
#define UPB_TEXT_H_
|
||
|
|
||
|
#include "upb_stream.h"
|
||
|
|
||
|
#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);
|
||
|
void upb_textprinter_reset(upb_textprinter *p, upb_bytesink *sink,
|
||
|
bool single_line);
|
||
|
|
||
|
upb_sink *upb_textprinter_sink(upb_textprinter *p);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern "C" */
|
||
|
#endif
|
||
|
|
||
|
#endif /* UPB_TEXT_H_ */
|