summaryrefslogtreecommitdiff
path: root/src/include/mm_radio_priv_hal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/mm_radio_priv_hal.h')
-rw-r--r--src/include/mm_radio_priv_hal.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/include/mm_radio_priv_hal.h b/src/include/mm_radio_priv_hal.h
index ed80aee..31fb1ce 100644
--- a/src/include/mm_radio_priv_hal.h
+++ b/src/include/mm_radio_priv_hal.h
@@ -155,6 +155,13 @@ typedef struct {
int data;
} mm_radio_msg_t;
+typedef enum {
+ MM_RADIO_THREAD_MSG = 0,
+ MM_RADIO_THREAD_SEEK,
+ MM_RADIO_THREAD_SCAN,
+ MM_RADIO_THREAD_NUM
+} MMRadioThreadTypes;
+
/*---------------------------------------------------------------------------
GLOBAL DATA TYPE DEFINITIONS:
---------------------------------------------------------------------------*/
@@ -173,17 +180,14 @@ typedef struct {
/* radio attributes */
MMHandleType *attrs;
+ MMRadioThread_t thread[MM_RADIO_THREAD_NUM];
+
/* message callback */
GAsyncQueue *msg_queue;
- MMRadioThread_t msg;
MMMessageCallback msg_cb;
void *msg_cb_param;
- /* scan */
- MMRadioThread_t scan;
-
/* seek */
- MMRadioThread_t seek;
int prev_seek_freq;
bool is_muted;
bool seek_unmute;