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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Analyze audio files with audioscan.
*
* audioscan_analyze_json returns a newly allocated JSON string on success and NULL
* on hard errors, invalid input, invalid UTF-8 paths, or caught Rust panics. The
* caller owns successful return values and must free them with
* audioscan_string_free. audioscan_version returns static storage and must not be
* freed.
*/
/**
* JSON schema version. Bump only on a breaking change to the field set; new
* fields are additive and do not bump it.
*/
/**
* Analyze an audio file and return the existing audioscan JSON contract.
*
* Returns a newly allocated NUL-terminated JSON string on success. The caller
* owns the returned pointer and must release it with
* [`audioscan_string_free`]. Returns null when `path` is null, `path` is not
* valid UTF-8, the scan configuration is invalid, analysis fails, JSON
* serialization fails, or a Rust panic is caught.
*
* # Safety
* `path` must be either null or a valid pointer to a NUL-terminated C string.
*/
char *;
/**
* Free a string returned by [`audioscan_analyze_json`].
*
* Passing null is a safe no-op.
*
* # Safety
* `s` must be null or a pointer previously returned by
* [`audioscan_analyze_json`] that has not already been freed.
*/
void ;
/**
* Return audioscan's static package version string.
*
* The returned pointer has static storage duration and must not be freed.
*/
const char *;
/* AUDIOSCAN_H */