#ifndef _REPO_H_e24b12ff_ #define _REPO_H_e24b12ff_ /* This file is in the public domain. */ #include "structs.h" typedef struct repo_priv REPO_PRIV; typedef struct repo_cursor REPO_CURSOR; struct repo { REPO *link; char *name; char *filename; DATATYPE type; TIMEINTVL maxgap; REPO_PRIV *priv; } ; extern REPO_PRIV *repo_open(const char *, void (*)(const char *, ...)); extern int repo_same(REPO_PRIV *, REPO_PRIV *); extern void repo_close(REPO_PRIV *); extern void repo_free(REPO *); extern void repo_free_chain(REPO *); extern REPO *repo_lookup(LISTEN *, const char *, void (*)(const char *, ...)); extern void repo_record(REPO *, unsigned long long int, const char *, void (*)(const char *, ...)); extern REPO_CURSOR *repo_cursor_open(REPO *, TIMESTAMP, TIMESTAMP); extern void repo_cursor_close(REPO_CURSOR *); extern void repo_cursor_rewind(REPO_CURSOR *); extern int repo_cursor_eof(REPO_CURSOR *); extern TIMESTAMP repo_cursor_stamp(REPO_CURSOR *); extern const char *repo_cursor_data(REPO_CURSOR *); extern void repo_cursor_advance(REPO_CURSOR *); #endif