Mojo: Add mojo/public/c/DEPS and remove some no-longer-needed ifdefs.

R=darin@chromium.org

Review URL: https://codereview.chromium.org/216983002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260139 0039d316-1c4b-4281-b951-d872f2087c98
parent f0891b43
include_rules = [
"-mojo/public",
"+mojo/public/c",
]
...@@ -236,11 +236,8 @@ struct MojoCreateDataPipeOptions { ...@@ -236,11 +236,8 @@ struct MojoCreateDataPipeOptions {
uint32_t element_num_bytes; uint32_t element_num_bytes;
uint32_t capacity_num_bytes; uint32_t capacity_num_bytes;
}; };
// TODO(vtl): Can we make this assertion work in C?
#ifdef __cplusplus
MOJO_COMPILE_ASSERT(sizeof(MojoCreateDataPipeOptions) == 16, MOJO_COMPILE_ASSERT(sizeof(MojoCreateDataPipeOptions) == 16,
MojoCreateDataPipeOptions_has_wrong_size); MojoCreateDataPipeOptions_has_wrong_size);
#endif
// |MojoWriteDataFlags|: Used to specify different modes to |MojoWriteData()| // |MojoWriteDataFlags|: Used to specify different modes to |MojoWriteData()|
// and |MojoBeginWriteData()|. // and |MojoBeginWriteData()|.
...@@ -312,11 +309,8 @@ struct MojoCreateSharedBufferOptions { ...@@ -312,11 +309,8 @@ struct MojoCreateSharedBufferOptions {
uint32_t struct_size; uint32_t struct_size;
MojoCreateSharedBufferOptionsFlags flags; MojoCreateSharedBufferOptionsFlags flags;
}; };
// TODO(vtl): Can we make this assertion work in C?
#ifdef __cplusplus
MOJO_COMPILE_ASSERT(sizeof(MojoCreateSharedBufferOptions) == 8, MOJO_COMPILE_ASSERT(sizeof(MojoCreateSharedBufferOptions) == 8,
MojoCreateSharedBufferOptions_has_wrong_size); MojoCreateSharedBufferOptions_has_wrong_size);
#endif
// |MojoDuplicateBufferHandleOptions|: Used to specify parameters in duplicating // |MojoDuplicateBufferHandleOptions|: Used to specify parameters in duplicating
// access to a shared buffer to |MojoDuplicateBufferHandle()|. // access to a shared buffer to |MojoDuplicateBufferHandle()|.
...@@ -343,11 +337,8 @@ struct MojoDuplicateBufferHandleOptions { ...@@ -343,11 +337,8 @@ struct MojoDuplicateBufferHandleOptions {
uint32_t struct_size; uint32_t struct_size;
MojoDuplicateBufferHandleOptionsFlags flags; MojoDuplicateBufferHandleOptionsFlags flags;
}; };
// TODO(vtl): Can we make this assertion work in C?
#ifdef __cplusplus
MOJO_COMPILE_ASSERT(sizeof(MojoDuplicateBufferHandleOptions) == 8, MOJO_COMPILE_ASSERT(sizeof(MojoDuplicateBufferHandleOptions) == 8,
MojoDuplicateBufferHandleOptions_has_wrong_size); MojoDuplicateBufferHandleOptions_has_wrong_size);
#endif
// |MojoMapBufferFlags|: Used to specify different modes to |MojoMapBuffer()|. // |MojoMapBufferFlags|: Used to specify different modes to |MojoMapBuffer()|.
// |MOJO_MAP_BUFFER_FLAG_NONE| - No flags; default mode. // |MOJO_MAP_BUFFER_FLAG_NONE| - No flags; default mode.
......
include_rules = [ include_rules = [
"+testing", "+testing",
# Our test harness is C++, so allow use C++:
"+mojo/public/cpp",
# TODO(vtl): Temporary until these are moved to mojo/public/cpp:
"+mojo/public/tests",
"+mojo/public/utility",
] ]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment