]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/bc_types.h
To prevent breakage of existing scripts, reorder the commands.
[bacula/bacula] / bacula / src / bc_types.h
index c90392f046d5a71bd309e36e23a49becfb248fda..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;
 
 
@@ -197,4 +211,16 @@ typedef float             float32_t;
 #define sockopt_val_t void *
 #endif
 
+/*
+ * Status codes returned by create_file()
+ *   Used in findlib, filed, and plugins
+ */
+enum {
+   CF_SKIP = 1,                       /* skip file (not newer or something) */
+   CF_ERROR,                          /* error creating file */
+   CF_EXTRACT,                        /* file created, data to extract */
+   CF_CREATED                         /* file created, no data to extract */
+};
+
+
 #endif /* __bc_types_INCLUDED */