/* Hey EMACS -*- linux-c -*- */ /* libcalccables - link cable library, a part of the CalcForge project * Copyright (C) 1999-2005 Romain Lievin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef CALCCABLES_ERROR_H #define CALCCABLES_ERROR_H /* Error codes must begin at 0 up to 255 */ typedef enum { ERR_NO_ERROR = 0, // No error (returns 0) ERR_BUSY, ERR_ILLEGAL_ARG, ERR_READ_ERROR, ERR_READ_TIMEOUT=4, // exported in calccables.h ERR_WRITE_ERROR, ERR_WRITE_TIMEOUT=6, // exported in calccables.h ERR_PROBE_FAILED, ERR_FLUSH_ERROR, ERR_GRY_CREATEFILE, ERR_GRY_SETUPCOMM, //10 ERR_GRY_GETCOMMSTATE, ERR_GRY_SETCOMMSTATE, ERR_GRY_GETCOMMTIMEOUT, ERR_GRY_SETCOMMTIMEOUT, ERR_GRY_PURGECOMM, ERR_GRY_SETCOMMMASK, ERR_LIBUSBWIN32_NOT_PRESENT, ERR_FREE2, ERR_FREE3, ERR_DHA_NOT_FOUND, //20 ERR_RWP_NOT_FOUND, ERR_FREE6, ERR_VTI_FINDWINDOW, // open ERR_VTI_OPENFILEMAPPING, ERR_VTI_MAPVIEWOFFILE, ERR_TIE_OPENFILEMAPPING, //open ERR_TIE_MAPVIEWOFFILE, ERR_VTI_IPCKEY, //open ERR_VTI_SHMGET, ERR_VTI_SHMAT, //30 ERR_VTI_SHMDT, //close ERR_VTI_SHMCTL, ERR_TIE_OPEN, //open ERR_TIE_CLOSE, ERR_GRY_OPEN, ERR_GRY_IOCTL, ERR_LIBUSB_OPEN, ERR_LIBUSB_CLAIM, ERR_LIBUSB_CONFIG, ERR_LIBUSB_RESET, //40 ERR_FREE7, ERR_ROOT, ERR_TTDEV, ERR_PPDEV, ERR_USBFS, ERR_TTY_OPEN, ERR_TTY_IOCTL, ERR_PPT_OPEN, ERR_PPT_IOCTL, ERR_NO_CABLE = 50, //50 ERR_NOT_OPEN, } CableError; #endif