1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
3 * gprof-call-graph-block.h
4 * Copyright (C) James Liggett 2006 <jrliggett@cox.net>
6 * gprof-call-graph-block.h is free software.
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2, or (at your option) any later version.
12 * plugin.c is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with plugin.c. See the file "COPYING". If not,
19 * write to: The Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
24 #ifndef _GPROF_CALL_GRAPH_BLOCK_H
25 #define _GPROF_CALL_GRAPH_BLOCK_H
28 #include <glib-object.h>
29 #include "gprof-call-graph-block-entry.h"
33 typedef struct _GProfCallGraphBlock GProfCallGraphBlock
;
34 typedef struct _GProfCallGraphBlockClass GProfCallGraphBlockClass
;
35 typedef struct _GProfCallGraphBlockPriv GProfCallGraphBlockPriv
;
37 #define GPROF_CALL_GRAPH_BLOCK_TYPE (gprof_call_graph_block_get_type ())
38 #define GPROF_CALL_GRAPH_BLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPROF_CALL_GRAPH_BLOCK_TYPE, GProfCallGraphBlock))
39 #define GPROF_CALL_GRAPH_BLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPROF_CALL_GRAPH_BLOCK_TYPE, GProfCallGraphBlockClass))
40 #define IS_GPROF_CALL_GRAPH_BLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPROF_CALL_GRAPH_BLOCK_TYPE))
41 #define IS_GPROF_CALL_GRAPH_BLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPROF_CALL_GRAPH_BLOCK_TYPE))
43 struct _GProfCallGraphBlock
46 GProfCallGraphBlockPriv
*priv
;
49 struct _GProfCallGraphBlockClass
51 GObjectClass parent_class
;
54 GType
gprof_call_graph_block_get_type (void);
56 GProfCallGraphBlock
*gprof_call_graph_block_new (void);
57 void gprof_call_graph_block_free (GProfCallGraphBlock
*self
);
59 void gprof_call_graph_block_add_primary_entry (GProfCallGraphBlock
*self
,
60 GProfCallGraphBlockEntry
*entry
);
61 void gprof_call_graph_block_add_child_entry (GProfCallGraphBlock
*self
,
62 GProfCallGraphBlockEntry
*entry
);
63 void gprof_call_graph_block_add_parent_entry (GProfCallGraphBlock
*self
,
64 GProfCallGraphBlockEntry
*entry
);
66 GProfCallGraphBlockEntry
*gprof_call_graph_block_get_primary_entry (GProfCallGraphBlock
*self
);
67 gboolean
gprof_call_graph_block_has_parents (GProfCallGraphBlock
*self
);
68 gboolean
gprof_call_graph_block_has_children (GProfCallGraphBlock
*self
);
69 GProfCallGraphBlockEntry
*gprof_call_graph_block_get_first_parent (GProfCallGraphBlock
*self
,
71 GProfCallGraphBlockEntry
*gprof_call_graph_block_get_first_child (GProfCallGraphBlock
*self
,
74 gboolean
gprof_call_graph_block_is_recursive (GProfCallGraphBlock
*self
);
76 GProfCallGraphBlock
*gprof_call_graph_block_get_next (GList
*current_iter
,