1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-04 16:10:59 +01:00

nix_api_store: add nix_init_plugins

This commit is contained in:
Yorick van Pelt 2023-08-07 15:54:46 +02:00 committed by José Luis Lafuente
parent dc0f7d8f96
commit df9401eb4e
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
2 changed files with 20 additions and 0 deletions

View file

@ -35,6 +35,17 @@ typedef struct StorePath StorePath;
*/
nix_err nix_libstore_init(nix_c_context *context);
/**
* @brief Loads plugins specified in the settings
*
* Call this once, after calling your desired init functions and setting
* relevant settings.
*
* @param[out] context Optional, stores error information
* @return NIX_OK if the initialization was successful, an error code otherwise.
*/
nix_err nix_init_plugins(nix_c_context *context);
/**
* @brief Open a nix store
* @param[out] context Optional, stores error information