CCF/include/ccf/js_plugin.h

17 строки
335 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#pragma once
#include <functional>
#include <quickjs/quickjs.h>
#include <string>
namespace ccf::js
{
struct FFIPlugin
{
std::string name;
std::string ccf_version;
std::function<void(JSContext* ctx)> extend;
};
}