rtt-f030/bsp/stm32_radio/player_bg.h
wuyangyong e00916b557 add radio list update by inkfish
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@490 bbd45198-f89e-11dd-88c7-29a3b14d5316
2010-03-16 10:46:41 +00:00

33 lines
665 B
C

#ifndef __PLAYER_BG_H__
#define __PLAYER_BG_H__
#include <rtthread.h>
enum PLAYER_REQUEST_TYPE
{
PLAYER_REQUEST_PLAY_SINGLE_FILE,
PLAYER_REQUEST_PLAY_LIST,
PLAYER_REQUEST_STOP,
PLAYER_REQUEST_FREEZE,
PLAYER_REQUEST_UPDATE_RADIO_LIST,
};
struct player_request
{
enum PLAYER_REQUEST_TYPE type;
char fn[64];
};
/* get player background status */
rt_bool_t player_is_playing(void);
/* player background thread init */
void player_init(void);
/* send a stop request to player background thread */
void player_stop_req(void);
/* send a play request to player background thread */
void player_play_req(const char* fn);
#endif