I wrote a quick tool that connects to the socket, and does "stuff" when events happen.
I'm playing with using it like this:
To display an OSD that shows current time in the song, and to post a notification whenever the music state changes.
You could use it to do other things quite easily.
I created the mocevents.c file in the source tree, and did:
Would you like to have a look at the contributions section of the MOC website and come up with an appropriate description for this? Placing the build intructions as a comment in the code might also be a good idea.
When you're ready, please e-mail it to mocmaint with the source as a compressed attachment.
Pierre
Fri, 2019-08-23 07:02
Permalink
I should have probably posted
I should have probably posted the contents of mocevents.c too:
jcf
Fri, 2019-08-23 08:39
Permalink
Sounds Like A Contribution To Me
Would you like to have a look at the contributions section of the MOC website and come up with an appropriate description for this? Placing the build intructions as a comment in the code might also be a good idea.
When you're ready, please e-mail it to mocmaint with the source as a compressed attachment.
Pierre
Fri, 2019-08-23 15:55
Permalink
Will do.
Will do.