Bugfix: memory and thread-deleting problems
[monky] / src / moc.h
index 197598f..324c290 100644 (file)
--- a/src/moc.h
+++ b/src/moc.h
@@ -1,4 +1,6 @@
-/* MOC Conky integration
+/* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
+ *
+ * MOC Conky integration
  *
  * Please see COPYING for details
  *
@@ -35,12 +37,11 @@ struct moc_s {
        char *curtime;
        char *bitrate;
        char *rate;
-       timed_thread *timed_thread;
 };
+extern struct moc_s moc;
 
-void init_moc(struct moc_s *moc);
-void *update_moc(void *) __attribute__((noreturn));
-void free_moc(struct moc_s *moc);
+int update_moc(void);
+void free_moc(void);
 
 #endif /* MOC_H_ */