diff options
Diffstat (limited to 'src/context.h')
-rw-r--r-- | src/context.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h new file mode 100644 index 0000000..6e51b1c --- /dev/null +++ b/src/context.h @@ -0,0 +1,28 @@ +#ifndef foocontexthfoo +#define foocontexthfoo + +#include <db.h> +#include <stdint.h> + +struct syrep_db_context { + struct package *package; + + DB *db_id_meta, + *db_md_name, + *db_name_md, + *db_name_lastmd, + *db_md_lastname, + *db_version_timestamp; + + uint32_t timestamp; + uint32_t version; + int modified; + + char* origin; +}; + +struct syrep_db_context* db_context_open(const char *path); +int db_context_save(struct syrep_db_context *c, const char *path); +int db_context_free(struct syrep_db_context* c); + +#endif |