From cdab2cce539d52924a797015636cead1944e5655 Mon Sep 17 00:00:00 2001 From: "Thomas Beierlein, DL1JBE" Date: Sat, 25 Oct 2008 11:36:02 +0000 Subject: [PATCH] Dropped RIG_STATUS_NEW from enum of possible backend states in rig.h. Mapped all RIG_STATUS_NEW requests from existing applications to RIG_STATUS_UNTESTED for backward compatibility. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2418 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- include/hamlib/rig.h | 10 ++++++++-- src/misc.c | 4 +--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 07754a65a..e5b08598c 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -2,7 +2,7 @@ * Hamlib Interface - API header * Copyright (c) 2000-2008 by Stephane Fillod and Frank Singleton * - * $Id: rig.h,v 1.127 2008-05-04 21:15:16 fillods Exp $ + * $Id: rig.h,v 1.128 2008-10-25 11:36:02 y32kn 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 @@ -236,9 +236,15 @@ enum rig_status_e { RIG_STATUS_BETA, /*!< Beta quality */ RIG_STATUS_STABLE, /*!< Stable */ RIG_STATUS_BUGGY, /*!< Was stable, but something broke it! */ - RIG_STATUS_NEW /*!< Initial release of code */ +/* RIG_STATUS_NEW * *!< Initial release of code + * !! Use of RIG_STATUS_NEW is deprecated. Do not use it anymore */ }; +/* + * Map all RIG_STATUS_NEW references to RIG_STATUS_UNTESTED for backward compatibility + */ +#define RIG_STATUS_NEW RIG_STATUS_UNTESTED + /** * \brief Repeater shift type */ diff --git a/src/misc.c b/src/misc.c index a74c5e35f..870a54ee9 100644 --- a/src/misc.c +++ b/src/misc.c @@ -2,7 +2,7 @@ * Hamlib Interface - toolbox * Copyright (c) 2000-2005 by Stephane Fillod * - * $Id: misc.c,v 1.47 2008-05-04 21:15:17 fillods Exp $ + * $Id: misc.c,v 1.48 2008-10-25 11:36:02 y32kn 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 @@ -248,8 +248,6 @@ const char * HAMLIB_API rig_strstatus(enum rig_status_e status) return "Stable"; case RIG_STATUS_BUGGY: return "Buggy"; - case RIG_STATUS_NEW: - return "New"; } return ""; }