- Added a patch moved-freedv_callback_rx_sym-into-internal-header.patch to fix building gnuradio (patch taken from upstream) - Update to version 1.0.1: * Release to support freedv-gui 1.6.1 - Update baselib.conf - Update to version 1.0.0: * No upstream changelog available * Added new mode 700E - Test binaries not installed now, so package codec2 dropped, license and doc files moved to libcodec2 library. - Patch codec2-no_return_random.patch rebased. - Update to version 0.9.2: * No upstream changelog available - Drop no longer needed patches: * codec2-licensed-stuff.patch - Apply upstream patch to fix ambiguous license situation: * codec2-licensed-stuff.patch - Update to version 0.8.1: * No upstream changelog provided - Add codec2-no_return_random.patch - Add baselibs.conf - Update to version 0.7 - Update licensing information - Update to version 0.6: * No upstream changelog available - Update description with new bit rates from homepage. - Cleanup spec file with spec-cleaner - Copyrigth information of spec file removed - Version 0.5.1 * Updated golay - Spec cleanup - Added codec2-rpmlintrc - version 0.5 - version 0.4.1 - patch to install copm_prim.h needed by freedv2 - version 0.4 - version 0.3svn1917 - mods based on Fedora package - first try OBS-URL: https://build.opensuse.org/request/show/923350 OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=21
47 lines
2.2 KiB
Diff
47 lines
2.2 KiB
Diff
From 7a554bad2f28a4cf19cddf43c619fe5921ddaea3 Mon Sep 17 00:00:00 2001
|
|
From: drowe67 <david@rowetel.com>
|
|
Date: Sat, 2 Oct 2021 15:48:09 +0930
|
|
Subject: [PATCH] moved freedv_callback_rx_sym typedef and function into
|
|
freedv_api_internal.h
|
|
|
|
---
|
|
src/freedv_api.h | 2 --
|
|
src/freedv_api_internal.h | 4 ++++
|
|
2 files changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/freedv_api.h b/src/freedv_api.h
|
|
index 23c5fef8..9393bd80 100644
|
|
--- a/src/freedv_api.h
|
|
+++ b/src/freedv_api.h
|
|
@@ -145,7 +145,6 @@ struct freedv_advanced {
|
|
|
|
// Called when text message char is decoded
|
|
typedef void (*freedv_callback_rx)(void *, char);
|
|
-typedef void (*freedv_callback_rx_sym)(void *, _Complex float, float);
|
|
// Called when new text message char is needed
|
|
typedef char (*freedv_callback_tx)(void *);
|
|
typedef void (*freedv_calback_error_pattern)
|
|
@@ -212,7 +211,6 @@ int freedv_check_crc16_unpacked(unsigned char *unpacked_bits, int nbits);
|
|
// Set parameters ------------------------------------------------------------
|
|
|
|
void freedv_set_callback_txt (struct freedv *freedv, freedv_callback_rx rx, freedv_callback_tx tx, void *callback_state);
|
|
-void freedv_set_callback_txt_sym (struct freedv *freedv, freedv_callback_rx_sym rx, void *callback_state);
|
|
void freedv_set_callback_protocol (struct freedv *freedv, freedv_callback_protorx rx, freedv_callback_prototx tx, void *callback_state);
|
|
void freedv_set_callback_data (struct freedv *freedv, freedv_callback_datarx datarx, freedv_callback_datatx datatx, void *callback_state);
|
|
void freedv_set_test_frames (struct freedv *freedv, int test_frames);
|
|
diff --git a/src/freedv_api_internal.h b/src/freedv_api_internal.h
|
|
index 0197e184..e7a9526c 100644
|
|
--- a/src/freedv_api_internal.h
|
|
+++ b/src/freedv_api_internal.h
|
|
@@ -230,6 +230,10 @@ int freedv_rx_fsk_ldpc_data(struct freedv *f, COMP demod_in[]);
|
|
|
|
int freedv_bits_to_speech(struct freedv *f, short speech_out[], short demod_in[], int rx_status);
|
|
|
|
+// for the reliable text protocol we need to pass symbols back rather than text
|
|
+typedef void (*freedv_callback_rx_sym)(void *, _Complex float, float);
|
|
+void freedv_set_callback_txt_sym (struct freedv *freedv, freedv_callback_rx_sym rx, void *callback_state);
|
|
+
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|