common: move HLQ_VERSION_* into headers

The MIN/MAX/CUR defines are internal and so they should be in qso-impl.h.

The USE_DEFAULT define should be usable by common lib consumers, so it
should be in qso-pack.h.

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
3 files changed, 10 insertions(+), 7 deletions(-)

M common/hlq.c
M common/include/hlog/qso-pack.h
M common/qso-impl.h
M common/hlq.c +3 -6
@@ 1,5 1,5 @@ 
 /*
- * Copyright (c) 2020-2022 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+ * Copyright (c) 2020-2023 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal

          
@@ 27,13 27,10 @@ 
 #include <jeffpc/time.h>
 
 #include <hlog/time.h>
+#include <hlog/qso-pack.h>
 
 #include "hlq.h"
-
-#define HLQ_VERSION_USE_DEFAULT -1
-#define HLQ_VERSION_MIN 0 /* minimum supported version */
-#define HLQ_VERSION_MAX 1 /* maximum supported version */
-#define HLQ_VERSION_CUR 0 /* version to write out QSOs in */
+#include "qso-impl.h"
 
 #define BASE64_LINE_LEN 76 /* when to line-wrap base64 content */
 

          
M common/include/hlog/qso-pack.h +3 -1
@@ 1,5 1,5 @@ 
 /*
- * Copyright (c) 2020-2022 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+ * Copyright (c) 2020-2023 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal

          
@@ 25,6 25,8 @@ 
 
 #include <hlog/qso.h>
 
+#define HLQ_VERSION_USE_DEFAULT -1
+
 enum qso_ns {
 	QSO_NS_DEBUG,
 	QSO_NS_QSO,

          
M common/qso-impl.h +4 -0
@@ 26,6 26,10 @@ 
 #include <hlog/qso.h>
 #include <hlog/qso-pack.h>
 
+#define HLQ_VERSION_MIN 0 /* minimum supported version */
+#define HLQ_VERSION_MAX 1 /* maximum supported version */
+#define HLQ_VERSION_CUR 0 /* version to write out QSOs in */
+
 /*
  * Pack a QSO
  */