added new error codes, as suggested by Nate

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1605 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.0
Stéphane Fillod, F8CFE 2003-11-19 07:32:10 +00:00
rodzic a57b36e153
commit b1017566bc
2 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Interface - API header * Hamlib Interface - API header
* Copyright (c) 2000-2003 by Stephane Fillod and Frank Singleton * Copyright (c) 2000-2003 by Stephane Fillod and Frank Singleton
* *
* $Id: rig.h,v 1.88 2003-11-16 17:36:15 fillods Exp $ * $Id: rig.h,v 1.89 2003-11-19 07:32:10 fillods Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as * it under the terms of the GNU Library General Public License as
@ -91,7 +91,10 @@ enum rig_errcode_e {
RIG_ENAVAIL, /*<! function not available */ RIG_ENAVAIL, /*<! function not available */
RIG_ENTARGET, /*<! VFO not targetable */ RIG_ENTARGET, /*<! VFO not targetable */
RIG_BUSERROR, /*<! Error talking on the bus */ RIG_BUSERROR, /*<! Error talking on the bus */
RIG_BUSBUSY /*<! Collision on the bus */ RIG_BUSBUSY, /*<! Collision on the bus */
RIG_EARG, /*<! NULL RIG handle or any invalid pointer parameter in get arg */
RIG_EVFO, /*<! Invalid VFO */
RIG_EDOM /*<! Argument out of domain of func */
}; };
/** /**

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Interface - main file * Hamlib Interface - main file
* Copyright (c) 2000-2003 by Stephane Fillod and Frank Singleton * Copyright (c) 2000-2003 by Stephane Fillod and Frank Singleton
* *
* $Id: rig.c,v 1.78 2003-11-16 17:14:44 fillods Exp $ * $Id: rig.c,v 1.79 2003-11-19 07:32:10 fillods Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as * it under the terms of the GNU Library General Public License as
@ -120,6 +120,9 @@ static const char *rigerror_table[] = {
"Target VFO unaccessible", "Target VFO unaccessible",
"Communication bus error", "Communication bus error",
"Communication bus collision", "Communication bus collision",
"NULL RIG handle or invalid pointer parameter",
"Invalid VFO",
"Argument out of domain of func",
NULL, NULL,
}; };