[sane-devel] How to pass a SANE_Handle through a Language Binding (both ways)

dougf at people.net.au dougf at people.net.au
Tue Jul 6 05:23:09 UTC 2010


 I am writing a SANE binding for the Harbour language.  sane_open returns
a pointer to a SANE_Handle which needs to be used in subsequent calls. 
SANE_Handle is void *. I need to be able to pass this in both directions
through my binding.  Should I be casting the SANE_Handle to a ulong for
this purpose?

 Thanks for any advice you can give
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20100706/4d5fb5ce/attachment.htm>


More information about the sane-devel mailing list