as this is what it actually contains.
stat_task->offset_seconds = 0;
audiod_status_dump();
stat_task->playing = 0;
- stat_task->stat_item_values[SI_STATUS_BAR] = make_message(
+ stat_task->stat_item_values[SI_BASENAME] = make_message(
"%s:no connection to para_server\n",
- status_item_list[SI_STATUS_BAR]);
- stat_client_write(stat_task->stat_item_values[SI_STATUS_BAR],
- SI_STATUS_BAR);
+ status_item_list[SI_BASENAME]);
+ stat_client_write(stat_task->stat_item_values[SI_BASENAME],
+ SI_BASENAME);
if (stat_task->clock_diff_count) {
stat_task->clock_diff_barrier.tv_sec = now->tv_sec + 1;
stat_task->clock_diff_barrier.tv_usec = now->tv_usec;
static char *get_status(struct misc_meta_data *nmmd)
{
- char *bar, *ret, mtime[30] = "";
+ char *basename, *ret, mtime[30] = "";
char *status, *flags; /* vss status info */
char *ut = uptime_str();
long offset = (nmmd->offset + 500) / 1000;
/* report real status */
status = vss_status_tohuman(nmmd->vss_status_flags);
flags = vss_get_status_flags(nmmd->vss_status_flags);
- bar = para_basename(nmmd->filename);
+ basename = para_basename(nmmd->filename);
gettimeofday(&now, NULL);
ret = make_message(
"%s:%zu\n" "%s:%s\n" "%s:%lu\n" "%s:%u\n"
status_item_list[SI_LENGTH], nmmd->afd.afhi.seconds_total,
status_item_list[SI_NUM_PLAYED], nmmd->num_played,
- status_item_list[SI_STATUS_BAR], bar ? bar : "(none)",
+ status_item_list[SI_BASENAME], basename ? basename : "(none)",
status_item_list[SI_STATUS], status,
status_item_list[SI_STATUS_FLAGS], flags,
status_item_list[SI_SELECTOR], "FIXME",
status_item_list[SI_ATTRIBUTES], mmd->afd.attributes_string
);
- free(bar);
+ free(basename);
free(flags);
free(status);
free(ut);
close(audiod_pipe);
audiod_pipe = -1;
clear_all_items();
- free(stat_content[SI_STATUS_BAR]);
- stat_content[SI_STATUS_BAR] =
+ free(stat_content[SI_BASENAME]);
+ stat_content[SI_BASENAME] =
para_strdup("audiod not running!?");
print_all_items();
}
t->default_bg = COLOR_BLUE;
t->sep_str = "*";
- d[SI_STATUS_BAR].prefix = "";
- d[SI_STATUS_BAR].postfix = "";
- d[SI_STATUS_BAR].fg = COLOR_WHITE;
- d[SI_STATUS_BAR].bg = COLOR_BLUE;
- d[SI_STATUS_BAR].align = CENTER;
- d[SI_STATUS_BAR].x = 0;
- d[SI_STATUS_BAR].y = 7;
- d[SI_STATUS_BAR].len = 100;
+ d[SI_BASENAME].prefix = "";
+ d[SI_BASENAME].postfix = "";
+ d[SI_BASENAME].fg = COLOR_WHITE;
+ d[SI_BASENAME].bg = COLOR_BLUE;
+ d[SI_BASENAME].align = CENTER;
+ d[SI_BASENAME].x = 0;
+ d[SI_BASENAME].y = 7;
+ d[SI_BASENAME].len = 100;
d[SI_STATUS].prefix = "para_server: ";
d[SI_STATUS].postfix = "";
d[SI_PLAY_TIME].y = 7;
d[SI_PLAY_TIME].len = 35;
- d[SI_STATUS_BAR].prefix = "";
- d[SI_STATUS_BAR].postfix = "";
- d[SI_STATUS_BAR].fg = COLOR_CYAN;
- d[SI_STATUS_BAR].bg = COLOR_BLACK;
- d[SI_STATUS_BAR].align = LEFT;
- d[SI_STATUS_BAR].x = 35;
- d[SI_STATUS_BAR].y = 7;
- d[SI_STATUS_BAR].len = 65;
+ d[SI_BASENAME].prefix = "";
+ d[SI_BASENAME].postfix = "";
+ d[SI_BASENAME].fg = COLOR_CYAN;
+ d[SI_BASENAME].bg = COLOR_BLACK;
+ d[SI_BASENAME].align = LEFT;
+ d[SI_BASENAME].x = 35;
+ d[SI_BASENAME].y = 7;
+ d[SI_BASENAME].len = 65;
d[SI_STATUS].prefix = "";
d[SI_STATUS].postfix = " ";
/* stat */
enum {
- SI_STATUS_BAR, SI_STATUS, SI_NUM_PLAYED,
+ SI_BASENAME, SI_STATUS, SI_NUM_PLAYED,
SI_MTIME, SI_LENGTH_MIN, SI_LENGTH_SEC,
SI_FILE_SIZE, SI_STATUS_FLAGS, SI_FORMAT,
SI_SCORE, SI_AUDIO_INFO1, SI_AUDIO_INFO2,
* the list of all status items sent by para_server/para_audiod
*/
const char *status_item_list[NUM_STAT_ITEMS] = {
- [SI_STATUS_BAR] = "status_bar",
+ [SI_BASENAME] = "basnemae",
[SI_STATUS] = "status",
[SI_NUM_PLAYED] = "num_played",