summaryrefslogtreecommitdiffstats
path: root/core_internal.h
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-07 21:52:53 +1100
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-26 17:27:37 +1100
commitf834eb7b0799a4678639d2a9f71c1dc4352469ce (patch)
tree0be207d5be59bdbbd0560ba96cb03caecc9da71b /core_internal.h
parentaeb43d0374f4b1fb383da088b198de55f139a280 (diff)
Move 'streams_sealed' to avirt_core
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'core_internal.h')
-rw-r--r--core_internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core_internal.h b/core_internal.h
index 3639d6e..e7bea07 100644
--- a/core_internal.h
+++ b/core_internal.h
@@ -20,6 +20,7 @@ struct avirt_core {
struct class *avirt_class;
struct config_group *stream_group;
unsigned int stream_count;
+ bool streams_sealed;
};
int __init __avirt_configfs_init(struct avirt_core *core);
@@ -32,6 +33,13 @@ void __exit __avirt_configfs_exit(struct avirt_core *core);
int __avirt_card_register(void);
/**
+ * __avirt_streams_sealed - Check whether the streams have been sealed or not
+ * @return: true if sealed, false otherwise
+ */
+bool __avirt_streams_sealed(void);
+
+/**
+/**
* __avirt_stream_find_by_device - Get audio stream from device number
* @device: The PCM device number corresponding to the desired stream
* @return: The audio stream if found, or an error pointer otherwise