aboutsummaryrefslogtreecommitdiff
path: root/Sources/source_protocol.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Sources/source_protocol.swift')
-rw-r--r--Sources/source_protocol.swift5
1 files changed, 5 insertions, 0 deletions
diff --git a/Sources/source_protocol.swift b/Sources/source_protocol.swift
new file mode 100644
index 0000000..0885994
--- /dev/null
+++ b/Sources/source_protocol.swift
@@ -0,0 +1,5 @@
+// All sources should comply with this protocol. The currentTrack computed
+// property will return a track if the conditions are met
+protocol Source {
+ var currentTrack: Track? { get }
+}