hamlib 0.3.3 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -271,6 +271,14 @@ SHIM_API int shim_rig_get_vfo(hamlib_shim_handle_t h, int* vfo) {
271
271
  return ret;
272
272
  }
273
273
 
274
+ SHIM_API int shim_rig_parse_vfo(const char* vfo_str) {
275
+ return (int)rig_parse_vfo(vfo_str);
276
+ }
277
+
278
+ SHIM_API const char* shim_rig_strvfo(int vfo) {
279
+ return rig_strvfo((vfo_t)vfo);
280
+ }
281
+
274
282
  /* ===== Mode control ===== */
275
283
 
276
284
  SHIM_API int shim_rig_set_mode(hamlib_shim_handle_t h, int vfo, int mode, int width) {
@@ -48,7 +48,7 @@ typedef void* hamlib_shim_handle_t;
48
48
 
49
49
  /* VFO constants */
50
50
  #define SHIM_RIG_VFO_NONE 0
51
- #define SHIM_RIG_VFO_CURR ((int)0x40000000) /* RIG_VFO_CURR */
51
+ #define SHIM_RIG_VFO_CURR ((int)(1u<<29)) /* RIG_VFO_CURR */
52
52
  #define SHIM_RIG_VFO_MEM ((int)0x10000000) /* RIG_VFO_MEM */
53
53
  #define SHIM_RIG_VFO_A ((int)(1<<0)) /* RIG_VFO_A */
54
54
  #define SHIM_RIG_VFO_B ((int)(1<<1)) /* RIG_VFO_B */
@@ -408,6 +408,8 @@ SHIM_API int shim_rig_get_freq(hamlib_shim_handle_t h, int vfo, double* freq);
408
408
 
409
409
  SHIM_API int shim_rig_set_vfo(hamlib_shim_handle_t h, int vfo);
410
410
  SHIM_API int shim_rig_get_vfo(hamlib_shim_handle_t h, int* vfo);
411
+ SHIM_API int shim_rig_parse_vfo(const char* vfo_str);
412
+ SHIM_API const char* shim_rig_strvfo(int vfo);
411
413
 
412
414
  /* ===== Mode control ===== */
413
415