blob: 818e643af19d5e59b94e42c1623be925d36057d1 [file] [log] [blame]
Alan Greenb9d0c832020-04-30 08:29:50 +10001// Copyright 2020 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// A simplified interface to the ML service. Used to implement the ml_cmdline
6// tool.
7
8#ifndef ML_SIMPLE_H_
9#define ML_SIMPLE_H_
10
11#include <string>
12
13namespace ml {
14namespace simple {
15
16// Result of adding two numbers
17struct AddResult {
18 std::string status;
19 double sum;
20};
21
22// Add two numbers. Returns result and a status message.
23AddResult Add(double x, double y);
24
25} // namespace simple
26} // namespace ml
27
28#endif // ML_SIMPLE_H_