shumate/shumate-memory-cache-private.h
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* | ||
| 2 | * Copyright (C) 2010-2013 Jiri Techet <techet@gmail.com> | ||
| 3 | * Copyright (C) 2019 Marcus Lundblad <ml@update.uu.se> | ||
| 4 | * | ||
| 5 | * This library is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU Lesser General Public | ||
| 7 | * License as published by the Free Software Foundation; either | ||
| 8 | * version 2.1 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This library is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * Lesser General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU Lesser General Public | ||
| 16 | * License along with this library; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | */ | ||
| 19 | |||
| 20 | #pragma once | ||
| 21 | |||
| 22 | #include <glib-object.h> | ||
| 23 | #include <shumate/shumate-tile.h> | ||
| 24 | |||
| 25 | G_BEGIN_DECLS | ||
| 26 | |||
| 27 | #define SHUMATE_TYPE_MEMORY_CACHE shumate_memory_cache_get_type () | ||
| 28 |
7/14None:
✓ Branch 11 → 12 taken 2 times.
✗ Branch 11 → 13 not taken.
✓ Branch 17 → 18 taken 2 times.
✗ Branch 17 → 19 not taken.
✓ Branch 20 → 21 taken 2 times.
✗ Branch 20 → 22 not taken.
✓ Branch 31 → 32 taken 4 times.
✗ Branch 31 → 33 not taken.
SHUMATE_IS_MEMORY_CACHE:
✓ Branch 3 → 4 taken 94 times.
✗ Branch 3 → 7 not taken.
✓ Branch 4 → 5 taken 94 times.
✗ Branch 4 → 6 not taken.
✗ Branch 5 → 6 not taken.
✓ Branch 5 → 7 taken 94 times.
|
104 | G_DECLARE_FINAL_TYPE (ShumateMemoryCache, shumate_memory_cache, SHUMATE, MEMORY_CACHE, GObject) |
| 29 | |||
| 30 | ShumateMemoryCache *shumate_memory_cache_new_full (guint size_limit); | ||
| 31 | |||
| 32 | guint shumate_memory_cache_get_size_limit (ShumateMemoryCache *memory_cache); | ||
| 33 | void shumate_memory_cache_set_size_limit (ShumateMemoryCache *memory_cache, | ||
| 34 | guint size_limit); | ||
| 35 | |||
| 36 | void shumate_memory_cache_clean (ShumateMemoryCache *memory_cache); | ||
| 37 | |||
| 38 | gboolean shumate_memory_cache_try_fill_tile (ShumateMemoryCache *self, | ||
| 39 | ShumateTile *tile, | ||
| 40 | const char *source_id); | ||
| 41 | void shumate_memory_cache_store_tile (ShumateMemoryCache *self, | ||
| 42 | ShumateTile *tile, | ||
| 43 | const char *source_id); | ||
| 44 | |||
| 45 | G_END_DECLS | ||
| 46 | |||
| 47 |