DPM-Core/modules/info
Chris Punches df041574ae updated cmake files for standalone module builds and whole project builds 2025-03-08 22:31:39 -05:00
..
include continued restructure for dpmdk and updated default behaviour 2025-03-08 17:44:23 -05:00
src directory restructure and documentation cleanup 2025-03-08 04:56:07 -05:00
CMakeLists.txt updated cmake files for standalone module builds and whole project builds 2025-03-08 22:31:39 -05:00
README.md breaking away module development to use only dpmdk 2025-03-08 22:05:13 -05:00
info.cpp continued restructure for dpmdk and updated default behaviour 2025-03-08 17:44:23 -05:00

README.md

DPM Module Development

Modules for the Dark Horse Package Manager (DPM) can be developed independently of the core system. The info module in this repository provides a reference implementation.

Required Dependencies

Modules must include the DPMDK headers:

#include <dpmdk/include/CommonModuleAPI.hpp>

Required Functions

Every module must implement these three functions:

extern "C" const char* dpm_module_get_version(void);
extern "C" const char* dpm_get_description(void);
extern "C" int dpm_module_execute(const char* command, int argc, char** argv);

See modules/info/info.cpp for a working implementation.

Building

See the standalone CMakeLists.txt in the modules/info directory as a reference for building independent modules.

Configuration

Standard configuration location: /etc/dpm/conf.d/