]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/xattr.h
Loose #ifdef and use const bool wrapper for some cleaner coding.
[bacula/bacula] / bacula / src / filed / xattr.h
index ba66e1de4f87791ac7e589ffc65d104682ad9be6..90800a038539f0ba2937d4da78cf77654291d163 100644 (file)
 /*
  * Internal representation of an extended attribute.
  */
-typedef struct xattr {
+struct xattr_t {
    uint32_t magic;
    uint32_t name_length;
    char *name;
    uint32_t value_length;
    char *value;
-} xattr_t;
+};
 
 /*
  * Internal representation of an extended attribute hardlinked file.
  */
-typedef struct xattr_link_cache_entry {
+struct xattr_link_cache_entry_t {
    uint32_t inum;
    char target[PATH_MAX];
-} xattr_link_cache_entry_t;
+};
+
+/*
+ * Internal tracking data.
+ */
+struct xattr_data_t {
+   POOLMEM *content;
+   uint32_t content_length;
+   uint32_t nr_errors;
+   uint32_t nr_saved;
+   alist *link_cache;
+};
 
 /*
  * Maximum size of the XATTR stream this prevents us from blowing up the filed.