[Commotion-admin] [commotiond] Lua bindings (#46)

Josh King notifications at github.com
Tue Jun 24 14:18:10 EDT 2014


Hi @legontanon , that would be really great! The only API that exists right now is the C client API. Right now, this is essentially just a barebones API for connecting to a running commotion daemon instance, sending it requests, and receiving responses. You can find the API in src/commotion.h, and the doxygen documentation at https://commotionwireless.net/developer/api/commotiond/html/commotion_8h.html. That might be a good starting point. 

Eventually, we'd like to add support for the language bindings directly. For instance, the commotion daemon supports a number of different commands, some of which are built in and some of which are loaded from plugins. In order to call any of them right now, you would use the client API to marshal the command and its arguments, and then receive the result back. However, a binding in a language like lua could actually directly have functions for things like getting configuration values, signing keys, etc. Those functions would then use the C client API on the backend.

Additionally, we're also working on a 'core API,' which would involve splitting out the libcommotion 'standard library' from the daemon, and consolidating its headers into a structured API for using it's functionality, like network abstraction and JSON serialization/deserialization. It's a little bit further out, so it's not as certain what that would look like.

---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/commotiond/issues/46#issuecomment-47009235
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20140624/684e8558/attachment.html>


More information about the Commotion-admin mailing list