ibEot.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /***************************************************************************
  2. lib/ibEot.c
  3. -------------------
  4. copyright : (C) 2001,2002,2003 by Frank Mori Hess
  5. email : fmhess@users.sourceforge.net
  6. ***************************************************************************/
  7. /***************************************************************************
  8. * *
  9. * This program is free software; you can redistribute it and/or modify *
  10. * it under the terms of the GNU General Public License as published by *
  11. * the Free Software Foundation; either version 2 of the License, or *
  12. * (at your option) any later version. *
  13. * *
  14. ***************************************************************************/
  15. #include "ib_internal.h"
  16. #include <sys/ioctl.h>
  17. void internal_ibeot( ibConf_t *conf, int send_eoi )
  18. {
  19. if(send_eoi)
  20. conf->settings.send_eoi = 1;
  21. else
  22. conf->settings.send_eoi = 0;
  23. }
  24. int ibeot( int ud, int send_eoi )
  25. {
  26. ibConf_t *conf;
  27. conf = general_enter_library( ud, 1, 0 );
  28. if( conf == NULL )
  29. return general_exit_library( ud, 1, 0, 0, 0, 0, 1 );
  30. internal_ibeot( conf, send_eoi );
  31. return general_exit_library( ud, 0, 0, 0, 0, 0, 1 );
  32. }