diff options
Diffstat (limited to 'src/dbutil.h')
-rw-r--r-- | src/dbutil.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/dbutil.h b/src/dbutil.h index f267e50..dd4acd2 100644 --- a/src/dbutil.h +++ b/src/dbutil.h @@ -24,10 +24,15 @@ #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); +int get_meta_by_nrecno_md(struct syrep_db_context *c, const struct syrep_nrecno*nrecno, const struct syrep_md *md, struct syrep_meta *meta); +int get_last_md_by_nrecno(struct syrep_db_context *c, const struct syrep_nrecno *nrecno, struct syrep_md *md); +int get_current_md_by_nrecno(struct syrep_db_context *c, const struct syrep_nrecno *nrecno, struct syrep_md *md); +int get_current_nrecno_by_md(struct syrep_db_context *c, const struct syrep_md *md, struct syrep_nrecno *nrecno); uint32_t get_version_timestamp(struct syrep_db_context *c, uint32_t v); +int get_nrecno_by_name(struct syrep_db_context *c, const struct syrep_name *name, struct syrep_nrecno *nrecno, int create); +int get_name_by_nrecno(struct syrep_db_context *c, const struct syrep_nrecno *nrecno, struct syrep_name *name); + +int new_name(struct syrep_db_context *c, const struct syrep_name *name, struct syrep_nrecno *rnrecno); + #endif |