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
798 B
32 lines
798 B
/* |
|
* upb - a minimalist implementation of protocol buffers. |
|
* |
|
* Copyright (c) 2009 Google Inc. See LICENSE for details. |
|
* Author: Josh Haberman <jhaberman@gmail.com> |
|
*/ |
|
|
|
#ifndef UPB_TEXT_H_ |
|
#define UPB_TEXT_H_ |
|
|
|
#include "upb/bytestream.h" |
|
#include "upb/handlers.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); |
|
const upb_handlers *upb_textprinter_newhandlers(const void *owner, |
|
const upb_msgdef *m); |
|
|
|
#ifdef __cplusplus |
|
} /* extern "C" */ |
|
#endif |
|
|
|
#endif /* UPB_TEXT_H_ */
|
|
|