1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __APP_GIMP_MEMSIZE_H__
19 #define __APP_GIMP_MEMSIZE_H__
20 
21 
22 gint64   gimp_g_type_instance_get_memsize      (GTypeInstance   *instance);
23 gint64   gimp_g_object_get_memsize             (GObject         *object);
24 
25 gint64   gimp_g_hash_table_get_memsize         (GHashTable      *hash,
26                                                 gint64           data_size);
27 gint64   gimp_g_hash_table_get_memsize_foreach (GHashTable      *hash,
28                                                 GimpMemsizeFunc  func,
29                                                 gint64          *gui_size);
30 
31 gint64   gimp_g_slist_get_memsize              (GSList          *slist,
32                                                 gint64           data_size);
33 gint64   gimp_g_slist_get_memsize_foreach      (GSList          *slist,
34                                                 GimpMemsizeFunc  func,
35                                                 gint64          *gui_size);
36 
37 gint64   gimp_g_list_get_memsize               (GList           *list,
38                                                 gint64           data_size);
39 gint64   gimp_g_list_get_memsize_foreach       (GList           *list,
40                                                 GimpMemsizeFunc  func,
41                                                 gint64          *gui_size);
42 
43 gint64   gimp_g_queue_get_memsize              (GQueue          *queue,
44                                                 gint64           data_size);
45 gint64   gimp_g_queue_get_memsize_foreach      (GQueue          *queue,
46                                                 GimpMemsizeFunc  func,
47                                                 gint64          *gui_size);
48 
49 gint64   gimp_g_value_get_memsize              (GValue          *value);
50 gint64   gimp_g_param_spec_get_memsize         (GParamSpec      *pspec);
51 
52 gint64   gimp_gegl_buffer_get_memsize          (GeglBuffer      *buffer);
53 gint64   gimp_gegl_pyramid_get_memsize         (GeglBuffer      *buffer);
54 
55 gint64   gimp_string_get_memsize               (const gchar     *string);
56 gint64   gimp_parasite_get_memsize             (GimpParasite    *parasite,
57                                                 gint64          *gui_size);
58 
59 
60 #endif /* __APP_GIMP_MEMSIZE_H__ */
61