<cahute/context.h>
– Context management for Cahute¶
This header declares context-related utilities for Cahute.
Type definitions¶
-
struct cahute_context¶
Context; see Contexts for more information.
This type is opaque. It must be instantiated using
cahute_create_context()
, and destroyed usingcahute_destroy_context()
.
Function declarations¶
-
int cahute_create_context(cahute_context **contextp)¶
Create a context.
Warning
In case of error, the value of
*contextp
mustn’t be used nor freed.- Parameters:
contextp – Pointer to set to the created context.
- Returns:
Error, or 0 if the context was successfully created.
-
void cahute_destroy_context(cahute_context *context)¶
Destroy a context.
- Parameters:
context – Context to destroy.