/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2026 [PLEASE ADD COPYRIGHT NAME!]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include "InProcess.h"
#include <interfaces/json/JMath.h>

namespace Thunder {
namespace Plugin {

    namespace {

        static Metadata<InProcess> metadata(
        // Version
        1, 0, 0,
        // Preconditions
        {},
        // Terminations
        {},
        // Controls
        {}
        );
    }

    const string InProcess::Initialize(VARIABLE_IS_NOT_USED PluginHost::IShell* service) {
        string message;

        ASSERT(service != nullptr);
        Exchange::JMath::Register(*this, this);
        return (message);
    }

    void InProcess::Deinitialize(VARIABLE_IS_NOT_USED PluginHost::IShell* service) {
        Exchange::JMath::Unregister(*this);
    }

    string InProcess::Information() const {
        return (string());
    }

    uint32_t InProcess::Add(const uint16_t /* A */, const uint16_t /* B */, uint16_t& /* sum */ /* @out */) const {
        return Core::ERROR_NONE;
    }
    uint32_t InProcess::Sub(const uint16_t /* A */, const uint16_t /* B */, uint16_t& /* sum */ /* @out */) const {
        return Core::ERROR_NONE;
    }

} // Plugin
} // Thunder