File: attrcache.h

package info (click to toggle)
tinymux 2.10.1.14-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 6,212 kB
  • ctags: 8,535
  • sloc: cpp: 111,587; sh: 5,867; ansic: 141; makefile: 139
file content (26 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*! \file attrcache.h
 * \brief Attribute caching module.
 *
 * $Id: attrcache.h 1411 2007-03-14 17:37:23Z brazilofmux $
 *
 */

#ifndef _ATTRCACHE_H
#define _ATTRCACHE_H

typedef struct Aname
{
    unsigned int    object;
    unsigned int    attrnum;
} Aname;

extern const UTF8 *cache_get(Aname *nam, size_t *pLen);
extern bool cache_put(Aname *nam, const UTF8 *obj, size_t len);
extern int  cache_init(const UTF8 *game_dir_file, const UTF8 *game_pag_file,
    int nCachePages);
extern void cache_close(void);
extern void cache_tick(void);
extern bool cache_sync(void);
extern void cache_del(Aname *nam);

#endif // !_ATTRCACHE_H