Rename struct rig so s_rig and struct rot to s_rot

This avoids name collision with swig bindings for Rig and Rot classes
This is a harmless change as these are use as RIG and ROT anyways
pull/224/head
Michael Black 2020-03-13 23:55:44 -05:00
rodzic e51f16d7e7
commit a60d1c315d
2 zmienionych plików z 5 dodań i 6 usunięć

Wyświetl plik

@ -162,7 +162,7 @@ struct rig_state;
/**
* \brief Rig structure definition (see rig for details).
*/
typedef struct rig RIG;
typedef struct s_rig RIG;
#define RIGNAMSIZ 30
#define RIGVERSIZ 8
@ -1854,7 +1854,7 @@ struct rig_callbacks {
*
* \sa rig_init(), rig_caps(), rig_state()
*/
struct rig {
struct s_rig {
struct rig_caps *caps; /*!< Pointer to rig capabilities (read only) */
struct rig_state state; /*!< Rig state */
struct rig_callbacks callbacks; /*!< registered event callbacks */

Wyświetl plik

@ -52,7 +52,7 @@ struct rot_state;
* \typedef typedef struct rot ROT
* \brief Rotator structure definition (see rot for details).
*/
typedef struct rot ROT;
typedef struct s_rot ROT;
/**
@ -220,7 +220,6 @@ typedef enum {
struct rot_caps {
rot_model_t rot_model; /*!< Rotator model. */
const char *model_name; /*!< Model name. */
const char *macro_name; /*!< Macro name. */
const char *mfg_name; /*!< Manufacturer. */
const char *version; /*!< Driver version. */
const char *copyright; /*!< Copyright info. */
@ -256,7 +255,6 @@ struct rot_caps {
const struct confparams *cfgparams; /*!< Configuration parametres. */
const rig_ptr_t priv; /*!< Private data. */
const char *rot_model_macro_name; /*!< Model macro name */
/*
* Rot Admin API
@ -287,6 +285,7 @@ struct rot_caps {
/* get firmware info, etc. */
const char * (*get_info)(ROT *rot);
const char *macro_name; /*!< Macro name. */
/* more to come... */
};
@ -339,7 +338,7 @@ struct rot_state {
*
* \sa rot_init(), rot_caps(), rot_state()
*/
struct rot {
struct s_rot {
struct rot_caps *caps; /*!< Rotator caps. */
struct rot_state state; /*!< Rotator state. */
};