summaryrefslogtreecommitdiff
path: root/src/include/radio_hal_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/radio_hal_interface.h')
-rw-r--r--src/include/radio_hal_interface.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/include/radio_hal_interface.h b/src/include/radio_hal_interface.h
new file mode 100644
index 0000000..68bfb14
--- /dev/null
+++ b/src/include/radio_hal_interface.h
@@ -0,0 +1,56 @@
+/*
+ * radio_hal_interface.h
+ *
+ * Copyright (c) 2000 - 2016 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "tizen-radio.h"
+
+typedef enum _seek_direction_type {
+ SEEK_DIRECTION_UP, /**< Seek upward */
+ SEEK_DIRECTION_DOWN /**< Seek downward */
+} seek_direction_type_t;
+
+typedef struct _mmradio_hal_interface {
+ void *dl_handle;
+ void *rh_handle;
+ radio_interface_t intf;
+} mm_radio_hal_interface;
+
+int radio_hal_interface_init(mm_radio_hal_interface **handle);
+int radio_hal_interface_deinit(mm_radio_hal_interface *handle);
+int radio_hal_open(mm_radio_hal_interface *radio_handle);
+int radio_hal_prepare(mm_radio_hal_interface *radio_handle);
+int radio_hal_unprepare(mm_radio_hal_interface *radio_handle);
+int radio_hal_close(mm_radio_hal_interface *radio_handle);
+int radio_hal_start(mm_radio_hal_interface *radio_handle);
+int radio_hal_stop(mm_radio_hal_interface *radio_handle);
+int radio_hal_seek(mm_radio_hal_interface *radio_handle, seek_direction_type_t direction);
+int radio_hal_get_frequency(mm_radio_hal_interface *radio_handle, uint32_t *frequency);
+int radio_hal_set_frequency(mm_radio_hal_interface *radio_handle, uint32_t frequency);
+int radio_hal_get_signal_strength(mm_radio_hal_interface *radio_handle, uint32_t *strength);
+int radio_hal_mute(mm_radio_hal_interface *radio_handle);
+int radio_hal_unmute(mm_radio_hal_interface *radio_handle);
+#ifdef __cplusplus
+}
+#endif