diff options
author | Max Kellermann <max@duempel.org> | 2013-01-03 01:36:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 01:36:28 +0100 |
commit | f5a92d6cc39ea15ea8aa4cc35ee742a646b12508 (patch) | |
tree | 0797bc80790ce919880a43bb032bd991fe7b2a4b /src/Directory.hxx | |
parent | 3e8047e5831b4cc7dabae596746066698ad7c8cd (diff) | |
download | mpd-f5a92d6cc39ea15ea8aa4cc35ee742a646b12508.tar.gz mpd-f5a92d6cc39ea15ea8aa4cc35ee742a646b12508.tar.xz mpd-f5a92d6cc39ea15ea8aa4cc35ee742a646b12508.zip |
Directory: add constructor and destructor
Diffstat (limited to 'src/Directory.hxx')
-rw-r--r-- | src/Directory.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Directory.hxx b/src/Directory.hxx index 29c69d6d6..3b2c6b1a3 100644 --- a/src/Directory.hxx +++ b/src/Directory.hxx @@ -90,6 +90,19 @@ struct Directory { bool have_stat; /* not needed if ino_t == dev_t == 0 is impossible */ char path[sizeof(long)]; +protected: + Directory(const char *path); + + gcc_malloc gcc_nonnull_all + static Directory *Allocate(const char *path); + +public: + /** + * Default constructor, needed for #detached_root. + */ + Directory() = default; + ~Directory(); + /** * Generic constructor for #Directory object. */ |