Bring library to a base working state.

This commit is contained in:
Alejandro Cabeza Romero 2025-12-19 17:31:26 +01:00
parent 8a19f7cf43
commit 256ddb9f3f
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
3 changed files with 14 additions and 11 deletions

3
.gitignore vendored
View File

@ -11,3 +11,6 @@ cmake-build-debug
# Artifacts
liblogos-blockchain-module.so
liblogos-blockchain-module.log
# Node
nomos_db/

View File

@ -2,10 +2,17 @@
#include <QtCore/QDebug>
#ifdef __cplusplus
extern "C" {
#endif
#include <libnomos.h>
#ifdef __cplusplus
}
#endif
class LogosBlockchainModule : public LogosBlockchainModuleAPI {
Q_OBJECT
Q_PLUGIN_METADATA(IID LogosBlockchainModuleInterface_iid FILE "metadata.json")
Q_INTERFACES(PluginInterface)
private:
NomosNode* node = nullptr;

View File

@ -3,16 +3,9 @@
#include <core/interface.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <libnomos.h>
#ifdef __cplusplus
}
#endif
class LogosBlockchainModuleAPI : public QObject, public PluginInterface {
Q_OBJECT
Q_INTERFACES(PluginInterface)
public:
using QObject::QObject;