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
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>
28 #ifndef GOFFICE_NAMESPACE_DISABLE
33 GODataCacheSource
*data_source
;
36 unsigned int record_size
;
37 unsigned int records_len
;
38 unsigned int records_allocated
;
43 gboolean refresh_upgrades
;
45 /* store some XL specific versioning to simplify round trips */
46 unsigned int XL_created_ver
, XL_refresh_ver
;
53 #define go_data_cache_records_index(c, i) ((c)->records + ((c)->record_size * (i)))
58 #endif /* GO_DATA_CACHE_IMPL_H */