diff options
author | 2018-10-30 15:14:03 +1100 | |
---|---|---|
committer | 2018-10-30 15:14:32 +1100 | |
commit | 097c14c281388b746b4f438d38b35e37e28e3ef2 (patch) | |
tree | 8974ef4f8c98b9fdf1a3f7acc8cbd39a7e71818f | |
parent | e33eaca8a79ca7ac54f93ef7c57690c00274c54b (diff) |
Refactor function names to snd_avirt_*
Make function format more inline with alsa-lib functions
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
-rw-r--r-- | include/avirt/avirt.h | 14 | ||||
-rw-r--r-- | src/avirt-config.c | 6 | ||||
-rw-r--r-- | version.cmake | 4 |
3 files changed, 14 insertions, 10 deletions
diff --git a/include/avirt/avirt.h b/include/avirt/avirt.h index 18941fa..e8b236a 100644 --- a/include/avirt/avirt.h +++ b/include/avirt/avirt.h @@ -24,7 +24,7 @@ #define _AVIRT_H_ /** - * AVIRT_CreateStream - Create a stream in AVIRT + * snd_avirt_stream_new - Create a stream in AVIRT * @name: The name of the stream * @channels: The number of channels for the stream * @direction: The stream direction (SND_PCM_STREAM_PLAYBACK or SND_PCM_STREAM_CAPTURE) @@ -32,22 +32,22 @@ * @return: 0 on success, negative ERRNO otherwise * * Each stream creates a PCM device for the AVIRT sound card. - * Streams will not appear to the user-space until `AVIRT_SealCard()` is called. - * NOTE: Once `AVIRT_SealCard` is called, no more streams may be added. + * Streams will not appear to the user-space until `snd_avirt_card_seal()` is called. + * NOTE: Once `snd_avirt_card_seal` is called, no more streams may be added. */ -int AVIRT_CreateStream(const char *name, unsigned int channels, int direction, +int snd_avirt_stream_new(const char *name, unsigned int channels, int direction, const char *map); /** - * AVIRT_SealCard - Finalize AVIRT stream creation and register sound card + * snd_avirt_card_seal - Finalize AVIRT stream creation and register sound card * @return: 0 on success, negative ERRNO otherwise * - * This should be called once all streams have been created via `AVIRT_CreateStream()`. + * This should be called once all streams have been created via `snd_avirt_stream_new()`. * Calling this function will register the AVIRT sound card to the user-space, and will * configure all mapped lower-level Audio Paths for the given stream configuration. * configuration. * Once this function is called, no more streams may be created. */ -int AVIRT_SealCard(); +int snd_avirt_card_seal(); #endif // _AVIRT_H_ diff --git a/src/avirt-config.c b/src/avirt-config.c index db3965d..96c9cd4 100644 --- a/src/avirt-config.c +++ b/src/avirt-config.c @@ -77,8 +77,8 @@ static int mount_configfs() return err; } -int AVIRT_CreateStream(const char *name, unsigned int channels, int direction, - const char *map) +int snd_avirt_stream_new(const char *name, unsigned int channels, int direction, + const char *map) { int err; char path[AVIRT_CONFIGFS_PATH_MAXLEN]; @@ -145,7 +145,7 @@ int AVIRT_CreateStream(const char *name, unsigned int channels, int direction, return 0; } -int AVIRT_SealCard() +int snd_avirt_card_seal() { int err; char path_sealed[AVIRT_CONFIGFS_PATH_MAXLEN]; diff --git a/version.cmake b/version.cmake new file mode 100644 index 0000000..9db8240 --- /dev/null +++ b/version.cmake @@ -0,0 +1,4 @@ + +set (VERSION_MAJOR 0) +set (VERSION_MINOR 0) +set (VERSION_EXT 1) |