Function yaml_stream_start_event_initialize

Synopsis

#include <include/yaml.h>

int yaml_stream_start_event_initialize(yaml_event_t *event, yaml_encoding_t encoding)

Description

Create the STREAM-START event.

Parameters:

[ out ] event - An empty event object.

[ in ] encoding - The stream encoding.

Return
1 if the function succeeded, 0 on error.
Create STREAM-START.

Mentioned in

Source

Lines 668-679 in src/api.c. Line 490 in include/yaml.h.

YAML_DECLARE(int)
yaml_stream_start_event_initialize(yaml_event_t *event,
        yaml_encoding_t encoding)
{
    yaml_mark_t mark = { 0, 0, 0 };

    assert(event);  /* Non-NULL event object is expected. */

    STREAM_START_EVENT_INIT(*event, encoding, mark, mark);

    return 1;
}





Add Discussion as Guest

Log in to DocsForge