#include <tizen.h>
+#ifndef RADIO_EXPORT_API
+#define RADIO_EXPORT_API
+#endif // RADIO_EXPORT_API
+
#ifdef __cplusplus
extern "C" {
#endif
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
* @see radio_destroy()
*/
-int radio_create(radio_h *radio);
+RADIO_EXPORT_API int radio_create(radio_h *radio);
/**
* @brief Destroys the radio handle and releases all its resources.
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
* @see radio_create()
*/
-int radio_destroy(radio_h radio);
+RADIO_EXPORT_API int radio_destroy(radio_h radio);
/**
* @brief Gets the radio's current state.
* @retval #RADIO_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
*/
-int radio_get_state(radio_h radio, radio_state_e *state);
+RADIO_EXPORT_API int radio_get_state(radio_h radio, radio_state_e *state);
/**
* @brief Starts playing the radio.
* @post The radio state will be #RADIO_STATE_PLAYING.
* @see radio_stop()
*/
-int radio_start(radio_h radio);
+RADIO_EXPORT_API int radio_start(radio_h radio);
/**
* @brief Stops playing the radio.
* @see radio_start()
* @see radio_scan_start()
*/
-int radio_stop(radio_h radio);
+RADIO_EXPORT_API int radio_stop(radio_h radio);
/**
* @brief Seeks up the effective frequency of the radio, asynchronously.
* @post It invokes radio_seek_completed_cb() when the seek completes.
* @see radio_seek_down()
*/
-int radio_seek_up(radio_h radio, radio_seek_completed_cb callback, void *user_data);
+RADIO_EXPORT_API int radio_seek_up(radio_h radio, radio_seek_completed_cb callback, void *user_data);
/**
* @brief Seeks down the effective frequency of the radio, asynchronously.
* @post It invokes radio_seek_completed_cb() when the seek completes.
* @see radio_seek_up()
*/
-int radio_seek_down(radio_h radio, radio_seek_completed_cb callback, void *user_data);
+RADIO_EXPORT_API int radio_seek_down(radio_h radio, radio_seek_completed_cb callback, void *user_data);
/**
* @brief Sets the radio frequency.
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
* @see radio_get_frequency()
*/
-int radio_set_frequency(radio_h radio, int frequency);
+RADIO_EXPORT_API int radio_set_frequency(radio_h radio, int frequency);
/**
* @brief Gets the current frequency of the radio.
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
* @see radio_set_frequency()
*/
-int radio_get_frequency(radio_h radio, int *frequency);
+RADIO_EXPORT_API int radio_get_frequency(radio_h radio, int *frequency);
/**
* @brief Gets the current signal strength of the radio.
* @retval #RADIO_ERROR_INVALID_OPERATION Invalid operation
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
*/
-int radio_get_signal_strength(radio_h radio, int *strength);
+RADIO_EXPORT_API int radio_get_signal_strength(radio_h radio, int *strength);
/**
* @brief Starts scanning radio signals, asynchronously
* @see radio_set_scan_completed_cb()
* @see radio_scan_completed_cb()
*/
-int radio_scan_start(radio_h radio, radio_scan_updated_cb callback, void *user_data);
+RADIO_EXPORT_API int radio_scan_start(radio_h radio, radio_scan_updated_cb callback, void *user_data);
/**
* @brief Stops scanning radio signals, asynchronously.
* @post The radio state will be #RADIO_STATE_READY.
* @see radio_scan_start()
*/
-int radio_scan_stop(radio_h radio, radio_scan_stopped_cb callback, void *user_data);
+RADIO_EXPORT_API int radio_scan_stop(radio_h radio, radio_scan_stopped_cb callback, void *user_data);
/**
* @brief Sets the radio's mute status.
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
* @see radio_is_muted()
*/
-int radio_set_mute(radio_h radio, bool muted);
+RADIO_EXPORT_API int radio_set_mute(radio_h radio, bool muted);
/**
* @brief Gets the radio's mute status.
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
* @see radio_set_mute()
*/
-int radio_is_muted(radio_h radio, bool *muted);
+RADIO_EXPORT_API int radio_is_muted(radio_h radio, bool *muted);
/**
* @brief Registers a callback function to be invoked when the scan finishes.
* @see radio_unset_scan_completed_cb()
* @see radio_scan_completed_cb()
*/
-int radio_set_scan_completed_cb(radio_h radio, radio_scan_completed_cb callback, void *user_data);
+RADIO_EXPORT_API int radio_set_scan_completed_cb(radio_h radio, radio_scan_completed_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
* @see radio_set_scan_completed_cb()
*/
-int radio_unset_scan_completed_cb(radio_h radio);
+RADIO_EXPORT_API int radio_unset_scan_completed_cb(radio_h radio);
/**
* @brief Registers a callback function to be invoked when the radio is interrupted.
* @see #radio_interrupted_code_e
* @see radio_interrupted_cb()
*/
-int radio_set_interrupted_cb(radio_h radio, radio_interrupted_cb callback, void *user_data);
+RADIO_EXPORT_API int radio_set_interrupted_cb(radio_h radio, radio_interrupted_cb callback, void *user_data);
/**
* @brief Unregisters the callback function.
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
* @see radio_set_interrupted_cb()
*/
-int radio_unset_interrupted_cb(radio_h radio);
+RADIO_EXPORT_API int radio_unset_interrupted_cb(radio_h radio);
/**
* @brief Gets the min, max frequency of the region.
* @retval #RADIO_ERROR_INVALID_OPERATION Invalid operation
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
*/
-int radio_get_frequency_range(radio_h radio, int *min_freq, int *max_freq);
+RADIO_EXPORT_API int radio_get_frequency_range(radio_h radio, int *min_freq, int *max_freq);
/**
* @brief Gets channel spacing.
* @retval #RADIO_ERROR_INVALID_OPERATION Invalid operation
* @retval #RADIO_ERROR_NOT_SUPPORTED Not supported
*/
-int radio_get_channel_spacing(radio_h radio, int *channel_spacing);
+RADIO_EXPORT_API int radio_get_channel_spacing(radio_h radio, int *channel_spacing);
/**