Integrate adding files with the file manager
[anjuta-git-plugin.git] / plugins / profiler / gprof-call-graph-block.h
blob7360463e7048e098d6129cddf70146dbb217f8ac
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * gprof-call-graph-block.h
4 * Copyright (C) James Liggett 2006 <jrliggett@cox.net>
5 *
6 * gprof-call-graph-block.h is free software.
7 *
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
27 #include <glib.h>
28 #include <glib-object.h>
29 #include "gprof-call-graph-block-entry.h"
31 G_BEGIN_DECLS
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
45 GObject parent;
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,
70 GList **iter);
71 GProfCallGraphBlockEntry *gprof_call_graph_block_get_first_child (GProfCallGraphBlock *self,
72 GList **iter);
74 gboolean gprof_call_graph_block_is_recursive (GProfCallGraphBlock *self);
76 GProfCallGraphBlock *gprof_call_graph_block_get_next (GList *current_iter,
77 GList **next_iter);
79 G_END_DECLS
81 #endif