]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/bc_types.h
Move definition of FileId_t to bc_types and define it once in the jcr
[bacula/bacula] / bacula / src / bc_types.h
index b5cda8557c6aa1de0e9437cd5410f71f157016a0..00254b2e7c293c33bc7eef2a8d7768a59b28f2b2 100644 (file)
 #ifndef __bc_types_INCLUDED
 #define __bc_types_INCLUDED
 
+/*
+ * These are the sizes of the current definitions of database
+ *  Ids.  In general, FileId_t can be set to uint64_t and it
+ *  *should* work.  Users have reported back that it does work
+ *  for PostgreSQL.  For the other types, all places in Bacula
+ *  have been converted, but no one has actually tested it.
+ * In principle, the only field that really should need to be
+ *  64 bits is the FileId_t
+ */
+typedef uint32_t FileId_t;
+typedef uint32_t DBId_t;              /* general DB id type */
+typedef uint32_t JobId_t;
+
+
 typedef char POOLMEM;