kopia lustrzana https://github.com/Hamlib/Hamlib
Add rig pointer to hamlib_port_t
rodzic
84fb123202
commit
dc585776fc
|
@ -2184,6 +2184,7 @@ typedef struct hamlib_port {
|
||||||
} gpio; /*!< GPIO attributes */
|
} gpio; /*!< GPIO attributes */
|
||||||
} parm; /*!< Port parameter union */
|
} parm; /*!< Port parameter union */
|
||||||
int client_port; /*!< client socket port for tcp connection */
|
int client_port; /*!< client socket port for tcp connection */
|
||||||
|
RIG *rig; /*!< our parent RIG device */
|
||||||
} hamlib_port_t;
|
} hamlib_port_t;
|
||||||
//! @endcond
|
//! @endcond
|
||||||
|
|
||||||
|
|
|
@ -694,6 +694,7 @@ int HAMLIB_API rig_open(RIG *rig)
|
||||||
|
|
||||||
caps = rig->caps;
|
caps = rig->caps;
|
||||||
rs = &rig->state;
|
rs = &rig->state;
|
||||||
|
rs->rigport.rig = rig;
|
||||||
|
|
||||||
if (strlen(rs->rigport.pathname) > 0)
|
if (strlen(rs->rigport.pathname) > 0)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue