summaryrefslogtreecommitdiff
path: root/src/c_aao.c
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2023-07-18 01:47:26 +1200
committerJedidiah Barber <contact@jedbarber.id.au>2023-07-18 01:47:26 +1200
commitbaac81253b3cc2e3addbbe6e90ec2a7abb5d56fd (patch)
tree88cb63624bcae8f944d670640094873a55610823 /src/c_aao.c
parentc36d37880986f734a69086b28ac6f0e9df7babab (diff)
Code cleanup, slight API improvement
Diffstat (limited to 'src/c_aao.c')
-rw-r--r--src/c_aao.c75
1 files changed, 16 insertions, 59 deletions
diff --git a/src/c_aao.c b/src/c_aao.c
index 731792d..7c6fe8d 100644
--- a/src/c_aao.c
+++ b/src/c_aao.c
@@ -9,65 +9,22 @@
-int type_live() {
- return AO_TYPE_LIVE;
-}
-
-int type_file() {
- return AO_TYPE_FILE;
-}
-
-
-
-int sample_little_endian() {
- return AO_FMT_LITTLE;
-}
-
-int sample_big_endian() {
- return AO_FMT_BIG;
-}
-
-int sample_native_endian() {
- return AO_FMT_NATIVE;
-}
-
-
-
-int error_no_driver() {
- return AO_ENODRIVER;
-}
-
-int error_not_file() {
- return AO_ENOTFILE;
-}
-
-int error_not_live() {
- return AO_ENOTLIVE;
-}
-
-int error_bad_option() {
- return AO_EBADOPTION;
-}
-
-int error_open_device() {
- return AO_EOPENDEVICE;
-}
-
-int error_open_file() {
- return AO_EOPENFILE;
-}
-
-int error_file_exists() {
- return AO_EFILEEXISTS;
-}
-
-int error_bad_format() {
- return AO_EBADFORMAT;
-}
-
-int error_fail() {
- return AO_EFAIL;
-}
+const int type_live = AO_TYPE_LIVE;
+const int type_file = AO_TYPE_FILE;
+
+const int sample_little_endian = AO_FMT_LITTLE;
+const int sample_big_endian = AO_FMT_BIG;
+const int sample_native_endian = AO_FMT_NATIVE;
+
+const int error_no_driver = AO_ENODRIVER;
+const int error_not_file = AO_ENOTFILE;
+const int error_not_live = AO_ENOTLIVE;
+const int error_bad_option = AO_EBADOPTION;
+const int error_open_device = AO_EOPENDEVICE;
+const int error_open_file = AO_EOPENFILE;
+const int error_file_exists = AO_EFILEEXISTS;
+const int error_bad_format = AO_EBADFORMAT;
+const int error_fail = AO_EFAIL;