nixide-sys header guards

This commit is contained in:
do butterflies cry? 2026-03-28 11:57:13 +10:00
parent d5bc2400c9
commit ce6b3f7270
Signed by: cry
GPG key ID: F68745A836CA0412
6 changed files with 30 additions and 0 deletions

View file

@ -1,3 +1,6 @@
#ifndef NIXIDE_EXPR
#define NIXIDE_EXPR
// Nix C API for the Nix expressions evaluator.
#include <nix_api_expr.h>
@ -8,3 +11,5 @@
// Nix C API for external values.
//
#include <nix_api_external.h>
#endif

View file

@ -1,3 +1,8 @@
#ifndef NIXIDE_FETCHERS
#define NIXIDE_FETCHERS
// Nix C API for fetcher operations.
//
#include <nix_api_fetchers.h>
#endif

View file

@ -1,3 +1,8 @@
#ifndef NIXIDE_FLAKE
#define NIXIDE_FLAKE
// Nix C API for flake support.
//
#include <nix_api_flake.h>
#endif

View file

@ -1,3 +1,8 @@
#ifndef NIXIDE_MAIN
#define NIXIDE_MAIN
// Nix C API for CLI support.
//
#include <nix_api_main.h>
#endif

View file

@ -1,3 +1,8 @@
#ifndef NIXIDE_STORE
#define NIXIDE_STORE
// Nix C API for store operations.
//
#include <nix_api_store.h>
#endif

View file

@ -1,3 +1,6 @@
#ifndef NIXIDE_UTIL
#define NIXIDE_UTIL
// Nix C API for utilities.
//
// Most notably containing functions for handling
@ -5,3 +8,5 @@
// the Nix C APIs for error handling.
//
#include <nix_api_util.h>
#endif