summaryrefslogtreecommitdiff
path: root/src/msg.fbs
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2018-09-11 09:00:57 -0700
committerRyan Dahl <ry@tinyclouds.org>2018-09-11 12:00:57 -0400
commit05f87a0cf23a370c0009db8343b3770b518799c8 (patch)
treeb2279e3257382ea1c1ec8c259e9fecdac9e78820 /src/msg.fbs
parentc2663e1d82521e9b68a7e2e96197030a4ee00c30 (diff)
Move writeFileSync to write_file.ts, add writeFile and tests (#728)
Diffstat (limited to 'src/msg.fbs')
-rw-r--r--src/msg.fbs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/msg.fbs b/src/msg.fbs
index 33278a669..fcc863625 100644
--- a/src/msg.fbs
+++ b/src/msg.fbs
@@ -17,11 +17,11 @@ union Any {
Mkdir,
ReadFile,
ReadFileRes,
+ WriteFile,
RenameSync,
StatSync,
StatSyncRes,
SetEnv,
- WriteFileSync,
}
enum ErrorKind: byte {
@@ -181,6 +181,13 @@ table ReadFileRes {
data: [ubyte];
}
+table WriteFile {
+ filename: string;
+ data: [ubyte];
+ perm: uint;
+ // perm specified by https://godoc.org/os#FileMode
+}
+
table RenameSync {
oldpath: string;
newpath: string;
@@ -200,11 +207,4 @@ table StatSyncRes {
created:ulong;
}
-table WriteFileSync {
- filename: string;
- data: [ubyte];
- perm: uint;
- // perm specified by https://godoc.org/os#FileMode
-}
-
root_type Base;