Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2076)

Unified Diff: mojo/public/c/bindings/map.h

Issue 2163793002: C bindings: Implement _Validate(), and some pre-requisites (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/c/bindings/lib/util.h ('k') | mojo/public/c/bindings/message.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/bindings/map.h
diff --git a/mojo/public/c/bindings/map.h b/mojo/public/c/bindings/map.h
index ec4d58315e80ad25f0e322cb9b8fa36cd5b3a2aa..6b08094d0a96be5c290f3a3e7771e4891af3273d 100644
--- a/mojo/public/c/bindings/map.h
+++ b/mojo/public/c/bindings/map.h
@@ -8,8 +8,10 @@
#include <stdint.h>
#include "mojo/public/c/bindings/array.h"
-#include "mojo/public/c/bindings/buffer.h"
+#include "mojo/public/c/bindings/lib/type_descriptor.h"
+#include "mojo/public/c/bindings/lib/util.h"
#include "mojo/public/c/bindings/struct.h"
+#include "mojo/public/c/system/handle.h"
#include "mojo/public/c/system/macros.h"
MOJO_BEGIN_EXTERN_C
@@ -32,6 +34,13 @@ union MojomMapHeaderPtr {
MOJO_STATIC_ASSERT(sizeof(union MojomMapHeaderPtr) == 8,
"MojomMapHeaderPtr must be 8 bytes.");
+MojomValidationResult MojomMap_Validate(
+ const struct MojomTypeDescriptorStruct* in_type_desc,
+ const struct MojomStructHeader* in_struct,
+ uint32_t in_buf_size,
+ uint32_t in_num_handles,
+ struct MojomValidationContext* inout_context);
+
MOJO_END_EXTERN_C
#endif // MOJO_PUBLIC_C_BINDINGS_MAP_H_
« no previous file with comments | « mojo/public/c/bindings/lib/util.h ('k') | mojo/public/c/bindings/message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698