Nix 2.29.0
Nix, the purely functional package manager: C API (experimental)
Loading...
Searching...
No Matches
nix_api_external.h File Reference

libexpr C bindings dealing with external values More...

#include "nix_api_expr.h"
#include "nix_api_util.h"
#include "nix_api_value.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  NixCExternalValueDesc
 Definition for a class of external values. More...

Typedefs

typedef struct nix_string_return nix_string_return
 Represents a string owned by the Nix language evaluator.
typedef struct nix_printer nix_printer
 Wraps a stream that can output multiple string pieces.
typedef struct nix_string_context nix_string_context
 A list of string context items.
typedef struct NixCExternalValueDesc NixCExternalValueDesc
 Definition for a class of external values.

Functions

void nix_set_string_return (nix_string_return *str, const char *c)
 Sets the contents of a nix_string_return.
nix_err nix_external_print (nix_c_context *context, nix_printer *printer, const char *str)
nix_err nix_external_add_string_context (nix_c_context *context, nix_string_context *string_context, const char *c)
ExternalValuenix_create_external_value (nix_c_context *context, NixCExternalValueDesc *desc, void *v)
 Create an external value, that can be given to nix_init_external.
void * nix_get_external_value_content (nix_c_context *context, ExternalValue *b)
 Extract the pointer from a nix c external value.

Detailed Description

libexpr C bindings dealing with external values