Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I'm trying to implement using SANE within Scribus and I'm hitting a small snag. While the majority of the API is really simple to use, I'm having a problem with what SANE_Handle is. The sane.h header has it defined as typedef void *SANE_Handle; There are plenty of functions which require SANE_Handle, but nothing which actually sets it! According to the sane website, SANE does not require that a value of this type be a legal pointer value and an application shouldn't attempt to interpret the value of SANE_Handle. This doesn't make sense - it looks like I can quite happily send "flibble" as the handle and it makes no difference (okay, I know that's not the case...). How should I set the handle. For instance, when I obtain the device list, I have two show for my USB webcam and one for my scanner. I have to be able to set the handle to the scanner. Is it enough to set the handle to the device name or should it be set to the physical /dev/sg0 value (which is not a good idea!) TTFN Paul -- "There are four stages to any war First they ignore you, then they laugh at you Then they fight you, then YOU win." Ghandi
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.