diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index bac7a09a5..ade3192a6 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -2,7 +2,7 @@ * Hamlib Interface - API header * Copyright (c) 2000-2002 by Stephane Fillod and Frank Singleton * - * $Id: rig.h,v 1.71 2002-11-12 00:15:01 fillods Exp $ + * $Id: rig.h,v 1.72 2002-11-28 22:38:06 fillods Exp $ * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as @@ -77,22 +77,23 @@ extern HAMLIB_EXPORT_VAR(const char) hamlib_copyright[]; /* * Error codes that can be returned by the Hamlib functions */ -#define RIG_OK 0 /* completed sucessfully */ -#define RIG_EINVAL 1 /* invalid parameter */ -#define RIG_ECONF 2 /* invalid configuration (serial,..) */ -#define RIG_ENOMEM 3 /* memory shortage */ -#define RIG_ENIMPL 4 /* function not implemented, but will be */ -#define RIG_ETIMEOUT 5 /* communication timed out */ -#define RIG_EIO 6 /* IO error, including open failed */ -#define RIG_EINTERNAL 7 /* Internal Hamlib error, huh! */ -#define RIG_EPROTO 8 /* Protocol error */ -#define RIG_ERJCTED 9 /* Command rejected by the rig */ -#define RIG_ETRUNC 10 /* Command performed, but arg truncated */ -#define RIG_ENAVAIL 11 /* function not available */ -#define RIG_ENTARGET 12 /* VFO not targetable */ -#define RIG_BUSERROR 13 /* Error talking on the bus */ -#define RIG_BUSBUSY 14 /* Collision on the bus */ - +enum rig_errcode_e { + RIG_OK, /*