From baac81253b3cc2e3addbbe6e90ec2a7abb5d56fd Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 18 Jul 2023 01:47:26 +1200 Subject: Code cleanup, slight API improvement --- src/c_aao.h | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'src/c_aao.h') diff --git a/src/c_aao.h b/src/c_aao.h index d0a23a4..81f61ff 100644 --- a/src/c_aao.h +++ b/src/c_aao.h @@ -10,22 +10,23 @@ #include -int type_live(); -int type_file(); - -int sample_little_endian(); -int sample_big_endian(); -int sample_native_endian(); - -int error_no_driver(); -int error_not_file(); -int error_not_live(); -int error_bad_option(); -int error_open_device(); -int error_open_file(); -int error_file_exists(); -int error_bad_format(); -int error_fail(); +extern const int type_live; +extern const int type_file; + +extern const int sample_little_endian; +extern const int sample_big_endian; +extern const int sample_native_endian; + +extern const int error_no_driver; +extern const int error_not_file; +extern const int error_not_live; +extern const int error_bad_option; +extern const int error_open_device; +extern const int error_open_file; +extern const int error_file_exists; +extern const int error_bad_format; +extern const int error_fail; + ao_info * info_item_get(ao_info ** items, int n); -- cgit