diff options
author | Andreas Pehrson <[email protected]> | 2024-06-13 20:37:00 +0200 |
---|---|---|
committer | Andreas Pehrson <[email protected]> | 2024-06-14 01:32:12 +0200 |
commit | 667fb710d31ab624e7e9893eceb1b7738372c964 (patch) | |
tree | 0af7db5a4de7344f1de71882054bc48be903a64e /src/android | |
parent | 42cf7061fcea5fd6178d6affe27da4a388346bda (diff) | |
download | cubeb-667fb710d31ab624e7e9893eceb1b7738372c964.tar.gz cubeb-667fb710d31ab624e7e9893eceb1b7738372c964.zip |
Mark functions in android headers inline
Also add an include to not depend on it being included externally.
Diffstat (limited to 'src/android')
-rw-r--r-- | src/android/cubeb-output-latency.h | 8 | ||||
-rw-r--r-- | src/android/cubeb_media_library.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/android/cubeb-output-latency.h b/src/android/cubeb-output-latency.h index 403276a..70dec8d 100644 --- a/src/android/cubeb-output-latency.h +++ b/src/android/cubeb-output-latency.h @@ -15,7 +15,7 @@ typedef struct output_latency_function output_latency_function; const int ANDROID_JELLY_BEAN_MR1_4_2 = 17; -output_latency_function * +inline output_latency_function * cubeb_output_latency_load_method(int version) { output_latency_function * ol = NULL; @@ -32,7 +32,7 @@ cubeb_output_latency_load_method(int version) return ol; } -bool +inline bool cubeb_output_latency_method_is_loaded(output_latency_function * ol) { assert(ol); @@ -43,7 +43,7 @@ cubeb_output_latency_method_is_loaded(output_latency_function * ol) return !!ol->from_lib; } -void +inline void cubeb_output_latency_unload_method(output_latency_function * ol) { if (!ol) { @@ -63,7 +63,7 @@ cubeb_output_latency_unload_method(output_latency_function * ol) extern "C" { -uint32_t +inline uint32_t cubeb_get_output_latency(output_latency_function * ol) { assert(cubeb_output_latency_method_is_loaded(ol)); diff --git a/src/android/cubeb_media_library.h b/src/android/cubeb_media_library.h index a54427b..4c02389 100644 --- a/src/android/cubeb_media_library.h +++ b/src/android/cubeb_media_library.h @@ -14,7 +14,7 @@ struct media_lib { typedef struct media_lib media_lib; -media_lib * +inline media_lib * cubeb_load_media_library() { media_lib ml = {}; @@ -46,7 +46,7 @@ cubeb_load_media_library() return rv; } -void +inline void cubeb_close_media_library(media_lib * ml) { dlclose(ml->libmedia); @@ -55,7 +55,7 @@ cubeb_close_media_library(media_lib * ml) free(ml); } -uint32_t +inline uint32_t cubeb_get_output_latency_from_media_library(media_lib * ml) { uint32_t latency = 0; |