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

Unified Diff: mojo/public/go/system/system.go

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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/go/system/shared_buffer.go ('k') | mojo/public/go/system/system_android.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/go/system/system.go
diff --git a/mojo/public/go/system/system.go b/mojo/public/go/system/system.go
deleted file mode 100644
index c7b9999c5e484ab5374c8bf8ed2f8f72deae00b5..0000000000000000000000000000000000000000
--- a/mojo/public/go/system/system.go
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2015 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.
-
-package system
-
-// This interface wraps the "raw" mojo system entry points. This has no
-// dependencies on other types in this package so it can be implemented
-// by code that doesn't depend on this package.
-type MojoSystem interface {
- // Shared buffer
- CreateSharedBuffer(flags uint32, numBytes uint64) (result uint32, handle uint32)
- DuplicateBufferHandle(handle uint32, flags uint32) (result uint32, dupHandle uint32)
- GetBufferInformation(handle uint32) (result uint32, flags uint32, numBytes uint64)
- // After a successful MapBuffer call, the caller must pass the same slice value to UnmapBuffer to release
- // the underlying memory segment.
- MapBuffer(handle uint32, offset, numBytes uint64, flags uint32) (result uint32, buf []byte)
- UnmapBuffer(buf []byte) (result uint32)
-
- // Data pipe
- CreateDataPipe(flags, elementNumBytes, capacityNumBytes uint32) (result uint32, producerHandle, consumerHandle uint32)
- CreateDataPipeWithDefaultOptions() (result uint32, producerHandle, consumerHandle uint32)
- WriteData(producerHandle uint32, buf []byte, flags uint32) (result uint32, bytesWritten uint32)
- BeginWriteData(producerHandle uint32, flags uint32) (result uint32, buf []byte)
- EndWriteData(producerHandle uint32, numBytesWritten uint32) (result uint32)
-
- ReadData(consumerHandle, flags uint32) (result uint32, buf []byte)
- BeginReadData(consumerHandle uint32, flags uint32) (result uint32, buf []byte)
- EndReadData(consumerHandle uint32, numBytesRead uint32) (result uint32)
-
- // Time
- GetTimeTicksNow() (timestamp uint64)
-
- // Close a handle
- Close(handle uint32) (result uint32)
-
- // Waiting
- Wait(handle uint32, signals uint32, deadline uint64) (result uint32, satisfiedSignals, satisfiableSignals uint32)
- WaitMany(handles []uint32, signals []uint32, deadline uint64) (result uint32, index int, satisfiedSignals, satisfiableSignals []uint32)
-
- // Message pipe
- CreateMessagePipe(flags uint32) (result uint32, handle0, handle1 uint32)
- WriteMessage(handle uint32, bytes []byte, handles []uint32, flags uint32) (result uint32)
- ReadMessage(handle uint32, flags uint32) (result uint32, buf []byte, handles []uint32)
-}
-
-var sysImpl MojoSystem
« no previous file with comments | « mojo/public/go/system/shared_buffer.go ('k') | mojo/public/go/system/system_android.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698