diff options
Diffstat (limited to 'src/dbutil.h')
-rw-r--r-- | src/dbutil.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dbutil.h b/src/dbutil.h new file mode 100644 index 0000000..8f6a95a --- /dev/null +++ b/src/dbutil.h @@ -0,0 +1,13 @@ +#ifndef foodbutilhfoo +#define foodbutilhfoo + +#include "dbstruct.h" +#include "context.h" + +int get_meta_by_name_md(struct syrep_db_context *c, const struct syrep_name*name, const struct syrep_md *md, struct syrep_meta *meta); +int get_last_md_by_name(struct syrep_db_context *c, const struct syrep_name *name, struct syrep_md *md); +int get_current_md_by_name(struct syrep_db_context *c, const struct syrep_name *name, struct syrep_md *md); +int get_current_name_by_md(struct syrep_db_context *c, const struct syrep_md *md, struct syrep_name *name); +uint32_t get_version_timestamp(struct syrep_db_context *c, uint32_t v); + +#endif |