mirror of
https://github.com/logos-co/logos-protocol.git
synced 2026-08-27 12:01:15 +00:00
* Extract the Logos protocol layer from logos-cpp-sdk
Transports (plain TCP/TLS, qt_local, qt_remote/QRO, mock), token manager,
consumer core (LogosAPIClient/LogosAPIConsumer incl. the capability
auto-requestModule flow), ModuleProxy, the abstract LogosProviderObject
interface, and the canonical QVariant<->JSON conversion — now behind the
language-neutral lp_* C ABI (logos_protocol.h) carrying the protocol
semver (LOGOS_PROTOCOL_VERSION_*, lp_protocol_version()).
Bytes crossing the ABI use the lossless {"_bytes": base64url} tagging
(NUL-safe), matching the plain wire encoding.
Provider lp_* surface is compiled groundwork; serving lands with module
authoring.
* consumer: typed requestModule for the capability flow
Port of logos-cpp-sdk master f5a127dd ('use updated capability module',
cpp-sdk#85, Iuri Matias) — the touched files (logos_api_client.cpp,
logos_api_consumer.{h,cpp}) moved into this repo in the P1 extraction.
The capability auto-requestModule path now calls a typed std::string
helper on the consumer (which acquires the capability object directly)
instead of a stringly invokeRemoteMethod round-trip. 111/111 tests.
28 lines
764 B
C++
28 lines
764 B
C++
#ifndef LOGOS_REGISTRY_FACTORY_H
|
|
#define LOGOS_REGISTRY_FACTORY_H
|
|
|
|
#include <memory>
|
|
#include <QString>
|
|
|
|
class LogosRegistry;
|
|
|
|
namespace LogosRegistryFactory {
|
|
|
|
/**
|
|
* @brief Create a registry appropriate for the current LogosMode.
|
|
*
|
|
* In Remote mode a QtRemoteRegistry is created, binding a
|
|
* QRemoteObjectRegistryHost to the given @p url.
|
|
*
|
|
* In Local (in-process) mode a NullRegistry is created — no IPC
|
|
* endpoint is needed because all modules share the same process.
|
|
*
|
|
* @param url The address to bind the registry to (ignored in Local mode).
|
|
* @return Owning pointer to the new registry.
|
|
*/
|
|
std::unique_ptr<LogosRegistry> create(const QString& url);
|
|
|
|
}
|
|
|
|
#endif // LOGOS_REGISTRY_FACTORY_H
|