stable now, graphs might need some tweaks
[monky] / src / top.h
index 887d826..51bf936 100644 (file)
--- a/src/top.h
+++ b/src/top.h
@@ -10,7 +10,7 @@
  *
  * Copyright (c) 2005 Adi Zaimi, Dan Piponi <dan@tanelorn.demon.co.uk>,
  *                                       Dave Clark <clarkd@skynet.ca>
- * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
+ * Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al.
  *     (see AUTHORS)
  * All rights reserved.
  *
@@ -41,6 +41,7 @@
  ******************************************/
 
 #include "conky.h"
+#include "text_object.h"
 #define CPU_THRESHHOLD 0       /* threshhold for the cpu diff to appear */
 #include <time.h>
 #include <dirent.h>
@@ -122,7 +123,6 @@ struct process {
        unsigned int time_stamp;
        unsigned int counted;
        unsigned int changed;
-       float totalmem;
 };
 
 struct sorted_process {
@@ -141,4 +141,12 @@ void process_find_top(struct process **, struct process **, struct process **
 /* lookup a program by it's name */
 struct process *get_process_by_name(const char *);
 
+int parse_top_args(const char *s, const char *arg, struct text_object *obj);
+void print_top(struct text_object *, char *, int);
+void free_top(struct text_object *, int);
+
+/* return zero on success, non-zero otherwise */
+int set_top_name_width(const char *);
+
+
 #endif /* _top_h_ */