Blame yaml-filter/yaml-path.h
|
Packit |
517ee8 |
#ifndef YAML_PATH_H
|
|
Packit |
517ee8 |
#define YAML_PATH_H
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
#include <yaml.h>
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
typedef struct yaml_path yaml_path_t;
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
typedef enum yaml_path_error_type {
|
|
Packit |
517ee8 |
YAML_PATH_ERROR_NONE,
|
|
Packit |
517ee8 |
YAML_PATH_ERROR_PARSE,
|
|
Packit |
517ee8 |
} yaml_path_error_type_t;
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
typedef struct yaml_path_error {
|
|
Packit |
517ee8 |
yaml_path_error_type_t type;
|
|
Packit |
517ee8 |
const char *message;
|
|
Packit |
517ee8 |
const char *context;
|
|
Packit |
517ee8 |
size_t pos;
|
|
Packit |
517ee8 |
} yaml_path_error_t;
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
typedef enum yaml_path_filter_mode {
|
|
Packit |
517ee8 |
YAML_PATH_FILTER_RETURN_ALL,
|
|
Packit |
517ee8 |
YAML_PATH_FILTER_RETURN_SHALLOW,
|
|
Packit |
517ee8 |
} yaml_path_filter_mode_t;
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
yaml_path_t*
|
|
Packit |
517ee8 |
yaml_path_create (void);
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
int
|
|
Packit |
517ee8 |
yaml_path_parse (yaml_path_t *path, char *s_path);
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
void
|
|
Packit |
517ee8 |
yaml_path_destroy (yaml_path_t *path);
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
const yaml_path_error_t*
|
|
Packit |
517ee8 |
yaml_path_error_get (yaml_path_t *path);
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
int
|
|
Packit |
517ee8 |
yaml_path_filter_event (yaml_path_t *path, yaml_parser_t *parser, yaml_event_t *event, yaml_path_filter_mode_t mode);
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
size_t
|
|
Packit |
517ee8 |
yaml_path_snprint (yaml_path_t *path, char *s, size_t max_len);
|
|
Packit |
517ee8 |
|
|
Packit |
517ee8 |
#endif//YAML_PATH_H
|
|
Packit |
517ee8 |
|