pull/948/head
Mike Black W9MDB 2022-01-23 14:43:39 -06:00
rodzic 987af84908
commit c27ef08d5a
1 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -33,7 +33,9 @@
#include <inttypes.h>
#include <time.h>
#include <sys/time.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_PTHREAD
#include <pthread.h>
#endif
@ -2358,9 +2360,13 @@ struct rig_state {
/*
* overridable fields
*/
hamlib_port_t rigport; /*!< Rig port (internal use). */
hamlib_port_t pttport; /*!< PTT port (internal use). */
hamlib_port_t dcdport; /*!< DCD port (internal use). */
// moving the hamlib_port_t to the end of rig_state and making it a pointer
// this should allow changes to hamlib_port_t without breaking shared libraries
// these will maintain a copy of the new port_t for backwards compatiblity
// to these offsets -- note these must stay until a major version update is done
hamlib_port_t rigport_deprecated; /*!< Rig port (internal use). */
hamlib_port_t pttport_deprecated; /*!< PTT port (internal use). */
hamlib_port_t dcdport_deprecated; /*!< DCD port (internal use). */
double vfo_comp; /*!< VFO compensation in PPM, 0.0 to disable */
@ -2454,6 +2460,9 @@ struct rig_state {
#ifdef HAVE_PTHREAD
pthread_mutex_t mutex_set_transaction;
#endif
hamlib_port_t *rigport; /*!< Rig port (internal use). */
hamlib_port_t *pttport; /*!< PTT port (internal use). */
hamlib_port_t *dcdport; /*!< DCD port (internal use). */
};
//! @cond Doxygen_Suppress