Bugfix: memory and thread-deleting problems
[monky] / src / net_stat.h
index af3ba97..463e7db 100644 (file)
@@ -10,7 +10,7 @@
  * Please see COPYING for details
  *
  * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
- * 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.
  *
@@ -71,8 +71,8 @@ void print_addrs(struct text_object *, char *, int);
 #endif /* __linux__ */
 #ifdef X11
 void parse_net_stat_graph_arg(struct text_object *, const char *, void *);
-void print_downspeedgraph(struct text_object *, char *);
-void print_upspeedgraph(struct text_object *, char *);
+void print_downspeedgraph(struct text_object *, char *, int);
+void print_upspeedgraph(struct text_object *, char *, int);
 #endif /* X11 */
 #ifdef __linux__
 #ifdef HAVE_IWLIB
@@ -88,10 +88,13 @@ void print_wireless_link_bar(struct text_object *, char *, int);
 #endif /* __linux__ */
 
 void clear_net_stats(void);
-int interface_up(const char *);
+
+void parse_if_up_arg(struct text_object *, const char *);
+int interface_up(struct text_object *);
+void free_if_up(struct text_object *);
 
 void free_dns_data(void);
-void update_dns_data(void);
+int update_dns_data(void);
 void parse_nameserver_arg(struct text_object *, const char *);
 void print_nameserver(struct text_object *, char *, int);