Nix 2.17.0
Nix, the purely functional package manager; stable external interfaces
Loading...
Searching...
No Matches
libutil

C bindings for nix libutil. More...

Modules

 Handling errors
 Dealing with errors from the Nix side.
 
 Settings
 

Files

file  nix_api_util.h
 Main entry for the libutil C bindings.
 

Functions

nix_err nix_libutil_init (nix_c_context *context)
 Initializes nix_libutil and its dependencies. More...
 
const char * nix_version_get ()
 Retrieves the nix library version. More...
 

Detailed Description

C bindings for nix libutil.

libutil is used for functionality shared between different Nix modules.

Function Documentation

◆ nix_libutil_init()

nix_err nix_libutil_init ( nix_c_context context)

Initializes nix_libutil and its dependencies.

This function can be called multiple times, but should be called at least once prior to any other nix function.

Parameters
[out]contextOptional, stores error information
Returns
NIX_OK if the initialization is successful, or an error code otherwise.

◆ nix_version_get()

const char * nix_version_get ( )

Retrieves the nix library version.

Does not fail.

Returns
A static string representing the version of the nix library.