-
Notifications
You must be signed in to change notification settings - Fork 2
/
food.h
36 lines (26 loc) · 818 Bytes
/
food.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef food_H_INCLUDED
#define food_H_INCLUDED
/**
* \file
* \brief Simple XML parser demo
* \author Nandkishor Biradar
* \date 18 April 2021
* Copyright (c) 2019-2022 Nandkishor Biradar
* https://github.com/kiishor
* Distributed under the MIT License, (See accompanying
* file LICENSE or copy at https://mit-license.org/)
*/
#include <stdint.h>
#include <stdbool.h>
#include "parse_xml.h"
//! Structure to hold XML content
typedef struct
{
char* name; //!< Holds content of name XML element
float price; //!< Holds content of price XML element
char* description; //!< Holds content of description XML element
uint32_t calories; //!< Holds content of calories XML element
}food_t;
extern food_t waffle;
extern const xs_element_t food_root;
#endif