parse_hooks()

parse_hooks()#

parse_hooks() processes the schema to extract and validate hook definitions.

Prototype

int parse_hooks(
    json_t *schema  // not owned
);

Parameters

Key

Type

Description

schema

json_t *

A JSON object representing the schema; it is not owned by the function.


Return Value

Returns 0 on success or a negative number if an error occurs during parsing.

Notes

This function ensures that hooks in the schema are correctly defined and structured.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples