]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stat.c
handle status items via autoconf.
[paraslash.git] / stat.c
diff --git a/stat.c b/stat.c
index 1ea2318dabc51d1d5c650e8ee8047615312a0aa3..feb669bc05994ec5a4af92bcb0b8bde7137da103 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -44,45 +44,8 @@ static struct list_head client_list;
 static int initialized;
 static int num_clients;
 
-/** The list of all status items used by para_server/para_audiod. */
-const char *status_item_list[NUM_STAT_ITEMS] = {
-       [SI_BASENAME] = "basename",
-       [SI_STATUS] = "status",
-       [SI_NUM_PLAYED] = "num_played",
-
-       [SI_MTIME] = "mtime",
-       [SI_BITRATE] = "bitrate",
-       [SI_FREQUENCY] = "frequency",
-
-       [SI_FILE_SIZE] = "file_size",
-       [SI_STATUS_FLAGS] = "status_flags",
-       [SI_FORMAT] = "format",
-
-       [SI_SCORE] = "score",
-       [SI_AUDIO_FILE_INFO] = "audio_file_info",
-
-       [SI_TAG_INFO1] = "taginfo1",
-       [SI_TAG_INFO2] =  "taginfo2",
-       [SI_AFS_MODE] = "afs_mode",
-       [SI_ATTRIBUTES_TXT] = "attributes_txt",
-
-       [SI_DIRECTORY] = "dir",
-       [SI_DECODER_FLAGS] = "decoder_flags",
-       [SI_AUDIOD_STATUS] = "audiod_status",
-
-       [SI_PLAY_TIME] = "play_time",
-       [SI_ATTRIBUTES_BITMAP] = "attributes_bitmap",
-       [SI_OFFSET] = "offset",
-
-       [SI_SECONDS_TOTAL] = "seconds_total",
-       [SI_STREAM_START] = "stream_start",
-       [SI_CURRENT_TIME] = "current_time",
-
-       [SI_AUDIOD_UPTIME] = "audiod_uptime",
-       [SI_IMAGE_ID] = "image_id",
-       [SI_LYRICS_ID] = "lyrics_id",
-       [SI_DURATION] = "duration"
-};
+/** The list of all status items used by para_{server,audiod,gui}. */
+const char *status_item_list[] = {STATUS_ITEM_ARRAY};
 
 static void dump_stat_client_list(void)
 {