|
libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
|
#include <stdint.h>#include "types.h"
Go to the source code of this file.
Functions | |
| acf_file_t * | acf_file_read (const char *filename) |
| void | acf_file_free (acf_file_t *acf) |
| const char * | acf_prop_find (const acf_file_t *acf, const char *prop_path) |
| int | acf_file_get_version (const acf_file_t *acf) |
This module contains functionality to parse and traverse X-Plane .acf files. This can be used to interrogate aircraft properties, as well as to read physics model shape outlines.
Definition in file acf_file.h.
| void acf_file_free | ( | acf_file_t * | acf | ) |
Frees the structured returned by acf_file_read().
Definition at line 157 of file acf_file.c.
| int acf_file_get_version | ( | const acf_file_t * | acf | ) |
Returns the version number of an ACF file read by acf_file_read().
Definition at line 197 of file acf_file.c.
| acf_file_t * acf_file_read | ( | const char * | filename | ) |
Reads an X-Plane .acf file and returns a structure which can be used to access its properties.
| filename | A full path to the .acf file to read. |
Definition at line 71 of file acf_file.c.
| const char * acf_prop_find | ( | const acf_file_t * | acf, |
| const char * | prop_path | ||
| ) |
Locates a property in a parsed .acf file and returns its contents.
| acf | The parsed acf file structure. |
| prop_path | A nul-terminated string containing the full path of the property in the acf file. |
Definition at line 183 of file acf_file.c.