diff options
Diffstat (limited to 'src/UpdateQueue.hxx')
-rw-r--r-- | src/UpdateQueue.hxx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/UpdateQueue.hxx b/src/UpdateQueue.hxx index 80c15f600..2769cc589 100644 --- a/src/UpdateQueue.hxx +++ b/src/UpdateQueue.hxx @@ -26,19 +26,21 @@ struct UpdateQueueItem { std::string path_utf8; + unsigned id; bool discard; - UpdateQueueItem() = default; - UpdateQueueItem(const char *_path, bool _discard) - :path_utf8(_path), discard(_discard) {} + UpdateQueueItem():id(0) {} + UpdateQueueItem(const char *_path, bool _discard, + unsigned _id) + :path_utf8(_path), id(_id), discard(_discard) {} bool IsDefined() const { - return !path_utf8.empty(); + return id != 0; } }; -unsigned -update_queue_push(const char *path, bool discard, unsigned base); +bool +update_queue_push(const char *path, bool discard, unsigned id); UpdateQueueItem update_queue_shift(); |