X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fbc_types.h;h=00254b2e7c293c33bc7eef2a8d7768a59b28f2b2;hb=356bb63b0b087f0658cff19e849ccbebb1eecc59;hp=b5cda8557c6aa1de0e9437cd5410f71f157016a0;hpb=df7a8264902bfa1a09cd0377bf802a6283bac77e;p=bacula%2Fbacula diff --git a/bacula/src/bc_types.h b/bacula/src/bc_types.h index b5cda8557c..00254b2e7c 100644 --- a/bacula/src/bc_types.h +++ b/bacula/src/bc_types.h @@ -48,6 +48,20 @@ #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;