feat():initial version
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// Copyright (C) 2014-2026 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <cstdint>
|
||||
|
||||
#include <vsomeip/export.hpp>
|
||||
|
||||
// Version should be incremented on breaking API change
|
||||
#define VSOMEIP_APPLICATION_PLUGIN_VERSION 1
|
||||
|
||||
namespace vsomeip_v3 {
|
||||
|
||||
enum class application_plugin_state_e : uint8_t { STATE_INITIALIZED, STATE_STARTED, STATE_STOPPED };
|
||||
|
||||
/**
|
||||
* The application plug-in can be used to extend application behavior
|
||||
* via an module/plug-in.
|
||||
*/
|
||||
class application_plugin {
|
||||
public:
|
||||
virtual ~application_plugin() { }
|
||||
|
||||
// Called by vSomeIP to inform an application plug-in about its actual state
|
||||
// Call should not be blocked from plug-in as there is no threading.
|
||||
// The caller thread of "application::init/::start/::stop" will inform the plug-in.
|
||||
virtual void on_application_state_change(const std::string _application_name, const application_plugin_state_e _app_state) = 0;
|
||||
};
|
||||
|
||||
} // namespace vsomeip_v3
|
||||
@@ -0,0 +1,27 @@
|
||||
// Copyright (C) 2014-2026 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vsomeip/export.hpp>
|
||||
|
||||
// Version should be incremented on breaking API change
|
||||
#define VSOMEIP_PRE_CONFIGURATION_PLUGIN_VERSION 1
|
||||
|
||||
namespace vsomeip_v3 {
|
||||
/**
|
||||
* The pre configuration plug-in can be used to extend configuration load behavior
|
||||
* via an module/plug-in.
|
||||
*/
|
||||
class pre_configuration_plugin {
|
||||
public:
|
||||
virtual ~pre_configuration_plugin() { }
|
||||
|
||||
// Plug-In should return a valid path to a vSomeIP configuration.
|
||||
// vSomeIP will use this path for config loading if such a plug-in is availablel.
|
||||
virtual std::string get_configuration_path() = 0;
|
||||
};
|
||||
|
||||
} // namespace vsomeip_v3
|
||||
Reference in New Issue
Block a user