Package: glib

Macro glib:with-key-file

Lambda List

glib:with-key-file ((keyfile) &body body)

Syntax

(g:with-key-file (keyfile) body) => result

Arguments

keyfile -- a newly allocated g:key-file instance

Details

The g:with-key-file macro allocates a new g:key-file instance and executes the body that uses the key file. After execution of the body the allocated memory for the key file is released using the g:key-file-free function.

The key file is created using the g:key-file-new function. Use the g:key-file-load-from-file or g:key-file-load-from-data functions to read an existing key file. Alternatively, use the g:with-key-file-from-file or g:with-key-file-from-data macros to create and load the key file in one step.
 

See also

2025-05-23