have you read the sane spec? the backend will return SANE_STATUS_EOF from sane_read() when it has sent all the data for that frame. If it is a multi-frame image, the frontend should read the remaining frames until EOF as well. Then, it is up to the front-end to decide if it wants to operate in a batch mode (as for an adf scan), by calling sane_start and looping on sane_read again.
you have not given enough information about what you are trying to do for me to comment further... allan 2009/1/6 Dhi Aurrahman <dio.rahman at gmail.com>: > Dear all! > > I would like to know if it is possible to get the *event* when the scanner > is finished scanning. > Where should I "trap" the event? in the backend or frontend? > > Thanks for the help! > > Best, > > Dio > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > to sane-devel-request at lists.alioth.debian.org > -- "The truth is an offense, but not a sin"
