FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
Loading...
Searching...
No Matches
Macros | Functions
fdl_custom_attr_api.cpp File Reference

C ABI wrappers for custom attribute operations on all handle types. More...

#include "fdl/fdl_core.h"
#include "fdl_custom_attr.h"
#include "fdl_doc.h"

Macros

#define FDL_CUSTOM_ATTR_IMPL(PREFIX, HANDLE_TYPE, GET_OWNER, GET_NODE)
 Macro to generate all 19 custom attribute C ABI functions for a handle type.
 

Functions

int fdl_doc_set_custom_attr_string (fdl_doc_t *h, const char *name, const char *value)
 Set a string custom attribute.
 
int fdl_doc_set_custom_attr_int (fdl_doc_t *h, const char *name, int64_t value)
 Set an integer custom attribute.
 
int fdl_doc_set_custom_attr_float (fdl_doc_t *h, const char *name, double value)
 Set a float custom attribute.
 
int fdl_doc_set_custom_attr_bool (fdl_doc_t *h, const char *name, int value)
 Set a boolean custom attribute.
 
const char * fdl_doc_get_custom_attr_string (const fdl_doc_t *h, const char *name)
 Get a string custom attribute.
 
int fdl_doc_get_custom_attr_int (const fdl_doc_t *h, const char *name, int64_t *out)
 Get an integer custom attribute.
 
int fdl_doc_get_custom_attr_float (const fdl_doc_t *h, const char *name, double *out)
 Get a float custom attribute.
 
int fdl_doc_get_custom_attr_bool (const fdl_doc_t *h, const char *name, int *out)
 Get a boolean custom attribute.
 
int fdl_doc_has_custom_attr (const fdl_doc_t *h, const char *name)
 Check if a custom attribute exists.
 
fdl_custom_attr_type_t fdl_doc_get_custom_attr_type (const fdl_doc_t *h, const char *name)
 Get the type of a custom attribute.
 
int fdl_doc_remove_custom_attr (fdl_doc_t *h, const char *name)
 Remove a custom attribute.
 
uint32_t fdl_doc_custom_attrs_count (const fdl_doc_t *h)
 Count custom attributes on this object.
 
const char * fdl_doc_custom_attr_name_at (const fdl_doc_t *h, uint32_t index)
 Get name of custom attribute at index (without '_' prefix).
 
int fdl_doc_set_custom_attr_point_f64 (fdl_doc_t *h, const char *name, fdl_point_f64_t value)
 Set a point_f64 custom attribute.
 
int fdl_doc_get_custom_attr_point_f64 (const fdl_doc_t *h, const char *name, fdl_point_f64_t *out)
 Get a point_f64 custom attribute.
 
int fdl_doc_set_custom_attr_dims_f64 (fdl_doc_t *h, const char *name, fdl_dimensions_f64_t value)
 Set a dims_f64 custom attribute.
 
int fdl_doc_get_custom_attr_dims_f64 (const fdl_doc_t *h, const char *name, fdl_dimensions_f64_t *out)
 Get a dims_f64 custom attribute.
 
int fdl_doc_set_custom_attr_dims_i64 (fdl_doc_t *h, const char *name, fdl_dimensions_i64_t value)
 Set a dims_i64 custom attribute.
 
int fdl_doc_get_custom_attr_dims_i64 (const fdl_doc_t *h, const char *name, fdl_dimensions_i64_t *out)
 Get a dims_i64 custom attribute.
 
int fdl_context_set_custom_attr_string (fdl_context_t *h, const char *name, const char *value)
 Set a string custom attribute.
 
int fdl_context_set_custom_attr_int (fdl_context_t *h, const char *name, int64_t value)
 Set an integer custom attribute.
 
int fdl_context_set_custom_attr_float (fdl_context_t *h, const char *name, double value)
 Set a float custom attribute.
 
int fdl_context_set_custom_attr_bool (fdl_context_t *h, const char *name, int value)
 Set a boolean custom attribute.
 
const char * fdl_context_get_custom_attr_string (const fdl_context_t *h, const char *name)
 Get a string custom attribute.
 
int fdl_context_get_custom_attr_int (const fdl_context_t *h, const char *name, int64_t *out)
 Get an integer custom attribute.
 
int fdl_context_get_custom_attr_float (const fdl_context_t *h, const char *name, double *out)
 Get a float custom attribute.
 
int fdl_context_get_custom_attr_bool (const fdl_context_t *h, const char *name, int *out)
 Get a boolean custom attribute.
 
int fdl_context_has_custom_attr (const fdl_context_t *h, const char *name)
 Check if a custom attribute exists.
 
fdl_custom_attr_type_t fdl_context_get_custom_attr_type (const fdl_context_t *h, const char *name)
 Get the type of a custom attribute.
 
int fdl_context_remove_custom_attr (fdl_context_t *h, const char *name)
 Remove a custom attribute.
 
uint32_t fdl_context_custom_attrs_count (const fdl_context_t *h)
 Count custom attributes on this object.
 
const char * fdl_context_custom_attr_name_at (const fdl_context_t *h, uint32_t index)
 Get name of custom attribute at index (without '_' prefix).
 
int fdl_context_set_custom_attr_point_f64 (fdl_context_t *h, const char *name, fdl_point_f64_t value)
 Set a point_f64 custom attribute.
 
int fdl_context_get_custom_attr_point_f64 (const fdl_context_t *h, const char *name, fdl_point_f64_t *out)
 Get a point_f64 custom attribute.
 
int fdl_context_set_custom_attr_dims_f64 (fdl_context_t *h, const char *name, fdl_dimensions_f64_t value)
 Set a dims_f64 custom attribute.
 
int fdl_context_get_custom_attr_dims_f64 (const fdl_context_t *h, const char *name, fdl_dimensions_f64_t *out)
 Get a dims_f64 custom attribute.
 
int fdl_context_set_custom_attr_dims_i64 (fdl_context_t *h, const char *name, fdl_dimensions_i64_t value)
 Set a dims_i64 custom attribute.
 
int fdl_context_get_custom_attr_dims_i64 (const fdl_context_t *h, const char *name, fdl_dimensions_i64_t *out)
 Get a dims_i64 custom attribute.
 
int fdl_canvas_set_custom_attr_string (fdl_canvas_t *h, const char *name, const char *value)
 Set a string custom attribute.
 
int fdl_canvas_set_custom_attr_int (fdl_canvas_t *h, const char *name, int64_t value)
 Set an integer custom attribute.
 
int fdl_canvas_set_custom_attr_float (fdl_canvas_t *h, const char *name, double value)
 Set a float custom attribute.
 
int fdl_canvas_set_custom_attr_bool (fdl_canvas_t *h, const char *name, int value)
 Set a boolean custom attribute.
 
const char * fdl_canvas_get_custom_attr_string (const fdl_canvas_t *h, const char *name)
 Get a string custom attribute.
 
int fdl_canvas_get_custom_attr_int (const fdl_canvas_t *h, const char *name, int64_t *out)
 Get an integer custom attribute.
 
int fdl_canvas_get_custom_attr_float (const fdl_canvas_t *h, const char *name, double *out)
 Get a float custom attribute.
 
int fdl_canvas_get_custom_attr_bool (const fdl_canvas_t *h, const char *name, int *out)
 Get a boolean custom attribute.
 
int fdl_canvas_has_custom_attr (const fdl_canvas_t *h, const char *name)
 Check if a custom attribute exists.
 
fdl_custom_attr_type_t fdl_canvas_get_custom_attr_type (const fdl_canvas_t *h, const char *name)
 Get the type of a custom attribute.
 
int fdl_canvas_remove_custom_attr (fdl_canvas_t *h, const char *name)
 Remove a custom attribute.
 
uint32_t fdl_canvas_custom_attrs_count (const fdl_canvas_t *h)
 Count custom attributes on this object.
 
const char * fdl_canvas_custom_attr_name_at (const fdl_canvas_t *h, uint32_t index)
 Get name of custom attribute at index (without '_' prefix).
 
int fdl_canvas_set_custom_attr_point_f64 (fdl_canvas_t *h, const char *name, fdl_point_f64_t value)
 Set a point_f64 custom attribute.
 
int fdl_canvas_get_custom_attr_point_f64 (const fdl_canvas_t *h, const char *name, fdl_point_f64_t *out)
 Get a point_f64 custom attribute.
 
int fdl_canvas_set_custom_attr_dims_f64 (fdl_canvas_t *h, const char *name, fdl_dimensions_f64_t value)
 Set a dims_f64 custom attribute.
 
int fdl_canvas_get_custom_attr_dims_f64 (const fdl_canvas_t *h, const char *name, fdl_dimensions_f64_t *out)
 Get a dims_f64 custom attribute.
 
int fdl_canvas_set_custom_attr_dims_i64 (fdl_canvas_t *h, const char *name, fdl_dimensions_i64_t value)
 Set a dims_i64 custom attribute.
 
int fdl_canvas_get_custom_attr_dims_i64 (const fdl_canvas_t *h, const char *name, fdl_dimensions_i64_t *out)
 Get a dims_i64 custom attribute.
 
int fdl_framing_decision_set_custom_attr_string (fdl_framing_decision_t *h, const char *name, const char *value)
 Set a string custom attribute.
 
int fdl_framing_decision_set_custom_attr_int (fdl_framing_decision_t *h, const char *name, int64_t value)
 Set an integer custom attribute.
 
int fdl_framing_decision_set_custom_attr_float (fdl_framing_decision_t *h, const char *name, double value)
 Set a float custom attribute.
 
int fdl_framing_decision_set_custom_attr_bool (fdl_framing_decision_t *h, const char *name, int value)
 Set a boolean custom attribute.
 
const char * fdl_framing_decision_get_custom_attr_string (const fdl_framing_decision_t *h, const char *name)
 Get a string custom attribute.
 
int fdl_framing_decision_get_custom_attr_int (const fdl_framing_decision_t *h, const char *name, int64_t *out)
 Get an integer custom attribute.
 
int fdl_framing_decision_get_custom_attr_float (const fdl_framing_decision_t *h, const char *name, double *out)
 Get a float custom attribute.
 
int fdl_framing_decision_get_custom_attr_bool (const fdl_framing_decision_t *h, const char *name, int *out)
 Get a boolean custom attribute.
 
int fdl_framing_decision_has_custom_attr (const fdl_framing_decision_t *h, const char *name)
 Check if a custom attribute exists.
 
fdl_custom_attr_type_t fdl_framing_decision_get_custom_attr_type (const fdl_framing_decision_t *h, const char *name)
 Get the type of a custom attribute.
 
int fdl_framing_decision_remove_custom_attr (fdl_framing_decision_t *h, const char *name)
 Remove a custom attribute.
 
uint32_t fdl_framing_decision_custom_attrs_count (const fdl_framing_decision_t *h)
 Count custom attributes on this object.
 
const char * fdl_framing_decision_custom_attr_name_at (const fdl_framing_decision_t *h, uint32_t index)
 Get name of custom attribute at index (without '_' prefix).
 
int fdl_framing_decision_set_custom_attr_point_f64 (fdl_framing_decision_t *h, const char *name, fdl_point_f64_t value)
 Set a point_f64 custom attribute.
 
int fdl_framing_decision_get_custom_attr_point_f64 (const fdl_framing_decision_t *h, const char *name, fdl_point_f64_t *out)
 Get a point_f64 custom attribute.
 
int fdl_framing_decision_set_custom_attr_dims_f64 (fdl_framing_decision_t *h, const char *name, fdl_dimensions_f64_t value)
 Set a dims_f64 custom attribute.
 
int fdl_framing_decision_get_custom_attr_dims_f64 (const fdl_framing_decision_t *h, const char *name, fdl_dimensions_f64_t *out)
 Get a dims_f64 custom attribute.
 
int fdl_framing_decision_set_custom_attr_dims_i64 (fdl_framing_decision_t *h, const char *name, fdl_dimensions_i64_t value)
 Set a dims_i64 custom attribute.
 
int fdl_framing_decision_get_custom_attr_dims_i64 (const fdl_framing_decision_t *h, const char *name, fdl_dimensions_i64_t *out)
 Get a dims_i64 custom attribute.
 
int fdl_framing_intent_set_custom_attr_string (fdl_framing_intent_t *h, const char *name, const char *value)
 Set a string custom attribute.
 
int fdl_framing_intent_set_custom_attr_int (fdl_framing_intent_t *h, const char *name, int64_t value)
 Set an integer custom attribute.
 
int fdl_framing_intent_set_custom_attr_float (fdl_framing_intent_t *h, const char *name, double value)
 Set a float custom attribute.
 
int fdl_framing_intent_set_custom_attr_bool (fdl_framing_intent_t *h, const char *name, int value)
 Set a boolean custom attribute.
 
const char * fdl_framing_intent_get_custom_attr_string (const fdl_framing_intent_t *h, const char *name)
 Get a string custom attribute.
 
int fdl_framing_intent_get_custom_attr_int (const fdl_framing_intent_t *h, const char *name, int64_t *out)
 Get an integer custom attribute.
 
int fdl_framing_intent_get_custom_attr_float (const fdl_framing_intent_t *h, const char *name, double *out)
 Get a float custom attribute.
 
int fdl_framing_intent_get_custom_attr_bool (const fdl_framing_intent_t *h, const char *name, int *out)
 Get a boolean custom attribute.
 
int fdl_framing_intent_has_custom_attr (const fdl_framing_intent_t *h, const char *name)
 Check if a custom attribute exists.
 
fdl_custom_attr_type_t fdl_framing_intent_get_custom_attr_type (const fdl_framing_intent_t *h, const char *name)
 Get the type of a custom attribute.
 
int fdl_framing_intent_remove_custom_attr (fdl_framing_intent_t *h, const char *name)
 Remove a custom attribute.
 
uint32_t fdl_framing_intent_custom_attrs_count (const fdl_framing_intent_t *h)
 Count custom attributes on this object.
 
const char * fdl_framing_intent_custom_attr_name_at (const fdl_framing_intent_t *h, uint32_t index)
 Get name of custom attribute at index (without '_' prefix).
 
int fdl_framing_intent_set_custom_attr_point_f64 (fdl_framing_intent_t *h, const char *name, fdl_point_f64_t value)
 Set a point_f64 custom attribute.
 
int fdl_framing_intent_get_custom_attr_point_f64 (const fdl_framing_intent_t *h, const char *name, fdl_point_f64_t *out)
 Get a point_f64 custom attribute.
 
int fdl_framing_intent_set_custom_attr_dims_f64 (fdl_framing_intent_t *h, const char *name, fdl_dimensions_f64_t value)
 Set a dims_f64 custom attribute.
 
int fdl_framing_intent_get_custom_attr_dims_f64 (const fdl_framing_intent_t *h, const char *name, fdl_dimensions_f64_t *out)
 Get a dims_f64 custom attribute.
 
int fdl_framing_intent_set_custom_attr_dims_i64 (fdl_framing_intent_t *h, const char *name, fdl_dimensions_i64_t value)
 Set a dims_i64 custom attribute.
 
int fdl_framing_intent_get_custom_attr_dims_i64 (const fdl_framing_intent_t *h, const char *name, fdl_dimensions_i64_t *out)
 Get a dims_i64 custom attribute.
 
int fdl_canvas_template_set_custom_attr_string (fdl_canvas_template_t *h, const char *name, const char *value)
 Set a string custom attribute.
 
int fdl_canvas_template_set_custom_attr_int (fdl_canvas_template_t *h, const char *name, int64_t value)
 Set an integer custom attribute.
 
int fdl_canvas_template_set_custom_attr_float (fdl_canvas_template_t *h, const char *name, double value)
 Set a float custom attribute.
 
int fdl_canvas_template_set_custom_attr_bool (fdl_canvas_template_t *h, const char *name, int value)
 Set a boolean custom attribute.
 
const char * fdl_canvas_template_get_custom_attr_string (const fdl_canvas_template_t *h, const char *name)
 Get a string custom attribute.
 
int fdl_canvas_template_get_custom_attr_int (const fdl_canvas_template_t *h, const char *name, int64_t *out)
 Get an integer custom attribute.
 
int fdl_canvas_template_get_custom_attr_float (const fdl_canvas_template_t *h, const char *name, double *out)
 Get a float custom attribute.
 
int fdl_canvas_template_get_custom_attr_bool (const fdl_canvas_template_t *h, const char *name, int *out)
 Get a boolean custom attribute.
 
int fdl_canvas_template_has_custom_attr (const fdl_canvas_template_t *h, const char *name)
 Check if a custom attribute exists.
 
fdl_custom_attr_type_t fdl_canvas_template_get_custom_attr_type (const fdl_canvas_template_t *h, const char *name)
 Get the type of a custom attribute.
 
int fdl_canvas_template_remove_custom_attr (fdl_canvas_template_t *h, const char *name)
 Remove a custom attribute.
 
uint32_t fdl_canvas_template_custom_attrs_count (const fdl_canvas_template_t *h)
 Count custom attributes on this object.
 
const char * fdl_canvas_template_custom_attr_name_at (const fdl_canvas_template_t *h, uint32_t index)
 Get name of custom attribute at index (without '_' prefix).
 
int fdl_canvas_template_set_custom_attr_point_f64 (fdl_canvas_template_t *h, const char *name, fdl_point_f64_t value)
 Set a point_f64 custom attribute.
 
int fdl_canvas_template_get_custom_attr_point_f64 (const fdl_canvas_template_t *h, const char *name, fdl_point_f64_t *out)
 Get a point_f64 custom attribute.
 
int fdl_canvas_template_set_custom_attr_dims_f64 (fdl_canvas_template_t *h, const char *name, fdl_dimensions_f64_t value)
 Set a dims_f64 custom attribute.
 
int fdl_canvas_template_get_custom_attr_dims_f64 (const fdl_canvas_template_t *h, const char *name, fdl_dimensions_f64_t *out)
 Get a dims_f64 custom attribute.
 
int fdl_canvas_template_set_custom_attr_dims_i64 (fdl_canvas_template_t *h, const char *name, fdl_dimensions_i64_t value)
 Set a dims_i64 custom attribute.
 
int fdl_canvas_template_get_custom_attr_dims_i64 (const fdl_canvas_template_t *h, const char *name, fdl_dimensions_i64_t *out)
 Get a dims_i64 custom attribute.
 
int fdl_clip_id_set_custom_attr_string (fdl_clip_id_t *h, const char *name, const char *value)
 Set a string custom attribute.
 
int fdl_clip_id_set_custom_attr_int (fdl_clip_id_t *h, const char *name, int64_t value)
 Set an integer custom attribute.
 
int fdl_clip_id_set_custom_attr_float (fdl_clip_id_t *h, const char *name, double value)
 Set a float custom attribute.
 
int fdl_clip_id_set_custom_attr_bool (fdl_clip_id_t *h, const char *name, int value)
 Set a boolean custom attribute.
 
const char * fdl_clip_id_get_custom_attr_string (const fdl_clip_id_t *h, const char *name)
 Get a string custom attribute.
 
int fdl_clip_id_get_custom_attr_int (const fdl_clip_id_t *h, const char *name, int64_t *out)
 Get an integer custom attribute.
 
int fdl_clip_id_get_custom_attr_float (const fdl_clip_id_t *h, const char *name, double *out)
 Get a float custom attribute.
 
int fdl_clip_id_get_custom_attr_bool (const fdl_clip_id_t *h, const char *name, int *out)
 Get a boolean custom attribute.
 
int fdl_clip_id_has_custom_attr (const fdl_clip_id_t *h, const char *name)
 Check if a custom attribute exists.
 
fdl_custom_attr_type_t fdl_clip_id_get_custom_attr_type (const fdl_clip_id_t *h, const char *name)
 Get the type of a custom attribute.
 
int fdl_clip_id_remove_custom_attr (fdl_clip_id_t *h, const char *name)
 Remove a custom attribute.
 
uint32_t fdl_clip_id_custom_attrs_count (const fdl_clip_id_t *h)
 Count custom attributes on this object.
 
const char * fdl_clip_id_custom_attr_name_at (const fdl_clip_id_t *h, uint32_t index)
 Get name of custom attribute at index (without '_' prefix).
 
int fdl_clip_id_set_custom_attr_point_f64 (fdl_clip_id_t *h, const char *name, fdl_point_f64_t value)
 Set a point_f64 custom attribute.
 
int fdl_clip_id_get_custom_attr_point_f64 (const fdl_clip_id_t *h, const char *name, fdl_point_f64_t *out)
 Get a point_f64 custom attribute.
 
int fdl_clip_id_set_custom_attr_dims_f64 (fdl_clip_id_t *h, const char *name, fdl_dimensions_f64_t value)
 Set a dims_f64 custom attribute.
 
int fdl_clip_id_get_custom_attr_dims_f64 (const fdl_clip_id_t *h, const char *name, fdl_dimensions_f64_t *out)
 Get a dims_f64 custom attribute.
 
int fdl_clip_id_set_custom_attr_dims_i64 (fdl_clip_id_t *h, const char *name, fdl_dimensions_i64_t value)
 Set a dims_i64 custom attribute.
 
int fdl_clip_id_get_custom_attr_dims_i64 (const fdl_clip_id_t *h, const char *name, fdl_dimensions_i64_t *out)
 Get a dims_i64 custom attribute.
 
int fdl_file_sequence_set_custom_attr_string (fdl_file_sequence_t *h, const char *name, const char *value)
 Set a string custom attribute.
 
int fdl_file_sequence_set_custom_attr_int (fdl_file_sequence_t *h, const char *name, int64_t value)
 Set an integer custom attribute.
 
int fdl_file_sequence_set_custom_attr_float (fdl_file_sequence_t *h, const char *name, double value)
 Set a float custom attribute.
 
int fdl_file_sequence_set_custom_attr_bool (fdl_file_sequence_t *h, const char *name, int value)
 Set a boolean custom attribute.
 
const char * fdl_file_sequence_get_custom_attr_string (const fdl_file_sequence_t *h, const char *name)
 Get a string custom attribute.
 
int fdl_file_sequence_get_custom_attr_int (const fdl_file_sequence_t *h, const char *name, int64_t *out)
 Get an integer custom attribute.
 
int fdl_file_sequence_get_custom_attr_float (const fdl_file_sequence_t *h, const char *name, double *out)
 Get a float custom attribute.
 
int fdl_file_sequence_get_custom_attr_bool (const fdl_file_sequence_t *h, const char *name, int *out)
 Get a boolean custom attribute.
 
int fdl_file_sequence_has_custom_attr (const fdl_file_sequence_t *h, const char *name)
 Check if a custom attribute exists.
 
fdl_custom_attr_type_t fdl_file_sequence_get_custom_attr_type (const fdl_file_sequence_t *h, const char *name)
 Get the type of a custom attribute.
 
int fdl_file_sequence_remove_custom_attr (fdl_file_sequence_t *h, const char *name)
 Remove a custom attribute.
 
uint32_t fdl_file_sequence_custom_attrs_count (const fdl_file_sequence_t *h)
 Count custom attributes on this object.
 
const char * fdl_file_sequence_custom_attr_name_at (const fdl_file_sequence_t *h, uint32_t index)
 Get name of custom attribute at index (without '_' prefix).
 
int fdl_file_sequence_set_custom_attr_point_f64 (fdl_file_sequence_t *h, const char *name, fdl_point_f64_t value)
 Set a point_f64 custom attribute.
 
int fdl_file_sequence_get_custom_attr_point_f64 (const fdl_file_sequence_t *h, const char *name, fdl_point_f64_t *out)
 Get a point_f64 custom attribute.
 
int fdl_file_sequence_set_custom_attr_dims_f64 (fdl_file_sequence_t *h, const char *name, fdl_dimensions_f64_t value)
 Set a dims_f64 custom attribute.
 
int fdl_file_sequence_get_custom_attr_dims_f64 (const fdl_file_sequence_t *h, const char *name, fdl_dimensions_f64_t *out)
 Get a dims_f64 custom attribute.
 
int fdl_file_sequence_set_custom_attr_dims_i64 (fdl_file_sequence_t *h, const char *name, fdl_dimensions_i64_t value)
 Set a dims_i64 custom attribute.
 
int fdl_file_sequence_get_custom_attr_dims_i64 (const fdl_file_sequence_t *h, const char *name, fdl_dimensions_i64_t *out)
 Get a dims_i64 custom attribute.
 

Detailed Description

C ABI wrappers for custom attribute operations on all handle types.

Uses a macro to generate 13 extern "C" functions per handle type (8 types = 104 functions). Each wrapper null-checks the handle, acquires the document mutex, resolves the target JSON node, and delegates to the shared implementation in fdl_custom_attr.h.

Macro Definition Documentation

◆ FDL_CUSTOM_ATTR_IMPL

#define FDL_CUSTOM_ATTR_IMPL (   PREFIX,
  HANDLE_TYPE,
  GET_OWNER,
  GET_NODE 
)

Macro to generate all 19 custom attribute C ABI functions for a handle type.

Parameters
PREFIXFunction name prefix (e.g., fdl_doc_).
HANDLE_TYPEC handle type (e.g., fdl_doc_t).
GET_OWNERExpression to get the owning fdl_doc from handle pointer 'h'.
GET_NODEExpression to get the ojson* from handle pointer 'h'.

Function Documentation

◆ fdl_doc_set_custom_attr_string()

int fdl_doc_set_custom_attr_string ( fdl_doc_t h,
const char *  name,
const char *  value 
)

Set a string custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_doc_set_custom_attr_int()

int fdl_doc_set_custom_attr_int ( fdl_doc_t h,
const char *  name,
int64_t  value 
)

Set an integer custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_doc_set_custom_attr_float()

int fdl_doc_set_custom_attr_float ( fdl_doc_t h,
const char *  name,
double  value 
)

Set a float custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_doc_set_custom_attr_bool()

int fdl_doc_set_custom_attr_bool ( fdl_doc_t h,
const char *  name,
int  value 
)

Set a boolean custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_doc_get_custom_attr_string()

const char * fdl_doc_get_custom_attr_string ( const fdl_doc_t h,
const char *  name 
)

Get a string custom attribute.

Returns
Thread-local pointer, or NULL.

◆ fdl_doc_get_custom_attr_int()

int fdl_doc_get_custom_attr_int ( const fdl_doc_t h,
const char *  name,
int64_t *  out 
)

Get an integer custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_doc_get_custom_attr_float()

int fdl_doc_get_custom_attr_float ( const fdl_doc_t h,
const char *  name,
double *  out 
)

Get a float custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_doc_get_custom_attr_bool()

int fdl_doc_get_custom_attr_bool ( const fdl_doc_t h,
const char *  name,
int *  out 
)

Get a boolean custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_doc_has_custom_attr()

int fdl_doc_has_custom_attr ( const fdl_doc_t h,
const char *  name 
)

Check if a custom attribute exists.

Returns
FDL_TRUE or FDL_FALSE.

◆ fdl_doc_get_custom_attr_type()

fdl_custom_attr_type_t fdl_doc_get_custom_attr_type ( const fdl_doc_t h,
const char *  name 
)

Get the type of a custom attribute.

Returns
FDL_CUSTOM_ATTR_TYPE_* constant.

◆ fdl_doc_remove_custom_attr()

int fdl_doc_remove_custom_attr ( fdl_doc_t h,
const char *  name 
)

Remove a custom attribute.

Returns
0 if removed, -1 if not found.

◆ fdl_doc_custom_attr_name_at()

const char * fdl_doc_custom_attr_name_at ( const fdl_doc_t h,
uint32_t  index 
)

Get name of custom attribute at index (without '_' prefix).

Returns
Thread-local pointer, or NULL.

◆ fdl_doc_set_custom_attr_point_f64()

int fdl_doc_set_custom_attr_point_f64 ( fdl_doc_t h,
const char *  name,
fdl_point_f64_t  value 
)

Set a point_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_doc_get_custom_attr_point_f64()

int fdl_doc_get_custom_attr_point_f64 ( const fdl_doc_t h,
const char *  name,
fdl_point_f64_t out 
)

Get a point_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_doc_set_custom_attr_dims_f64()

int fdl_doc_set_custom_attr_dims_f64 ( fdl_doc_t h,
const char *  name,
fdl_dimensions_f64_t  value 
)

Set a dims_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_doc_get_custom_attr_dims_f64()

int fdl_doc_get_custom_attr_dims_f64 ( const fdl_doc_t h,
const char *  name,
fdl_dimensions_f64_t out 
)

Get a dims_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_doc_set_custom_attr_dims_i64()

int fdl_doc_set_custom_attr_dims_i64 ( fdl_doc_t h,
const char *  name,
fdl_dimensions_i64_t  value 
)

Set a dims_i64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_doc_get_custom_attr_dims_i64()

int fdl_doc_get_custom_attr_dims_i64 ( const fdl_doc_t h,
const char *  name,
fdl_dimensions_i64_t out 
)

Get a dims_i64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_context_set_custom_attr_string()

int fdl_context_set_custom_attr_string ( fdl_context_t h,
const char *  name,
const char *  value 
)

Set a string custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_context_set_custom_attr_int()

int fdl_context_set_custom_attr_int ( fdl_context_t h,
const char *  name,
int64_t  value 
)

Set an integer custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_context_set_custom_attr_float()

int fdl_context_set_custom_attr_float ( fdl_context_t h,
const char *  name,
double  value 
)

Set a float custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_context_set_custom_attr_bool()

int fdl_context_set_custom_attr_bool ( fdl_context_t h,
const char *  name,
int  value 
)

Set a boolean custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_context_get_custom_attr_string()

const char * fdl_context_get_custom_attr_string ( const fdl_context_t h,
const char *  name 
)

Get a string custom attribute.

Returns
Thread-local pointer, or NULL.

◆ fdl_context_get_custom_attr_int()

int fdl_context_get_custom_attr_int ( const fdl_context_t h,
const char *  name,
int64_t *  out 
)

Get an integer custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_context_get_custom_attr_float()

int fdl_context_get_custom_attr_float ( const fdl_context_t h,
const char *  name,
double *  out 
)

Get a float custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_context_get_custom_attr_bool()

int fdl_context_get_custom_attr_bool ( const fdl_context_t h,
const char *  name,
int *  out 
)

Get a boolean custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_context_has_custom_attr()

int fdl_context_has_custom_attr ( const fdl_context_t h,
const char *  name 
)

Check if a custom attribute exists.

Returns
FDL_TRUE or FDL_FALSE.

◆ fdl_context_get_custom_attr_type()

fdl_custom_attr_type_t fdl_context_get_custom_attr_type ( const fdl_context_t h,
const char *  name 
)

Get the type of a custom attribute.

Returns
FDL_CUSTOM_ATTR_TYPE_* constant.

◆ fdl_context_remove_custom_attr()

int fdl_context_remove_custom_attr ( fdl_context_t h,
const char *  name 
)

Remove a custom attribute.

Returns
0 if removed, -1 if not found.

◆ fdl_context_custom_attr_name_at()

const char * fdl_context_custom_attr_name_at ( const fdl_context_t h,
uint32_t  index 
)

Get name of custom attribute at index (without '_' prefix).

Returns
Thread-local pointer, or NULL.

◆ fdl_context_set_custom_attr_point_f64()

int fdl_context_set_custom_attr_point_f64 ( fdl_context_t h,
const char *  name,
fdl_point_f64_t  value 
)

Set a point_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_context_get_custom_attr_point_f64()

int fdl_context_get_custom_attr_point_f64 ( const fdl_context_t h,
const char *  name,
fdl_point_f64_t out 
)

Get a point_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_context_set_custom_attr_dims_f64()

int fdl_context_set_custom_attr_dims_f64 ( fdl_context_t h,
const char *  name,
fdl_dimensions_f64_t  value 
)

Set a dims_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_context_get_custom_attr_dims_f64()

int fdl_context_get_custom_attr_dims_f64 ( const fdl_context_t h,
const char *  name,
fdl_dimensions_f64_t out 
)

Get a dims_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_context_set_custom_attr_dims_i64()

int fdl_context_set_custom_attr_dims_i64 ( fdl_context_t h,
const char *  name,
fdl_dimensions_i64_t  value 
)

Set a dims_i64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_context_get_custom_attr_dims_i64()

int fdl_context_get_custom_attr_dims_i64 ( const fdl_context_t h,
const char *  name,
fdl_dimensions_i64_t out 
)

Get a dims_i64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_set_custom_attr_string()

int fdl_canvas_set_custom_attr_string ( fdl_canvas_t h,
const char *  name,
const char *  value 
)

Set a string custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_set_custom_attr_int()

int fdl_canvas_set_custom_attr_int ( fdl_canvas_t h,
const char *  name,
int64_t  value 
)

Set an integer custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_set_custom_attr_float()

int fdl_canvas_set_custom_attr_float ( fdl_canvas_t h,
const char *  name,
double  value 
)

Set a float custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_set_custom_attr_bool()

int fdl_canvas_set_custom_attr_bool ( fdl_canvas_t h,
const char *  name,
int  value 
)

Set a boolean custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_get_custom_attr_string()

const char * fdl_canvas_get_custom_attr_string ( const fdl_canvas_t h,
const char *  name 
)

Get a string custom attribute.

Returns
Thread-local pointer, or NULL.

◆ fdl_canvas_get_custom_attr_int()

int fdl_canvas_get_custom_attr_int ( const fdl_canvas_t h,
const char *  name,
int64_t *  out 
)

Get an integer custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_get_custom_attr_float()

int fdl_canvas_get_custom_attr_float ( const fdl_canvas_t h,
const char *  name,
double *  out 
)

Get a float custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_get_custom_attr_bool()

int fdl_canvas_get_custom_attr_bool ( const fdl_canvas_t h,
const char *  name,
int *  out 
)

Get a boolean custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_has_custom_attr()

int fdl_canvas_has_custom_attr ( const fdl_canvas_t h,
const char *  name 
)

Check if a custom attribute exists.

Returns
FDL_TRUE or FDL_FALSE.

◆ fdl_canvas_get_custom_attr_type()

fdl_custom_attr_type_t fdl_canvas_get_custom_attr_type ( const fdl_canvas_t h,
const char *  name 
)

Get the type of a custom attribute.

Returns
FDL_CUSTOM_ATTR_TYPE_* constant.

◆ fdl_canvas_remove_custom_attr()

int fdl_canvas_remove_custom_attr ( fdl_canvas_t h,
const char *  name 
)

Remove a custom attribute.

Returns
0 if removed, -1 if not found.

◆ fdl_canvas_custom_attr_name_at()

const char * fdl_canvas_custom_attr_name_at ( const fdl_canvas_t h,
uint32_t  index 
)

Get name of custom attribute at index (without '_' prefix).

Returns
Thread-local pointer, or NULL.

◆ fdl_canvas_set_custom_attr_point_f64()

int fdl_canvas_set_custom_attr_point_f64 ( fdl_canvas_t h,
const char *  name,
fdl_point_f64_t  value 
)

Set a point_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_get_custom_attr_point_f64()

int fdl_canvas_get_custom_attr_point_f64 ( const fdl_canvas_t h,
const char *  name,
fdl_point_f64_t out 
)

Get a point_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_set_custom_attr_dims_f64()

int fdl_canvas_set_custom_attr_dims_f64 ( fdl_canvas_t h,
const char *  name,
fdl_dimensions_f64_t  value 
)

Set a dims_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_get_custom_attr_dims_f64()

int fdl_canvas_get_custom_attr_dims_f64 ( const fdl_canvas_t h,
const char *  name,
fdl_dimensions_f64_t out 
)

Get a dims_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_set_custom_attr_dims_i64()

int fdl_canvas_set_custom_attr_dims_i64 ( fdl_canvas_t h,
const char *  name,
fdl_dimensions_i64_t  value 
)

Set a dims_i64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_get_custom_attr_dims_i64()

int fdl_canvas_get_custom_attr_dims_i64 ( const fdl_canvas_t h,
const char *  name,
fdl_dimensions_i64_t out 
)

Get a dims_i64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_decision_set_custom_attr_string()

int fdl_framing_decision_set_custom_attr_string ( fdl_framing_decision_t h,
const char *  name,
const char *  value 
)

Set a string custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_decision_set_custom_attr_int()

int fdl_framing_decision_set_custom_attr_int ( fdl_framing_decision_t h,
const char *  name,
int64_t  value 
)

Set an integer custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_decision_set_custom_attr_float()

int fdl_framing_decision_set_custom_attr_float ( fdl_framing_decision_t h,
const char *  name,
double  value 
)

Set a float custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_decision_set_custom_attr_bool()

int fdl_framing_decision_set_custom_attr_bool ( fdl_framing_decision_t h,
const char *  name,
int  value 
)

Set a boolean custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_decision_get_custom_attr_string()

const char * fdl_framing_decision_get_custom_attr_string ( const fdl_framing_decision_t h,
const char *  name 
)

Get a string custom attribute.

Returns
Thread-local pointer, or NULL.

◆ fdl_framing_decision_get_custom_attr_int()

int fdl_framing_decision_get_custom_attr_int ( const fdl_framing_decision_t h,
const char *  name,
int64_t *  out 
)

Get an integer custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_decision_get_custom_attr_float()

int fdl_framing_decision_get_custom_attr_float ( const fdl_framing_decision_t h,
const char *  name,
double *  out 
)

Get a float custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_decision_get_custom_attr_bool()

int fdl_framing_decision_get_custom_attr_bool ( const fdl_framing_decision_t h,
const char *  name,
int *  out 
)

Get a boolean custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_decision_has_custom_attr()

int fdl_framing_decision_has_custom_attr ( const fdl_framing_decision_t h,
const char *  name 
)

Check if a custom attribute exists.

Returns
FDL_TRUE or FDL_FALSE.

◆ fdl_framing_decision_get_custom_attr_type()

fdl_custom_attr_type_t fdl_framing_decision_get_custom_attr_type ( const fdl_framing_decision_t h,
const char *  name 
)

Get the type of a custom attribute.

Returns
FDL_CUSTOM_ATTR_TYPE_* constant.

◆ fdl_framing_decision_remove_custom_attr()

int fdl_framing_decision_remove_custom_attr ( fdl_framing_decision_t h,
const char *  name 
)

Remove a custom attribute.

Returns
0 if removed, -1 if not found.

◆ fdl_framing_decision_custom_attr_name_at()

const char * fdl_framing_decision_custom_attr_name_at ( const fdl_framing_decision_t h,
uint32_t  index 
)

Get name of custom attribute at index (without '_' prefix).

Returns
Thread-local pointer, or NULL.

◆ fdl_framing_decision_set_custom_attr_point_f64()

int fdl_framing_decision_set_custom_attr_point_f64 ( fdl_framing_decision_t h,
const char *  name,
fdl_point_f64_t  value 
)

Set a point_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_decision_get_custom_attr_point_f64()

int fdl_framing_decision_get_custom_attr_point_f64 ( const fdl_framing_decision_t h,
const char *  name,
fdl_point_f64_t out 
)

Get a point_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_decision_set_custom_attr_dims_f64()

int fdl_framing_decision_set_custom_attr_dims_f64 ( fdl_framing_decision_t h,
const char *  name,
fdl_dimensions_f64_t  value 
)

Set a dims_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_decision_get_custom_attr_dims_f64()

int fdl_framing_decision_get_custom_attr_dims_f64 ( const fdl_framing_decision_t h,
const char *  name,
fdl_dimensions_f64_t out 
)

Get a dims_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_decision_set_custom_attr_dims_i64()

int fdl_framing_decision_set_custom_attr_dims_i64 ( fdl_framing_decision_t h,
const char *  name,
fdl_dimensions_i64_t  value 
)

Set a dims_i64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_decision_get_custom_attr_dims_i64()

int fdl_framing_decision_get_custom_attr_dims_i64 ( const fdl_framing_decision_t h,
const char *  name,
fdl_dimensions_i64_t out 
)

Get a dims_i64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_intent_set_custom_attr_string()

int fdl_framing_intent_set_custom_attr_string ( fdl_framing_intent_t h,
const char *  name,
const char *  value 
)

Set a string custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_intent_set_custom_attr_int()

int fdl_framing_intent_set_custom_attr_int ( fdl_framing_intent_t h,
const char *  name,
int64_t  value 
)

Set an integer custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_intent_set_custom_attr_float()

int fdl_framing_intent_set_custom_attr_float ( fdl_framing_intent_t h,
const char *  name,
double  value 
)

Set a float custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_intent_set_custom_attr_bool()

int fdl_framing_intent_set_custom_attr_bool ( fdl_framing_intent_t h,
const char *  name,
int  value 
)

Set a boolean custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_intent_get_custom_attr_string()

const char * fdl_framing_intent_get_custom_attr_string ( const fdl_framing_intent_t h,
const char *  name 
)

Get a string custom attribute.

Returns
Thread-local pointer, or NULL.

◆ fdl_framing_intent_get_custom_attr_int()

int fdl_framing_intent_get_custom_attr_int ( const fdl_framing_intent_t h,
const char *  name,
int64_t *  out 
)

Get an integer custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_intent_get_custom_attr_float()

int fdl_framing_intent_get_custom_attr_float ( const fdl_framing_intent_t h,
const char *  name,
double *  out 
)

Get a float custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_intent_get_custom_attr_bool()

int fdl_framing_intent_get_custom_attr_bool ( const fdl_framing_intent_t h,
const char *  name,
int *  out 
)

Get a boolean custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_intent_has_custom_attr()

int fdl_framing_intent_has_custom_attr ( const fdl_framing_intent_t h,
const char *  name 
)

Check if a custom attribute exists.

Returns
FDL_TRUE or FDL_FALSE.

◆ fdl_framing_intent_get_custom_attr_type()

fdl_custom_attr_type_t fdl_framing_intent_get_custom_attr_type ( const fdl_framing_intent_t h,
const char *  name 
)

Get the type of a custom attribute.

Returns
FDL_CUSTOM_ATTR_TYPE_* constant.

◆ fdl_framing_intent_remove_custom_attr()

int fdl_framing_intent_remove_custom_attr ( fdl_framing_intent_t h,
const char *  name 
)

Remove a custom attribute.

Returns
0 if removed, -1 if not found.

◆ fdl_framing_intent_custom_attr_name_at()

const char * fdl_framing_intent_custom_attr_name_at ( const fdl_framing_intent_t h,
uint32_t  index 
)

Get name of custom attribute at index (without '_' prefix).

Returns
Thread-local pointer, or NULL.

◆ fdl_framing_intent_set_custom_attr_point_f64()

int fdl_framing_intent_set_custom_attr_point_f64 ( fdl_framing_intent_t h,
const char *  name,
fdl_point_f64_t  value 
)

Set a point_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_intent_get_custom_attr_point_f64()

int fdl_framing_intent_get_custom_attr_point_f64 ( const fdl_framing_intent_t h,
const char *  name,
fdl_point_f64_t out 
)

Get a point_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_intent_set_custom_attr_dims_f64()

int fdl_framing_intent_set_custom_attr_dims_f64 ( fdl_framing_intent_t h,
const char *  name,
fdl_dimensions_f64_t  value 
)

Set a dims_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_intent_get_custom_attr_dims_f64()

int fdl_framing_intent_get_custom_attr_dims_f64 ( const fdl_framing_intent_t h,
const char *  name,
fdl_dimensions_f64_t out 
)

Get a dims_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_framing_intent_set_custom_attr_dims_i64()

int fdl_framing_intent_set_custom_attr_dims_i64 ( fdl_framing_intent_t h,
const char *  name,
fdl_dimensions_i64_t  value 
)

Set a dims_i64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_framing_intent_get_custom_attr_dims_i64()

int fdl_framing_intent_get_custom_attr_dims_i64 ( const fdl_framing_intent_t h,
const char *  name,
fdl_dimensions_i64_t out 
)

Get a dims_i64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_template_set_custom_attr_string()

int fdl_canvas_template_set_custom_attr_string ( fdl_canvas_template_t h,
const char *  name,
const char *  value 
)

Set a string custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_template_set_custom_attr_int()

int fdl_canvas_template_set_custom_attr_int ( fdl_canvas_template_t h,
const char *  name,
int64_t  value 
)

Set an integer custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_template_set_custom_attr_float()

int fdl_canvas_template_set_custom_attr_float ( fdl_canvas_template_t h,
const char *  name,
double  value 
)

Set a float custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_template_set_custom_attr_bool()

int fdl_canvas_template_set_custom_attr_bool ( fdl_canvas_template_t h,
const char *  name,
int  value 
)

Set a boolean custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_template_get_custom_attr_string()

const char * fdl_canvas_template_get_custom_attr_string ( const fdl_canvas_template_t h,
const char *  name 
)

Get a string custom attribute.

Returns
Thread-local pointer, or NULL.

◆ fdl_canvas_template_get_custom_attr_int()

int fdl_canvas_template_get_custom_attr_int ( const fdl_canvas_template_t h,
const char *  name,
int64_t *  out 
)

Get an integer custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_template_get_custom_attr_float()

int fdl_canvas_template_get_custom_attr_float ( const fdl_canvas_template_t h,
const char *  name,
double *  out 
)

Get a float custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_template_get_custom_attr_bool()

int fdl_canvas_template_get_custom_attr_bool ( const fdl_canvas_template_t h,
const char *  name,
int *  out 
)

Get a boolean custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_template_has_custom_attr()

int fdl_canvas_template_has_custom_attr ( const fdl_canvas_template_t h,
const char *  name 
)

Check if a custom attribute exists.

Returns
FDL_TRUE or FDL_FALSE.

◆ fdl_canvas_template_get_custom_attr_type()

fdl_custom_attr_type_t fdl_canvas_template_get_custom_attr_type ( const fdl_canvas_template_t h,
const char *  name 
)

Get the type of a custom attribute.

Returns
FDL_CUSTOM_ATTR_TYPE_* constant.

◆ fdl_canvas_template_remove_custom_attr()

int fdl_canvas_template_remove_custom_attr ( fdl_canvas_template_t h,
const char *  name 
)

Remove a custom attribute.

Returns
0 if removed, -1 if not found.

◆ fdl_canvas_template_custom_attr_name_at()

const char * fdl_canvas_template_custom_attr_name_at ( const fdl_canvas_template_t h,
uint32_t  index 
)

Get name of custom attribute at index (without '_' prefix).

Returns
Thread-local pointer, or NULL.

◆ fdl_canvas_template_set_custom_attr_point_f64()

int fdl_canvas_template_set_custom_attr_point_f64 ( fdl_canvas_template_t h,
const char *  name,
fdl_point_f64_t  value 
)

Set a point_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_template_get_custom_attr_point_f64()

int fdl_canvas_template_get_custom_attr_point_f64 ( const fdl_canvas_template_t h,
const char *  name,
fdl_point_f64_t out 
)

Get a point_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_template_set_custom_attr_dims_f64()

int fdl_canvas_template_set_custom_attr_dims_f64 ( fdl_canvas_template_t h,
const char *  name,
fdl_dimensions_f64_t  value 
)

Set a dims_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_template_get_custom_attr_dims_f64()

int fdl_canvas_template_get_custom_attr_dims_f64 ( const fdl_canvas_template_t h,
const char *  name,
fdl_dimensions_f64_t out 
)

Get a dims_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_canvas_template_set_custom_attr_dims_i64()

int fdl_canvas_template_set_custom_attr_dims_i64 ( fdl_canvas_template_t h,
const char *  name,
fdl_dimensions_i64_t  value 
)

Set a dims_i64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_canvas_template_get_custom_attr_dims_i64()

int fdl_canvas_template_get_custom_attr_dims_i64 ( const fdl_canvas_template_t h,
const char *  name,
fdl_dimensions_i64_t out 
)

Get a dims_i64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_clip_id_set_custom_attr_string()

int fdl_clip_id_set_custom_attr_string ( fdl_clip_id_t h,
const char *  name,
const char *  value 
)

Set a string custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_clip_id_set_custom_attr_int()

int fdl_clip_id_set_custom_attr_int ( fdl_clip_id_t h,
const char *  name,
int64_t  value 
)

Set an integer custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_clip_id_set_custom_attr_float()

int fdl_clip_id_set_custom_attr_float ( fdl_clip_id_t h,
const char *  name,
double  value 
)

Set a float custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_clip_id_set_custom_attr_bool()

int fdl_clip_id_set_custom_attr_bool ( fdl_clip_id_t h,
const char *  name,
int  value 
)

Set a boolean custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_clip_id_get_custom_attr_string()

const char * fdl_clip_id_get_custom_attr_string ( const fdl_clip_id_t h,
const char *  name 
)

Get a string custom attribute.

Returns
Thread-local pointer, or NULL.

◆ fdl_clip_id_get_custom_attr_int()

int fdl_clip_id_get_custom_attr_int ( const fdl_clip_id_t h,
const char *  name,
int64_t *  out 
)

Get an integer custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_clip_id_get_custom_attr_float()

int fdl_clip_id_get_custom_attr_float ( const fdl_clip_id_t h,
const char *  name,
double *  out 
)

Get a float custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_clip_id_get_custom_attr_bool()

int fdl_clip_id_get_custom_attr_bool ( const fdl_clip_id_t h,
const char *  name,
int *  out 
)

Get a boolean custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_clip_id_has_custom_attr()

int fdl_clip_id_has_custom_attr ( const fdl_clip_id_t h,
const char *  name 
)

Check if a custom attribute exists.

Returns
FDL_TRUE or FDL_FALSE.

◆ fdl_clip_id_get_custom_attr_type()

fdl_custom_attr_type_t fdl_clip_id_get_custom_attr_type ( const fdl_clip_id_t h,
const char *  name 
)

Get the type of a custom attribute.

Returns
FDL_CUSTOM_ATTR_TYPE_* constant.

◆ fdl_clip_id_remove_custom_attr()

int fdl_clip_id_remove_custom_attr ( fdl_clip_id_t h,
const char *  name 
)

Remove a custom attribute.

Returns
0 if removed, -1 if not found.

◆ fdl_clip_id_custom_attr_name_at()

const char * fdl_clip_id_custom_attr_name_at ( const fdl_clip_id_t h,
uint32_t  index 
)

Get name of custom attribute at index (without '_' prefix).

Returns
Thread-local pointer, or NULL.

◆ fdl_clip_id_set_custom_attr_point_f64()

int fdl_clip_id_set_custom_attr_point_f64 ( fdl_clip_id_t h,
const char *  name,
fdl_point_f64_t  value 
)

Set a point_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_clip_id_get_custom_attr_point_f64()

int fdl_clip_id_get_custom_attr_point_f64 ( const fdl_clip_id_t h,
const char *  name,
fdl_point_f64_t out 
)

Get a point_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_clip_id_set_custom_attr_dims_f64()

int fdl_clip_id_set_custom_attr_dims_f64 ( fdl_clip_id_t h,
const char *  name,
fdl_dimensions_f64_t  value 
)

Set a dims_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_clip_id_get_custom_attr_dims_f64()

int fdl_clip_id_get_custom_attr_dims_f64 ( const fdl_clip_id_t h,
const char *  name,
fdl_dimensions_f64_t out 
)

Get a dims_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_clip_id_set_custom_attr_dims_i64()

int fdl_clip_id_set_custom_attr_dims_i64 ( fdl_clip_id_t h,
const char *  name,
fdl_dimensions_i64_t  value 
)

Set a dims_i64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_clip_id_get_custom_attr_dims_i64()

int fdl_clip_id_get_custom_attr_dims_i64 ( const fdl_clip_id_t h,
const char *  name,
fdl_dimensions_i64_t out 
)

Get a dims_i64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_file_sequence_set_custom_attr_string()

int fdl_file_sequence_set_custom_attr_string ( fdl_file_sequence_t h,
const char *  name,
const char *  value 
)

Set a string custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_file_sequence_set_custom_attr_int()

int fdl_file_sequence_set_custom_attr_int ( fdl_file_sequence_t h,
const char *  name,
int64_t  value 
)

Set an integer custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_file_sequence_set_custom_attr_float()

int fdl_file_sequence_set_custom_attr_float ( fdl_file_sequence_t h,
const char *  name,
double  value 
)

Set a float custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_file_sequence_set_custom_attr_bool()

int fdl_file_sequence_set_custom_attr_bool ( fdl_file_sequence_t h,
const char *  name,
int  value 
)

Set a boolean custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_file_sequence_get_custom_attr_string()

const char * fdl_file_sequence_get_custom_attr_string ( const fdl_file_sequence_t h,
const char *  name 
)

Get a string custom attribute.

Returns
Thread-local pointer, or NULL.

◆ fdl_file_sequence_get_custom_attr_int()

int fdl_file_sequence_get_custom_attr_int ( const fdl_file_sequence_t h,
const char *  name,
int64_t *  out 
)

Get an integer custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_file_sequence_get_custom_attr_float()

int fdl_file_sequence_get_custom_attr_float ( const fdl_file_sequence_t h,
const char *  name,
double *  out 
)

Get a float custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_file_sequence_get_custom_attr_bool()

int fdl_file_sequence_get_custom_attr_bool ( const fdl_file_sequence_t h,
const char *  name,
int *  out 
)

Get a boolean custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_file_sequence_has_custom_attr()

int fdl_file_sequence_has_custom_attr ( const fdl_file_sequence_t h,
const char *  name 
)

Check if a custom attribute exists.

Returns
FDL_TRUE or FDL_FALSE.

◆ fdl_file_sequence_get_custom_attr_type()

fdl_custom_attr_type_t fdl_file_sequence_get_custom_attr_type ( const fdl_file_sequence_t h,
const char *  name 
)

Get the type of a custom attribute.

Returns
FDL_CUSTOM_ATTR_TYPE_* constant.

◆ fdl_file_sequence_remove_custom_attr()

int fdl_file_sequence_remove_custom_attr ( fdl_file_sequence_t h,
const char *  name 
)

Remove a custom attribute.

Returns
0 if removed, -1 if not found.

◆ fdl_file_sequence_custom_attr_name_at()

const char * fdl_file_sequence_custom_attr_name_at ( const fdl_file_sequence_t h,
uint32_t  index 
)

Get name of custom attribute at index (without '_' prefix).

Returns
Thread-local pointer, or NULL.

◆ fdl_file_sequence_set_custom_attr_point_f64()

int fdl_file_sequence_set_custom_attr_point_f64 ( fdl_file_sequence_t h,
const char *  name,
fdl_point_f64_t  value 
)

Set a point_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_file_sequence_get_custom_attr_point_f64()

int fdl_file_sequence_get_custom_attr_point_f64 ( const fdl_file_sequence_t h,
const char *  name,
fdl_point_f64_t out 
)

Get a point_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_file_sequence_set_custom_attr_dims_f64()

int fdl_file_sequence_set_custom_attr_dims_f64 ( fdl_file_sequence_t h,
const char *  name,
fdl_dimensions_f64_t  value 
)

Set a dims_f64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_file_sequence_get_custom_attr_dims_f64()

int fdl_file_sequence_get_custom_attr_dims_f64 ( const fdl_file_sequence_t h,
const char *  name,
fdl_dimensions_f64_t out 
)

Get a dims_f64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.

◆ fdl_file_sequence_set_custom_attr_dims_i64()

int fdl_file_sequence_set_custom_attr_dims_i64 ( fdl_file_sequence_t h,
const char *  name,
fdl_dimensions_i64_t  value 
)

Set a dims_i64 custom attribute.

Returns
0 on success, -1 on type mismatch.

◆ fdl_file_sequence_get_custom_attr_dims_i64()

int fdl_file_sequence_get_custom_attr_dims_i64 ( const fdl_file_sequence_t h,
const char *  name,
fdl_dimensions_i64_t out 
)

Get a dims_i64 custom attribute.

Returns
0 on success, -1 if absent/wrong type.