forked from LlsDimple/fidl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversioning_test_client.fidl
34 lines (26 loc) · 991 Bytes
/
versioning_test_client.fidl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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.
module fidl.test.versioning;
// versioning_test_service.fidl and versioning_test_client.fidlm contain
// different versions of Mojom definitions for a fictitious human resource
// management system. They are used to test the versioning mechanism.
enum Department {
SALES,
DEV,
};
struct Employee {
uint64 employee_id;
string name;
Department department;
};
[ServiceName="fidl::test::versioning::HumanResourceDatabase"]
interface HumanResourceDatabase {
AddEmployee(Employee employee) => (bool success);
QueryEmployee(uint64 id, [MinVersion=1] bool retrieve_finger_print)
=> (Employee? employee, [MinVersion=1] array<uint8>? finger_print);
[MinVersion=1]
AttachFingerPrint(uint64 id, array<uint8> finger_print) => (bool success);
[MinVersion=2]
ListEmployeeIds() => (array<uint64>? ids);
};