From 0d6adf14229437e2ce9bd819f2374187ac75c3d0 Mon Sep 17 00:00:00 2001
From: Anders Blomdell <anders.blomdell@control.lth.se>
Date: Thu, 6 Dec 2018 10:46:46 +0100
Subject: [PATCH] Add auto-generated files to repo to allow 'cargo package to
 work correctly'

---
 src/.gitignore |  2 --
 src/libhash.h  | 12 ++++++++++++
 src/libhash.rs | 22 ++++++++++++++++++++++
 3 files changed, 34 insertions(+), 2 deletions(-)
 delete mode 100644 src/.gitignore
 create mode 100644 src/libhash.h
 create mode 100644 src/libhash.rs

diff --git a/src/.gitignore b/src/.gitignore
deleted file mode 100644
index 2697fc6..0000000
--- a/src/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/libhash.h
-/libhash.rs
diff --git a/src/libhash.h b/src/libhash.h
new file mode 100644
index 0000000..3b80095
--- /dev/null
+++ b/src/libhash.h
@@ -0,0 +1,12 @@
+enum {
+  FLAGS_READ_XATTR=0x0001,
+  FLAGS_WRITE_XATTR=0x0002,
+  FLAGS_CLEAR_XATTR=0x0004,
+  FLAGS_MAX_AGE=0x0008,
+  FLAGS_NO_CALC_HASH=0x0010,
+  FLAGS_VERBOSE_MASK=0xc000,
+  FLAGS_VERBOSE0=0x0000,
+  FLAGS_VERBOSE1=0x4000,
+  FLAGS_VERBOSE2=0x8000,
+  FLAGS_VERBOSE3=0xc000,
+};
diff --git a/src/libhash.rs b/src/libhash.rs
new file mode 100644
index 0000000..4278474
--- /dev/null
+++ b/src/libhash.rs
@@ -0,0 +1,22 @@
+use std;
+
+#[allow(dead_code)]
+pub const FLAGS_READ_XATTR : std::os::raw::c_int = 0x0001;
+#[allow(dead_code)]
+pub const FLAGS_WRITE_XATTR : std::os::raw::c_int = 0x0002;
+#[allow(dead_code)]
+pub const FLAGS_CLEAR_XATTR : std::os::raw::c_int = 0x0004;
+#[allow(dead_code)]
+pub const FLAGS_MAX_AGE : std::os::raw::c_int = 0x0008;
+#[allow(dead_code)]
+pub const FLAGS_NO_CALC_HASH : std::os::raw::c_int = 0x0010;
+#[allow(dead_code)]
+pub const FLAGS_VERBOSE_MASK : std::os::raw::c_int = 0xc000;
+#[allow(dead_code)]
+pub const FLAGS_VERBOSE0 : std::os::raw::c_int = 0x0000;
+#[allow(dead_code)]
+pub const FLAGS_VERBOSE1 : std::os::raw::c_int = 0x4000;
+#[allow(dead_code)]
+pub const FLAGS_VERBOSE2 : std::os::raw::c_int = 0x8000;
+#[allow(dead_code)]
+pub const FLAGS_VERBOSE3 : std::os::raw::c_int = 0xc000;
-- 
GitLab