[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 9d38e9a726fbcf6678158
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Michael B. <mdb...@us...> - 2021-04-11 21:13:18
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hamlib -- Ham radio control libraries".
The branch, master has been updated
via 9d38e9a726fbcf6678158fcc6dc023ea4bd5ff9f (commit)
from 73464a6c2e2453f988dd12b9ed3e4a737632c85e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9d38e9a726fbcf6678158fcc6dc023ea4bd5ff9f
Author: Bill Somerville <bi...@cl...>
Date: Sun Apr 11 20:56:38 2021 +0100
Add missing shared library API exports
diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h
index 57421e3a..cc6ceb46 100644
--- a/include/hamlib/rig.h
+++ b/include/hamlib/rig.h
@@ -1969,7 +1969,7 @@ enum rig_function_e {
*
*/
//! @cond Doxygen_Suppress
-extern void *rig_get_function_ptr(rig_model_t rig_model, enum rig_function_e rig_function);
+extern HAMLIB_EXPORT (void *) rig_get_function_ptr(rig_model_t rig_model, enum rig_function_e rig_function);
/**
* \brief Enumeration of rig->caps values
@@ -1997,14 +1997,14 @@ enum rig_caps_cptr_e {
* Does not support > 32-bit rig_caps values
*/
//! @cond Doxygen_Suppress
-extern long long rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps);
+extern HAMLIB_EXPORT (long long) rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps);
/**
* \brief Function to return char pointer value from rig->caps
*
*/
//! @cond Doxygen_Suppress
-extern const char* rig_get_caps_cptr(rig_model_t rig_model, enum rig_caps_cptr_e rig_caps);
+extern HAMLIB_EXPORT (const char *) rig_get_caps_cptr(rig_model_t rig_model, enum rig_caps_cptr_e rig_caps);
/**
* \brief Port definition
diff --git a/src/misc.c b/src/misc.c
index fbf00320..bf841e3a 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1877,8 +1877,8 @@ const char *HAMLIB_API rot_strstatus(rot_status_t status)
* \param RIG* and rig_function_e
* \return the corresponding function pointer
*/
-void *rig_get_function_ptr(rig_model_t rig_model,
- enum rig_function_e rig_function)
+void * HAMLIB_API rig_get_function_ptr(rig_model_t rig_model,
+ enum rig_function_e rig_function)
{
const struct rig_caps *caps = rig_get_caps(rig_model);
@@ -2150,7 +2150,7 @@ void *rig_get_function_ptr(rig_model_t rig_model,
* \param RIG* and rig_caps_int_e
* \return the corresponding long value -- -RIG_EINVAL is the only error possible
*/
-long long rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps)
+long long HAMLIB_API rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps)
{
const struct rig_caps *caps = rig_get_caps(rig_model);
@@ -2177,7 +2177,7 @@ long long rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps)
}
}
-const char *rig_get_caps_cptr(rig_model_t rig_model,
+const char * HAMLIB_API rig_get_caps_cptr(rig_model_t rig_model,
enum rig_caps_cptr_e rig_caps)
{
const struct rig_caps *caps = rig_get_caps(rig_model);
-----------------------------------------------------------------------
Summary of changes:
include/hamlib/rig.h | 6 +++---
src/misc.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|