blob: 807aeeb66f85d1f46812d5574d51d122b4c39e91 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/lib/fidl_codec/builtin_semantic.h"
#include <string>
namespace fidl_codec {
namespace semantic {
std::string builtin_semantic_fuchsia_io =
"library fuchsia.io {\n"
" Node::Clone {\n"
" request.object = handle : 'cloned';\n"
" }\n"
" Directory::Open {\n"
" request.object = handle / request.path;\n"
" input_field: request.path;\n"
" result: request.object;\n"
" }\n"
" File::Seek {\n"
" input_field: request.start;\n"
" input_field: request.offset;\n"
" }\n"
" File::Write {\n"
" input_field: request.data.size ' bytes';\n"
" }\n"
"}\n";
std::string builtin_semantic_fuchsia_sys =
"library fuchsia.sys {\n"
" Launcher::CreateComponent {\n"
" request.launch_info.directory_request =\n"
" HandleDescription('server', request.launch_info.url);\n"
" request.controller = HandleDescription('server-control', request.launch_info.url);\n"
" }\n"
"}\n";
} // namespace semantic
} // namespace fidl_codec