Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 21 lines (15 sloc) 0.5 kb
a941d5e3 »
2010-04-01 introduce notes-cache interface
1 #ifndef NOTES_CACHE_H
2 #define NOTES_CACHE_H
3
4 #include "notes.h"
5
6 struct notes_cache {
7 struct notes_tree tree;
8 char *validity;
9 };
10
11 void notes_cache_init(struct notes_cache *c, const char *name,
12 const char *validity);
13 int notes_cache_write(struct notes_cache *c);
14
15 char *notes_cache_get(struct notes_cache *c, unsigned char sha1[20], size_t
16 *outsize);
17 int notes_cache_put(struct notes_cache *c, unsigned char sha1[20],
18 const char *data, size_t size);
19
20 #endif /* NOTES_CACHE_H */
Something went wrong with that request. Please try again.