Added RPC declarations to the schema parser.

This is the first step in RPC support. Actual code generation
to follow.

Change-Id: I96c40fec3db671d100dd9eb509a71c5cbe55bfb2
Tested: on Linux.
Bug: 20122696
This commit is contained in:
Wouter van Oortmerssen
2016-03-07 18:07:10 -08:00
parent fbc8af40e3
commit 1a63eb46bb
4 changed files with 77 additions and 1 deletions

View File

@@ -225,6 +225,20 @@ This declaration in the schema will change that to whatever you want:
file_extension "ext";
### RPC interface declarations
You can declare RPC calls in a schema, that define a set of functions
that take a FlatBuffer as an argument (the request) and return a FlatBuffer
as the response (both of which must be table types):
rpc_service MonsterStorage {
Store(Monster):StoreResponse;
Retrieve(MonsterId):Monster;
}
What code this produces and how it is used depends on language and RPC system
used, FlatBuffers itself does not offer this functionality.
### Comments & documentation
May be written as in most C-based languages. Additionally, a triple