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

Unified Diff: mojo/services/files/public/interfaces/file.mojom

Issue 1055403002: Add an Ioctl() message to the File interface. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 9 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 | « examples/terminal/terminal_file_impl.dart ('k') | services/files/file_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/files/public/interfaces/file.mojom
diff --git a/mojo/services/files/public/interfaces/file.mojom b/mojo/services/files/public/interfaces/file.mojom
index da895581616e6fce8d7c88c10c7a116882464974..49438d5dfaedb499155e3ef2b79c8ce7f6bf06c6 100644
--- a/mojo/services/files/public/interfaces/file.mojom
+++ b/mojo/services/files/public/interfaces/file.mojom
@@ -80,6 +80,12 @@ interface File {
// relate to access mode?
AsBuffer() => (Error error, handle<shared_buffer>? buffer);
+ // Special-file-specific control function, for device "files". |in| and |out|
+ // are dependent on |request|.
+ // TODO(vtl): Make a master list of request values somewhere.
+ Ioctl(uint32 request, array<uint32>? in_values)
+ => (Error error, array<uint32>? out_values);
+
// TODO(vtl): Add a "watch"?
// TODO(vtl): Add something analogous to fsync(2)?
};
« no previous file with comments | « examples/terminal/terminal_file_impl.dart ('k') | services/files/file_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698