diff options
| author | C. Morgan Hamill <me@cmhamill.org> | 2015-03-20 15:49:59 +0100 |
|---|---|---|
| committer | C. Morgan Hamill <me@cmhamill.org> | 2015-03-20 15:49:59 +0100 |
| commit | 8a564a9a1f9e4ac9475a43455dd30b2d176243e9 (patch) | |
| tree | 091fb18248e497fa368e113877df1ecfc30e206a /src/database.rs | |
| parent | 8a9a4314f0a39b3e2ea626e7fdbbbbf20ba8e0e8 (diff) | |
| download | mail-8a564a9a1f9e4ac9475a43455dd30b2d176243e9.tar.gz | |
Add database module.
Add `database::Database`, `database::Version`, and `database::Mode`
types.
Diffstat (limited to 'src/database.rs')
| -rw-r--r-- | src/database.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/database.rs b/src/database.rs new file mode 100644 index 0000000..196932c --- /dev/null +++ b/src/database.rs @@ -0,0 +1,11 @@ +use libc; + +use ffi; + +// Re-exported under database module for pretty namespacin'. +pub use ffi::NotmuchDatabaseMode as Mode; + +#[derive(Copy, Debug)] +pub struct Version(libc::c_uint); + +pub struct Database(*mut ffi::notmuch_database_t); |
