/* autogenerated file */
#ifndef IMAGE_MANIFEST_ITEMS_SCHEMA_H
# define IMAGE_MANIFEST_ITEMS_SCHEMA_H

# include <sys/types.h>
# include <stdint.h>
# include "json_common.h"

typedef struct {
    char *config;
    char **layers;
    size_t layers_len;

    char **repo_tags;
    size_t repo_tags_len;

    char *parent;
}
image_manifest_items_element;

void free_image_manifest_items_element (image_manifest_items_element *ptr);

image_manifest_items_element *make_image_manifest_items_element (yajl_val tree, struct parser_context *ctx, parser_error *err);

void free_image_manifest_items (image_manifest_items_element **ptr, size_t len);

image_manifest_items_element **image_manifest_items_parse_file (const char *filename, struct parser_context *ctx, parser_error *err, size_t *len);

image_manifest_items_element **image_manifest_items_parse_file_stream (FILE *stream, struct parser_context *ctx, parser_error *err, size_t *len);

image_manifest_items_element **image_manifest_items_parse_data (const char *jsondata, struct parser_context *ctx, parser_error *err, size_t *len);

char *image_manifest_items_generate_json (image_manifest_items_element **ptr, size_t len, struct parser_context *ctx, parser_error *err);

#endif
