Add Inter-Process Communication

This commit is contained in:
visionmercer 2026-06-23 10:21:17 +02:00
commit 19bf4b5288
4 changed files with 423 additions and 1 deletions

12
todo.md Normal file
View file

@ -0,0 +1,12 @@
# todo
## ipc
add ipc functionality so it's possible while the program runs to:
- play next and previous track with `cimp --next` and `cimp --prev`
- change volume with `cimp --volume xx`
- add file to playlist with `cimp --add filename.ext`
- if started without `--add` it should clear the playlist and load and play the given file or playlist.
- if given the flag `--playlist` it should output the song array as a playlist.
the c functions are ready in terminkey.h and an example of how it works is found in test_ipc.bas
## recurcive add all music in folder