mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
Do proper error-handling.
2006-03-05 Soeren Sandmann <sandmann@redhat.com> * sysprof-text.c, collector.c, sysprof.c: Do proper error-handling.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
ebb7728768
commit
849efc820d
13
collector.h
13
collector.h
@ -23,11 +23,20 @@ typedef struct Collector Collector;
|
||||
|
||||
typedef void (* CollectorFunc) (gpointer data);
|
||||
|
||||
#define COLLECTOR_ERROR collector_error_quark ()
|
||||
|
||||
GQuark collector_error_quark (void);
|
||||
|
||||
typedef enum
|
||||
{
|
||||
COLLECTOR_ERROR_CANT_OPEN_FILE
|
||||
} CollectorError;
|
||||
|
||||
/* callback is called whenever a new sample arrives */
|
||||
Collector *collector_new (CollectorFunc callback,
|
||||
gpointer data);
|
||||
gpointer data);
|
||||
gboolean collector_start (Collector *collector,
|
||||
GError **err);
|
||||
GError **err);
|
||||
void collector_stop (Collector *collector);
|
||||
void collector_reset (Collector *collector);
|
||||
int collector_get_n_samples (Collector *collector);
|
||||
|
||||
Reference in New Issue
Block a user