status_item_list[SI_STATUS_BAR], bar ? bar : "(none)",
status_item_list[SI_STATUS], status,
status_item_list[SI_STATUS_FLAGS], flags,
status_item_list[SI_STATUS_BAR], bar ? bar : "(none)",
status_item_list[SI_STATUS], status,
status_item_list[SI_STATUS_FLAGS], flags,
status_item_list[SI_OFFSET], offset,
status_item_list[SI_FORMAT], audio_format_name(nmmd->audio_format),
status_item_list[SI_OFFSET], offset,
status_item_list[SI_FORMAT], audio_format_name(nmmd->audio_format),
struct mallinfo mi = mallinfo();
if (argc)
return -E_COMMAND_SYNTAX;
mmd_lock();
for (i = 0; dblist[i].name; i++) {
struct mallinfo mi = mallinfo();
if (argc)
return -E_COMMAND_SYNTAX;
mmd_lock();
for (i = 0; dblist[i].name; i++) {
- dbtools = para_strcat(dbtools, dblist[i].name);
- dbtools = para_strcat(dbtools, " ");
+ selectors = para_strcat(selectors, dblist[i].name);
+ selectors = para_strcat(selectors, " ");
int ret, num = 0;/* status will be printed that many
* times. num <= 0 means: print forever
*/
int ret, num = 0;/* status will be printed that many
* times. num <= 0 means: print forever
*/
- *handler = make_message("the %s database tool", dblist[mmd->dbt_num].name);
- cmd = dblist[mmd->dbt_num].cmd_list;
+ *handler = make_message("the %s selector",
+ dblist[mmd->selector_num].name);
+ cmd = dblist[mmd->selector_num].cmd_list;
if ((ret = send_description(fd, cmd_struct, "server", 0)) < 0)
return ret;
mmd_lock();
if ((ret = send_description(fd, cmd_struct, "server", 0)) < 0)
return ret;
mmd_lock();
mmd_unlock();
ret = send_description(fd, cmd, handler, 0);
free(handler);
mmd_unlock();
ret = send_description(fd, cmd, handler, 0);
free(handler);
return ret;
}
for (i = 0; dblist[i].name; i++) {
if (strcmp(dblist[i].name, argv[1]))
continue;
mmd_lock();
return ret;
}
for (i = 0; dblist[i].name; i++) {
if (strcmp(dblist[i].name, argv[1]))
continue;
mmd_lock();