Update Spanish translation
[gnumeric.git] / src / go-data-cache-impl.h
blob8a5ddf0f80ccb0f4fb517f57cd3c48e4ba8dc568
1 /*
2 * go-data-cache-impl.h :
4 * Copyright (C) 2008 Jody Goldberg (jody@gnome.org)
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 the
9 * License, or (at your option) version 3.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
19 * USA
21 #ifndef GO_DATA_CACHE_IMPL_H
22 #define GO_DATA_CACHE_IMPL_H
24 #include <go-data-cache.h>
25 #include <glib-object.h>
27 G_BEGIN_DECLS
28 #ifndef GOFFICE_NAMESPACE_DISABLE
30 struct _GODataCache {
31 GObject base;
33 GODataCacheSource *data_source;
34 GPtrArray *fields;
36 unsigned int record_size;
37 unsigned int records_len;
38 unsigned int records_allocated;
39 guint8 *records;
41 char *refreshed_by;
42 GOVal *refreshed_on;
43 gboolean refresh_upgrades;
45 /* store some XL specific versioning to simplify round trips */
46 unsigned int XL_created_ver, XL_refresh_ver;
48 typedef struct {
49 GObjectClass base;
50 } GODataCacheClass;
52 /* utility macro */
53 #define go_data_cache_records_index(c, i) ((c)->records + ((c)->record_size * (i)))
55 #endif
56 G_END_DECLS
58 #endif /* GO_DATA_CACHE_IMPL_H */