From 70482d0afa0bf1187bb83e4489999582126b8f62 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Tue, 25 May 2021 09:17:25 -0500 Subject: [PATCH] Add cookie_use flag https://github.com/Hamlib/Hamlib/issues/695 --- include/hamlib/rig.h | 1 + src/rig.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 61dc582ae..6a62ed41a 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -112,6 +112,7 @@ __BEGIN_DECLS */ // cookie is 26-char time code plus 10-char (2^31-1) random number #define HAMLIB_COOKIE_SIZE 37 +extern int cookie_use; // this is global as once one client requests it everybody needs to honor it //! @cond Doxygen_Suppress extern HAMLIB_EXPORT_VAR(const char) hamlib_version[]; diff --git a/src/rig.c b/src/rig.c index 9918b93a3..b12a63cf8 100644 --- a/src/rig.c +++ b/src/rig.c @@ -88,6 +88,7 @@ const char *hamlib_license = "LGPL"; //! @cond Doxygen_Suppress const char hamlib_version[21] = "Hamlib " PACKAGE_VERSION; const char *hamlib_version2 = "Hamlib " PACKAGE_VERSION " " HAMLIBDATETIME; +int cookie_use; //! @endcond struct rig_caps caps_test;