complete.inc
1 /* 2 EIBD client library 3 Copyright (C) 2005-2011 Martin Koegler <mkoegler@auto.tuwien.ac.at> 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 10 In addition to the permissions in the GNU General Public License, 11 you may link the compiled version of this file into combinations 12 with other programs, and distribute those combinations without any 13 restriction coming from the use of this file. (The General Public 14 License restrictions do apply in other respects; for example, they 15 cover modification of the file, and distribution when not linked into 16 a combine executable.) 17 18 This program is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 GNU General Public License for more details. 22 23 You should have received a copy of the GNU General Public License 24 along with this program; if not, write to the Free Software 25 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 26 */ 27 28 private EIBBuffer buf; 29 private Int16 ptr1; 30 private UInt8 ptr2; 31 private UInt8 ptr3; 32 private UInt16 ptr4; 33 private EIBAddr ptr5; 34 private EIBAddr ptr6; 35 private UInt32 ptr7; 36 private int sendlen; 37 38 private delegate int complete_t (); 39 40 private complete_t complete = null; 41 42 public int 43 EIBComplete () 44 { 45 if (complete == null) 46 { 47 errno = EINVAL; 48 return -1; 49 } 50 return complete (); 51 }