pike.git / src / modules / SANE / sane.c

version» Context lines:

pike.git/src/modules/SANE/sane.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: sane.c,v 1.18 2003/10/13 17:42:08 grubba Exp $ + || $Id: sane.c,v 1.19 2004/02/03 10:14:21 nilsson Exp $   */      #include "config.h"      #if defined(HAVE_SANE_SANE_H) || defined(HAVE_SANE_H)   #ifdef HAVE_SANE_SANE_H   #include <sane/sane.h>   #else   #ifdef HAVE_SANE_H   #include <sane.h>
pike.git/src/modules/SANE/sane.c:32:   #include "backend.h"   #include "operators.h"   #include "module_support.h"   #include "builtin_functions.h"      #include "../Image/image.h"         #define sp Pike_sp    - RCSID("$Id: sane.c,v 1.18 2003/10/13 17:42:08 grubba Exp $"); + RCSID("$Id: sane.c,v 1.19 2004/02/03 10:14:21 nilsson Exp $");      /*! @module SANE    *!    *! This module enables access to the SANE (Scanner Access Now Easy)    *! library from pike    */      static int sane_is_inited;      struct scanner
pike.git/src/modules/SANE/sane.c:734:    sp--;       if( sane_get_select_fd( THIS->h, &fd ) )    {    free_object( rsp->o );    free_object( rsp->t );    free( rsp->buffer );    free( rsp );    Pike_error("Failed to get select fd for scanning device!\n");    } -  set_read_callback( fd, nonblocking_row_scan_callback, (void*)rsp ); +  set_read_callback( fd, (file_callback)nonblocking_row_scan_callback, +  (void*)rsp );    push_int( 0 );   }      /*! @decl void cancel_scan()    */   static void f_scanner_cancel_scan( INT32 args )   {    sane_cancel( THIS->h );   }