kopia lustrzana https://gitlab.com/sane-project/backends
minor changes for genesys backend
- improve calibration file handling - big endian fixes rewritemerge-requests/1/head
rodzic
d581aec7ad
commit
b1da70e585
|
@ -1,3 +1,7 @@
|
||||||
|
2011-03-18 Stéphane Voltz <stef.dev@free.fr>
|
||||||
|
* backend/genesys_low.c backend/genesys.c : rewrite big endian fixes
|
||||||
|
for gl847/gl124 based scanners. Improve calibration cache file handling.
|
||||||
|
|
||||||
2011-03-17 Stéphane Voltz <stef.dev@free.fr>
|
2011-03-17 Stéphane Voltz <stef.dev@free.fr>
|
||||||
* backend/genesys_low.c: big endian fixes for gl847/gl124 based
|
* backend/genesys_low.c: big endian fixes for gl847/gl124 based
|
||||||
scanners. Patch by Olaf Zimmermann <oez@pt.lu> .
|
scanners. Patch by Olaf Zimmermann <oez@pt.lu> .
|
||||||
|
|
|
@ -60,13 +60,17 @@
|
||||||
|
|
||||||
#include "../include/sane/config.h"
|
#include "../include/sane/config.h"
|
||||||
|
|
||||||
#define BUILD 63
|
#define BUILD 64
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#ifdef HAVE_MKDIR
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "../include/sane/sane.h"
|
#include "../include/sane/sane.h"
|
||||||
#include "../include/sane/sanei.h"
|
#include "../include/sane/sanei.h"
|
||||||
|
@ -7140,6 +7144,7 @@ sane_open (SANE_String_Const devicename, SANE_Handle * handle)
|
||||||
to support multiple scanners of the same model, but to my
|
to support multiple scanners of the same model, but to my
|
||||||
knowledge, there is no such thing in these scanners.
|
knowledge, there is no such thing in these scanners.
|
||||||
(At least the usb serial is always "0".)
|
(At least the usb serial is always "0".)
|
||||||
|
TODO add an storedir option to genesys.conf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ptr = getenv ("HOME");
|
ptr = getenv ("HOME");
|
||||||
|
@ -7149,6 +7154,11 @@ sane_open (SANE_String_Const devicename, SANE_Handle * handle)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_MKDIR
|
||||||
|
/* make sure .sane directory exists */
|
||||||
|
sprintf (tmp_str, "%s/.sane", ptr);
|
||||||
|
mkdir(tmp_str,0700);
|
||||||
|
#endif
|
||||||
sprintf (tmp_str, "%s/.sane/%s.cal", ptr, s->dev->model->name);
|
sprintf (tmp_str, "%s/.sane/%s.cal", ptr, s->dev->model->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue