forked from 85vmh/mindovercnclathe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c36efda
commit a21d218
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
backend/rpc/src/commonMain/kotlin/ro/dragossusi/ktcnc/rpc/FileSystemService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package ro.dragossusi.ktcnc.rpc | ||
|
||
import kotlinx.rpc.RPC | ||
import kotlinx.rpc.RemoteService | ||
import kotlinx.rpc.annotations.Rpc | ||
|
||
interface FileSystemService : RPC { | ||
@Rpc | ||
interface FileSystemService : RemoteService { | ||
suspend fun getRoot(): FileResponse | ||
|
||
suspend fun getFile(path: String): FileResponse | ||
|
||
suspend fun getFilesInPath(path: String): List<FileResponse> | ||
} | ||
} |