diff options
Diffstat (limited to 'mojo/system/platform_channel_handle.h')
-rw-r--r-- | mojo/system/platform_channel_handle.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mojo/system/platform_channel_handle.h b/mojo/system/platform_channel_handle.h new file mode 100644 index 0000000..b848aef --- /dev/null +++ b/mojo/system/platform_channel_handle.h @@ -0,0 +1,26 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef MOJO_SYSTEM_PLATFORM_CHANNEL_HANDLE_H_ +#define MOJO_SYSTEM_PLATFORM_CHANNEL_HANDLE_H_ + +#include "build/build_config.h" + +namespace mojo { +namespace system { + +#if defined(OS_POSIX) +struct PlatformChannelHandle { + explicit PlatformChannelHandle(int fd) : fd(fd) {} + + int fd; +}; +#else +#error "Platform not yet supported." +#endif + +} // namespace system +} // namespace mojo + +#endif // MOJO_SYSTEM_PLATFORM_CHANNEL_HANDLE_H_ |