1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) 2004 Naba Kumar
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #ifndef __AN_SYMBOL_INFO_H__
23 #define __AN_SYMBOL_INFO_H__
26 #include <tm_tagmanager.h>
30 #define ANJUTA_TYPE_SYMBOL_INFO (anjuta_symbol_info_get_type ())
31 #define ANJUTA_SYMBOL_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ANJUTA_TYPE_SYMBOL_INFO, AnjutaSymbolInfo))
32 #define ANJUTA_IS_SYMBOL_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ANJUTA_TYPE_SYMBOL_INFO))
33 #define ANJUTA_IS_SYMBOL_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ANJUTA_TYPE_SYMBOL_INFO))
34 typedef struct _AnjutaSymbolInfo AnjutaSymbolInfo
;
35 typedef struct _AnjutaSymbolInfoPriv AnjutaSymbolInfoPriv
;
74 struct _AnjutaSymbolInfo
77 gchar
*sym_name
; /* symbol name */
78 SVNodeType node_type
; /* symbol node_type: defines the type of the Symbol. This item was added. */
81 char *name
; /* file name */
82 glong line
; /* and line of the file in which the symbol is defined */
83 } def
; /* the definition struct for the symbol */
88 } decl
; /* the declaration struct for the symbol */
92 GType
anjuta_symbol_info_get_type (void);
93 AnjutaSymbolInfo
*anjuta_symbol_info_new (TMSymbol
*sym
, SVNodeType node_type
);
94 void anjuta_symbol_info_free (AnjutaSymbolInfo
*sym
);
96 /* If sym is give sym->tag is used, otherwise the passed tag is used
97 * to determine the sv node type
99 SVNodeType
anjuta_symbol_info_get_node_type (const TMSymbol
*sym
,
101 SVRootType
anjuta_symbol_info_get_root_type (SVNodeType type
);
103 /* Returns the icon pixbuf. Caller does not get a reference. */
104 GdkPixbuf
* anjuta_symbol_info_get_pixbuf (SVNodeType type
);
107 #endif /* __AN_SYMBOL_INFO_H__ */