2023-11-24 16:09:18 +00:00
|
|
|
#ifndef _BOOTSTRAP_PARSER_H
|
|
|
|
#define _BOOTSTRAP_PARSER_H
|
2023-11-23 20:31:54 +00:00
|
|
|
|
|
|
|
#include "cJSON.h"
|
|
|
|
#include "config.h"
|
2023-11-25 16:15:30 +00:00
|
|
|
#include "error.h"
|
2023-11-23 20:31:54 +00:00
|
|
|
|
2023-11-25 16:15:30 +00:00
|
|
|
/**
|
2023-11-23 20:31:54 +00:00
|
|
|
Reads in the `spec.json` file relative to the paths of the provided @Config.
|
|
|
|
|
|
|
|
A spec directory does not necessarily contain a `spec.json` file. If this file
|
|
|
|
cannot be found, the @parsed pointer is set to NULL with a success return code.
|
|
|
|
*/
|
2023-11-25 16:15:30 +00:00
|
|
|
struct Error *parse_spec_json(
|
2023-11-25 02:35:22 +00:00
|
|
|
const struct Config *const config, cJSON **parsed
|
|
|
|
);
|
2023-11-23 20:31:54 +00:00
|
|
|
|
2023-11-24 16:09:18 +00:00
|
|
|
#endif /* _BOOTSTRAP_PARSER_H */
|