How rdkcentral/thunder works
Thunder is an embedded, plugin-based device abstraction framework: applications query and control plugin-provided functionality through interface-based APIs and RPC. The graph centers on that user workflow, with runtime management, service state/configuration, and RPC transports as distinct stages, plus messaging and platform extensions. Several implementation files are unsampled, so links to those subsystems are included only where the README or excerpts support them; dashed links indicate documented but unverified wiring.
Main entry points: Service.h Plugin service · Controller.cpp Controller API · IController.h Controller interfaces · JSONRPC.h JSON-RPC
Components 16
Plugin management
- Controller API
Source/Thunder/Controller.cpp - Plugin server
Source/Thunder/PluginServer.cpp
Plugin services
- Plugin interfaces
Source/plugins/IPlugin.h - Plugin service
Source/common/Service.h - Service configuration
Source/common/Configuration.h
RPC and transports
- Controller interfaces
Source/plugins/IController.h - JSON-RPC
Source/common/JSONRPC.h - WebSocket transport
Source/websocket/WebSocketLink.h
Runtime foundations
- COM-style runtime
Source/com/Administrator.cpp - Service registry
Source/core/Services.cpp - Message client
Source/messaging/MessageClient.cpp
Platform extensions
- Process containers
Source/addons/processcontainers/ContainerAdministrator.cpp - Container backends
Source/addons/processcontainers/implementations/CRunImplementation/CRunImplementation.cpp - Warning reporting
Source/addons/warningreporting/WarningReportingUnit.cpp - Cryptography
Source/cryptalgo/AESImplementation.cpp
Other components
- Client application
Connections 14
- Client application → Controller API: queries and controls
- Controller API → Plugin server: registers services
Source/Thunder/Controller.cpp - Client application → Controller interfaces: uses interfaces
- Controller interfaces → JSON-RPC: invokes via RPC
- JSON-RPC → WebSocket transport: uses web transport
- Plugin service → Service configuration: reads configuration
Source/common/Service.h - Plugin service → Plugin interfaces: implements plugin shell
Source/common/Service.h - Service registry → Plugin service: creates services
- COM-style runtime → Service registry: manages interfaces
- Message client → Client application: delivers messages
- Process containers → Container backends: selects backend
- Client application → Process containers: requests process isolation
- Client application → Warning reporting: uses warning reports
- Client application → Cryptography: uses secure capabilities