mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 13:36:02 +01:00
This allows us to catch the header and file getting out of sync, because we are not doing overloading by mistake.
23 lines
543 B
C++
23 lines
543 B
C++
#include "nix_api_fetchers.h"
|
|
#include "nix_api_fetchers_internal.hh"
|
|
#include "nix_api_util_internal.h"
|
|
|
|
extern "C" {
|
|
|
|
nix_fetchers_settings * nix_fetchers_settings_new(nix_c_context * context)
|
|
{
|
|
try {
|
|
auto fetchersSettings = nix::make_ref<nix::fetchers::Settings>(nix::fetchers::Settings{});
|
|
return new nix_fetchers_settings{
|
|
.settings = fetchersSettings,
|
|
};
|
|
}
|
|
NIXC_CATCH_ERRS_NULL
|
|
}
|
|
|
|
void nix_fetchers_settings_free(nix_fetchers_settings * settings)
|
|
{
|
|
delete settings;
|
|
}
|
|
|
|
} // extern "C"
|