#include "ds_ini.
h"
#include <assert.h>
#include <ctype.h>
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <iniparser.h>
/**
* @brief Extracts a configuration section from the provided INI file.
*
* All fields are required, incomplete configuration should result in a failure.
* Fields in the ini file that do not map to the output structure are to be
ignored.
*
* @param filename A string input with the path to the INI file to be parsed.
* @param key A string with the key naming the section of the INI file to be
used.
* @param out A pointer used as output on success. If a failure occurs, do not
modify the output argument.
* @return true if parsing succeeded, false on failure.
*/
C_API
bool parse_config(char const* filename, const char* key, struct config* out)
{
return false;
}
/**
* @brief Extracts a user data section from the provided INI file.
*
* All fields are required, incomplete configuration should result in a failure.
* Fields in the ini file that do not map to the output structure are to be
ignored.
*
* @param filename A string input with the path to the INI file to be parsed.
* @param key A string with the key naming the section of the INI file to be
used.
* @param out A pointer used as output on success. If a failure occurs, do not
modify the output argument.
* @return true if parsing succeeded, false on failure.
*/
C_API
bool parse_user_data(char const* filename, const char* key, struct user_data*
out)
{
return false;
}