sand 0.0.2

A D interface to sane (Scanner Access Now D)


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

SAND

Build Status

Scanner Access Now D

SAND provides a D interface to the SANE (Scanner Access Now Easy) C API. The interface is designed to be easy to read and safe to use.

d
// Initialise sane interface
auto sane = new Sane();
    
// Find all devices
auto devices = sane.devices();
    
// List all options for a device
if(devices.length) {
    auto options = devices[0].options;
    foreach(option; options) {
        writeln(option);
    }
}

To test the code enable the "test" driver in /etc/sane.d/dll.conf (or system equivelent)

Authors:
  • Duncan Paterson
Dependencies:
none
Versions:
0.0.7 2018-Jul-30
0.0.6 2018-Jul-29
0.0.5 2018-Mar-21
0.0.4 2018-Mar-14
0.0.3 2018-Mar-13
Show all 8 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 16 downloads total

Score:
0.4
Short URL:
sand.dub.pm