kopia lustrzana https://gitlab.com/sane-project/backends
Use Debug level 1 for library errors so that nothing is printed when no
camera is connected.merge-requests/1/head
rodzic
8b2de7255e
commit
bf413cce1c
|
@ -1,12 +1,12 @@
|
||||||
/* Please note! This is extremely alpha code, and is really intended as
|
/* Please note! Although intended to support multiple camera types
|
||||||
* a "proof of concept" since I don't yet know whether it's going to
|
* it's been tested with only cameras I have access to: the Kodak DC240
|
||||||
* to be practical and/or possible to implement a the complete backend.
|
|
||||||
* It's also been tested with only cameras I have access to: the Kodak DC240
|
|
||||||
* and the Directory Browse "camera." I'm very interested
|
* and the Directory Browse "camera." I'm very interested
|
||||||
* in learning what it would take to support more cameras. In
|
* in learning what it would take to support more cameras. In
|
||||||
* particular, the current incarnation will only support cameras
|
* particular, the current incarnation will only support cameras
|
||||||
* that directly generate jpeg files.
|
* that directly generate jpeg files.
|
||||||
*
|
*
|
||||||
|
* Please report sucesses or failures using this backend!
|
||||||
|
*
|
||||||
* However, having said that, I've already found it to be quite useful
|
* However, having said that, I've already found it to be quite useful
|
||||||
* even in its current form - one reason is that gphoto2 provides access
|
* even in its current form - one reason is that gphoto2 provides access
|
||||||
* to the camera via USB which is not supported by the regular DC240
|
* to the camera via USB which is not supported by the regular DC240
|
||||||
|
@ -106,8 +106,7 @@
|
||||||
#include <gphoto2-camera.h>
|
#include <gphoto2-camera.h>
|
||||||
#include <gphoto2-port-log.h>
|
#include <gphoto2-port-log.h>
|
||||||
|
|
||||||
#define CHECK_EXIT(f) {int res = f; if (res < 0) {DBG (0,"ERROR: %s\n", gp_result_as_string (res)); return (SANE_STATUS_INVAL);}}
|
#define CHECK_RET(f) {int res = f; if (res < 0) {DBG (1,"ERROR: %s\n", gp_result_as_string (res)); return (SANE_STATUS_INVAL);}}
|
||||||
#define CHECK_RET(f) {int res = f; if (res < 0) {DBG (0,"ERROR: %s\n", gp_result_as_string (res)); return (SANE_STATUS_INVAL);}}
|
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
#ifndef PATH_MAX
|
||||||
# define PATH_MAX 1024
|
# define PATH_MAX 1024
|
||||||
|
|
Ładowanie…
Reference in New Issue