1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2023 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #ifndef UPB_JSON_DECODE_H_ 9 #define UPB_JSON_DECODE_H_ 10 11 #include "upb/reflection/def.h" 12 13 // Must be last. 14 #include "upb/port/def.inc" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 enum { upb_JsonDecode_IgnoreUnknown = 1 }; 21 22 UPB_API bool upb_JsonDecode(const char* buf, size_t size, upb_Message* msg, 23 const upb_MessageDef* m, const upb_DefPool* symtab, 24 int options, upb_Arena* arena, upb_Status* status); 25 26 #ifdef __cplusplus 27 } /* extern "C" */ 28 #endif 29 30 #include "upb/port/undef.inc" 31 32 #endif /* UPB_JSONDECODE_H_ */ 33