Changeset 147 for trunk/include/lru_cache.h
- Timestamp:
- 02/22/09 14:31:52 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/lru_cache.h
r122 r147 1 1 /* 2 * Copyright (C) 2008 Timothy D. Morgan2 * Copyright (C) 2008-2009 Timothy D. Morgan 3 3 * 4 4 * This program is free software; you can redistribute it and/or modify … … 27 27 #include <string.h> 28 28 #include <unistd.h> 29 #include "talloc.h" 29 30 30 31 struct lru_cache_element; … … 50 51 lru_cache_element* newest; 51 52 lru_cache_element** table; 52 bool free_data;53 bool talloc_data; 53 54 } lru_cache; 54 55 55 56 56 lru_cache* lru_cache_create(uint32_t max_keys, uint32_t secret, bool free_data); 57 lru_cache* lru_cache_create(uint32_t max_keys, uint32_t secret); 58 lru_cache* lru_cache_create_ctx(void* talloc_ctx, uint32_t max_keys, 59 uint32_t secret, bool talloc_data); 57 60 void lru_cache_destroy(lru_cache* ht); 58 61 59 /* Returns a pointer to the old, replaced data stored at index.60 * Returns NULL if no entry was overwritten.62 /* 63 * 61 64 */ 62 65 bool lru_cache_update(lru_cache* ht, const void* index,
Note: See TracChangeset
for help on using the changeset viewer.