Switch to unified view

a/src/utils/circache.h b/src/utils/circache.h
...
...
35
 * It is assumed that the dictionary are small (they are routinely read/parsed)
35
 * It is assumed that the dictionary are small (they are routinely read/parsed)
36
 *
36
 *
37
 */
37
 */
38
38
39
#include <sys/types.h>
39
#include <sys/types.h>
40
#include <stdint.h>
40
41
41
#include <string>
42
#include <string>
42
43
43
class ConfSimple;
44
class ConfSimple;
44
class CirCacheInternal;
45
class CirCacheInternal;
...
...
55
                      // is stored.
56
                      // is stored.
56
                      CC_CRUNIQUE = 1,
57
                      CC_CRUNIQUE = 1,
57
                      // Truncate file (restart from scratch).
58
                      // Truncate file (restart from scratch).
58
                      CC_CRTRUNCATE = 2
59
                      CC_CRTRUNCATE = 2
59
                     };
60
                     };
60
    virtual bool create(off_t maxsize, int flags);
61
    virtual bool create(int64_t maxsize, int flags);
61
62
62
    enum OpMode {CC_OPREAD, CC_OPWRITE};
63
    enum OpMode {CC_OPREAD, CC_OPWRITE};
63
    virtual bool open(OpMode mode);
64
    virtual bool open(OpMode mode);
64
65
65
    virtual std::string getpath();
66
    virtual std::string getpath();