GnuCash  5.6-150-g038405b370+
gnc-gobject-utils.h
Go to the documentation of this file.
1 /*
2  * gnc-gobject-utils.h -- utility functions for working
3  * with GObjects
4  * Copyright (C) 2005 David Hampton <hampton@employees.org>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
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.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA gnu@gnu.org
22  */
23 
38 #ifndef GNC_GOBJECT_UTILS_H
39 #define GNC_GOBJECT_UTILS_H
40 
41 #include <glib.h>
42 #include <glib-object.h>
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
76 void gnc_gobject_tracking_remember (GObject *object);
77 
82 void gnc_gobject_tracking_forget (GObject *object);
83 
93 const GList *gnc_gobject_tracking_get_list (const gchar *name);
94 
95 
102 void gnc_gobject_tracking_dump (void);
103 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 
111 #endif /* GNC_GOBJECT_UTILS_H */
112 
const GList * gnc_gobject_tracking_get_list(const gchar *name)
Get a list of all known objects of a specified type.
void gnc_gobject_tracking_dump(void)
Dump the entire object tracking database via the g_log() family of functions.
void gnc_gobject_tracking_forget(GObject *object)
Tell gnucash to drop this object from the database.
void gnc_gobject_tracking_remember(GObject *object)
Tell gnucash to remember this object in the database.