make unit of all temperatures selectable
[monky] / src / audacious.h
index 65a0b67..430a85e 100644 (file)
 #ifndef AUDACIOUS_H
 #define AUDACIOUS_H
 
-struct audacious_s {
-       audacious_t items;      /* e.g. items[AUDACIOUS_STATUS] */
-       int max_title_len;      /* e.g. ${audacious_title 50} */
-       timed_thread *p_timed_thread;
-};
+#include "timed_thread.h"
 
 enum _audacious_items {
        AUDACIOUS_STATUS = 0,
@@ -41,10 +37,18 @@ enum _audacious_items {
        AUDACIOUS_FILENAME,
        AUDACIOUS_PLAYLIST_LENGTH,
        AUDACIOUS_PLAYLIST_POSITION,
+       AUDACIOUS_MAIN_VOLUME,
 };
 
 /* 12 slots for the audacious values */
-typedef char audacious_t[12][128];
+typedef char audacious_t[13][128];
+
+/* type for data exchange with main thread */
+typedef struct audacious_s {
+  audacious_t items;  /* e.g. items[AUDACIOUS_STATUS] */
+  int max_title_len;  /* e.g. ${audacious_title 50} */
+  timed_thread *p_timed_thread;
+} AUDACIOUS_S;
 
 /* create a worker thread for audacious media player status */
 int create_audacious_thread(void);