diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-03-06 12:17:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 12:17:34 -0800 |
commit | ed9faae0993704b033c594b072d65e1bf19207fa (patch) | |
tree | df2777687abddf1335427d06942ba3436edf8c0b /upb/msgfactory.h | |
parent | 51f30e064b8e88af8e7d429c5a54c25f28c68b02 (diff) | |
parent | 71ec01e34b03557cfed9df5f417791a189e7fca6 (diff) |
Merge pull request #141 from haberman/defcleanup
Major refactoring/cleanup of upb
Diffstat (limited to 'upb/msgfactory.h')
-rw-r--r-- | upb/msgfactory.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/upb/msgfactory.h b/upb/msgfactory.h index 8b12461..9b3b599 100644 --- a/upb/msgfactory.h +++ b/upb/msgfactory.h @@ -5,15 +5,14 @@ #ifndef UPB_MSGFACTORY_H_ #define UPB_MSGFACTORY_H_ -#ifdef __cplusplus -namespace upb { -class MessageFactory; -} -#endif +/** upb_msgfactory ************************************************************/ -UPB_DECLARE_TYPE(upb::MessageFactory, upb_msgfactory) +struct upb_msgfactory; +typedef struct upb_msgfactory upb_msgfactory; -/** upb_msgfactory ************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif /* A upb_msgfactory contains a cache of upb_msglayout, upb_handlers, and * upb_visitorplan objects. These are the objects necessary to represent, @@ -42,5 +41,8 @@ const upb_symtab *upb_msgfactory_symtab(const upb_msgfactory *f); const upb_msglayout *upb_msgfactory_getlayout(upb_msgfactory *f, const upb_msgdef *m); +#ifdef __cplusplus +} /* extern "C" */ +#endif #endif /* UPB_MSGFACTORY_H_ */ |