libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
acf_file.h
Go to the documentation of this file.
1/*
2 * CDDL HEADER START
3 *
4 * This file and its contents are supplied under the terms of the
5 * Common Development and Distribution License ("CDDL"), version 1.0.
6 * You may only use this file in accordance with the terms of version
7 * 1.0 of the CDDL.
8 *
9 * A full copy of the text of the CDDL should have accompanied this
10 * source. A copy of the CDDL is also available via the Internet at
11 * http://www.illumos.org/license/CDDL.
12 *
13 * CDDL HEADER END
14 */
15/*
16 * Copyright 2023 Saso Kiselkov. All rights reserved.
17 */
27#ifndef _ACF_UTILS_ACF_FILE_H_
28#define _ACF_UTILS_ACF_FILE_H_
29
30#include <stdint.h>
31
32#include "types.h"
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38typedef struct acf_file acf_file_t;
39
40API_EXPORT acf_file_t *acf_file_read(const char *filename);
41API_EXPORT void acf_file_free(acf_file_t *acf);
42API_EXPORT const char *acf_prop_find(const acf_file_t *acf,
43 const char *prop_path);
44
45API_EXPORT int acf_file_get_version(const acf_file_t *acf);
46
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* _ACF_UTILS_ACF_FILE_H_ */
const char * acf_prop_find(const acf_file_t *acf, const char *prop_path)
Definition acf_file.c:183
void acf_file_free(acf_file_t *acf)
Definition acf_file.c:157
int acf_file_get_version(const acf_file_t *acf)
Definition acf_file.c:197
acf_file_t * acf_file_read(const char *filename)
Definition acf_file.c:71