#ifndef foodbstructhfoo #define foodbstructhfoo /* $Id$ */ #include #include #include "syrep.h" struct syrep_md { uint8_t digest[SYREP_DIGESTLENGTH]; }; struct syrep_name { char path[PATH_MAX+1]; }; struct syrep_id { struct syrep_md md; struct syrep_name name; }; struct syrep_meta { uint32_t first_seen; uint32_t last_seen; }; struct syrep_timestamp { uint32_t t; }; struct syrep_version { uint32_t v; }; /* Table layout: * * syrep_id :: syrep_meta => id_meta * syrep_md :: syrep_name => md_name (DUP) * syrep_name :: syrep_md => name_md (DUP) * syrep_version :: syrep_timestamp => version_timestamp * syrep_name :: syrep_md => name_lastmd * syrep_md :: last_md => md_lastmd * */ #endif