Go to the source code of this file.
Display Status | |
| |
#define | DIST_NONE 0 |
Initial status, displays program banner. | |
#define | DIST_WAIT 1 |
Waiting? | |
#define | DIST_CONNECTING 2 |
Waiting for connection. | |
#define | DIST_CONNECTED 3 |
Successfully connected to a radio station. | |
#define | DIST_BUFFER 4 |
Buffering MP3 data. | |
#define | DIST_TITLE 5 |
Used? | |
#define | DIST_STATION 6 |
Used? | |
#define | DIST_VOLUME 7 |
Display volume. | |
#define | DIST_DEAD 8 |
Currently selected station is dead. | |
#define | DIST_FORCE 9 |
Force display update. | |
Functions | |
int | UserIfInit (char *name) |
Start background thread for display updates. | |
void | UserIfShowStatus (u_char status) |
Display a specified status. | |
void | UserIfShowMessage (u_char row, u_char secs, CONST char *fmt,...) |
Display a specified text. | |
void | UserIfEntry (u_char rs) |
char * | UserIfGetDisplayText (char *buff, size_t siz) |
Retrieve the current display text. |
#define DIST_NONE 0 |
Initial status, displays program banner.
Definition at line 50 of file userif.h.
Referenced by main(), UserIfInit(), and UserIfShowStatus().
#define DIST_CONNECTING 2 |
Waiting for connection.
Definition at line 54 of file userif.h.
Referenced by main(), and UserIfShowStatus().
#define DIST_CONNECTED 3 |
Successfully connected to a radio station.
Definition at line 56 of file userif.h.
Referenced by main(), and UserIfShowStatus().
#define DIST_DEAD 8 |
Currently selected station is dead.
Definition at line 66 of file userif.h.
Referenced by main(), and UserIfShowStatus().
#define DIST_FORCE 9 |
Force display update.
Definition at line 68 of file userif.h.
Referenced by main(), ProcessMetaData(), ShoutCastThread(), UserIfInit(), and UserIfShowStatus().
int UserIfInit | ( | char * | name | ) |
Start background thread for display updates.
name | Display device name. |
Definition at line 427 of file userif.c.
References ButtonInit(), display, DIST_FORCE, DIST_NONE, UI_THREAD_STACK, UserIfShowStatus(), UserIfThread(), webradio, and WEBRADIO::wr_status.
void UserIfShowStatus | ( | u_char | status | ) |
Display a specified status.
status | Status to be displayed. |
Definition at line 349 of file userif.c.
References display, DIST_CONNECTED, DIST_CONNECTING, DIST_DEAD, DIST_FORCE, DIST_NONE, favlist, LAST_FAVORITE, LCD_VCOLS, LOG_USERIF, LogMsg(), RECEIVERINFO::ri_bcast, SHOUTCASTINFO::sci_metatitle, STATIONINFO::si_genre, UserIfShowMessage(), UserIfShowStationConf(), UserIfShowStationInfo(), VERSION, webradio, WEBRADIO::wr_rip, WEBRADIO::wr_sip, WEBRADIO::wr_status, and XmlRefresh().
void UserIfShowMessage | ( | u_char | row, | |
u_char | secs, | |||
CONST char * | fmt, | |||
... | ||||
) |
Display a specified text.
row | Row position of the message. | |
secs | Number of seconds to display the message. Set to 0 for permanent display. | |
fmt | Format string containing conversion specifications. |
Definition at line 331 of file userif.c.
References display, and UI_REFRESH_RATE.
void UserIfEntry | ( | u_char | rs | ) |
char* UserIfGetDisplayText | ( | char * | buff, | |
size_t | siz | |||
) |