On 12/13/06, Matthew Percival <[EMAIL PROTECTED]> wrote:
G'Day,
I am looking to create a Lua interface to owlib --- effectively
owlua.
I would need to do this as a simple C library that makes the appropriate
calls, however, I have not been able to find any documentation that
would help with this. owcapi seems like it would be something similar
to what I would need to do, so would I be able to use this as a
basis/guide to make owlua, or would that be a bad idea (incomplete, out
of date, etc)?
OWCAPI should work well. It is current. It's a thin wrapper over owlib (the
main part of OWFS) so your lua module will be a full OWFS prograsm, able to
talk to multiple adapters, owservers, and with local caching).
owtcl uses the owcapi approach.
If owcapi is fine, I assume the key functions owlua needs are
init(),
get(), put() and finish(). I see owcapi also has OW_init_string(), but
I am unsure as to what its purpose is, or if I would need an equivilent
function for owlua.
init and init_string are equivalent. The only difference is the style that
you want to send the invokation parameters: one long text string
(_init_string e.g. "-F -d /dev/ttyS0 --link=/dev/ttyS1") or the traditional
unix-style array of text strings (_init e.g.
{"progname","-F","-d","/dev/ttyS0","--link=/dev/ttyS1"}
If owcapi is insufficient, is there anywhere I could get find a
guide
to what would be necessary, or perhaps a owlib API summary?
That's essentially what owcapi is.
-- Matthew
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers