blob: 39f3fb861d4915f5c974627f94c827c7ddd87fde [file] [log] [blame]
Patrick Ventureaf696252018-12-11 10:22:14 -08001#pragma once
2
3#include <cstdint>
4#include <string>
5
6class DataInterface
7{
8 public:
9 virtual ~DataInterface() = default;
10
11 /**
12 * Given an open session to either /flash/image, /flash/tarball, or
13 * /flash/hash, this method will configure, and send the data, but not close
14 * the session.
15 *
16 * @param[in] input - path to file to send.
17 * @param[in] session - the session ID to use.
18 * @return bool on success.
19 */
20 virtual bool sendContents(const std::string& input,
21 std::uint16_t session) = 0;
22};