1 /*
2  * Copyright (c) 2010 Mike Massonnet, <mmassonnet@xfce.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  */
9 
10 #ifndef PROCESS_MONITOR_H
11 #define PROCESS_MONITOR_H
12 
13 #ifdef HAVE_CONFIG_H
14 #include <config.h>
15 #endif
16 
17 #include <glib-object.h>
18 
19 #define XTM_TYPE_PROCESS_MONITOR		(xtm_process_monitor_get_type ())
20 #define XTM_PROCESS_MONITOR(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), XTM_TYPE_PROCESS_MONITOR, XtmProcessMonitor))
21 #define XTM_PROCESS_MONITOR_CLASS(klass)	(G_TYPE_CHECK_CLASS_CAST ((klass), XTM_TYPE_PROCESS_MONITOR, XtmProcessMonitorClass))
22 #define XTM_IS_PROCESS_MONITOR(obj)		(G_TYPE_CHECK_INSTANCE_TYPE ((obj), XTM_TYPE_PROCESS_MONITOR))
23 #define XTM_IS_PROCESS_MONITOR_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), XTM_TYPE_PROCESS_MONITOR))
24 #define XTM_PROCESS_MONITOR_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS ((obj), XTM_TYPE_PROCESS_MONITOR, XtmProcessMonitorClass))
25 
26 typedef struct _XtmProcessMonitor XtmProcessMonitor;
27 
28 GType		xtm_process_monitor_get_type			(void);
29 GtkWidget *	xtm_process_monitor_new				(void);
30 void		xtm_process_monitor_add_peak			(XtmProcessMonitor *monitor, gfloat peak);
31 void		xtm_process_monitor_set_step_size		(XtmProcessMonitor *monitor, gfloat step_size);
32 void		xtm_process_monitor_set_type			(XtmProcessMonitor *monitor, gint type);
33 void		xtm_process_monitor_clear			(XtmProcessMonitor *monitor);
34 
35 #endif /* !PROCESS_MONITOR_H */
36