Indent every scope and put opening braces on the signature line

Namespace and extern "C" bodies are indented a level, so nesting is
visible from the indentation rather than only from the braces. Opening
braces stay on the line that opens the scope, including function
definitions, which previously carried theirs on a line of their own.
This commit is contained in:
2026-08-15 23:47:43 -04:00
parent 9fd7d2f433
commit 12a4f68025
13 changed files with 634 additions and 709 deletions

View File

@@ -65,20 +65,18 @@ struct dpm_cursor {
void dpm_internal_unload(void* handle);
namespace dpm_core {
/**
* @brief Runs the full load-time validation sequence against a module
*
* Loads the named module's .so from the context's module path and
* verifies the complete contract.
*
* @param ctx The libdpm-core context
* @param name The module name
* @param reason Receives the refusal reason on failure
* @return The validated module (caller owns), or nullptr on failure
*/
std::unique_ptr<dpm_module> validate_and_load(dpm_ctx* ctx,
const std::string& name,
std::string& reason);
/**
* @brief Runs the full load-time validation sequence against a module
*
* Loads the named module's .so from the context's module path and
* verifies the complete contract.
*
* @param ctx The libdpm-core context
* @param name The module name
* @param reason Receives the refusal reason on failure
* @return The validated module (caller owns), or nullptr on failure
*/
std::unique_ptr<dpm_module> validate_and_load(dpm_ctx* ctx,
const std::string& name,
std::string& reason);
} // namespace dpm_core