summaryrefslogtreecommitdiff
path: root/src/shared/fileregisterfwd.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-02-15 13:44:34 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-18 17:25:05 -0500
commit777d822f13fcd15fc5f5ac0bb45589460a1e16f1 (patch)
tree213efff78d94ed7827e41e2b2d1039871dc37a9e /src/shared/fileregisterfwd.h
parentbbd9bb1fd90576b824f5adda0c3f33f2fcaa0f39 (diff)
cleanup, typedefs
Diffstat (limited to 'src/shared/fileregisterfwd.h')
-rw-r--r--src/shared/fileregisterfwd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/fileregisterfwd.h b/src/shared/fileregisterfwd.h
index b8d33378..6348fee1 100644
--- a/src/shared/fileregisterfwd.h
+++ b/src/shared/fileregisterfwd.h
@@ -35,6 +35,11 @@ struct DirectoryStats;
using FileEntryPtr = boost::shared_ptr<FileEntry>;
using FileIndex = unsigned int;
+using OriginID = int;
+
+constexpr FileIndex InvalidFileIndex = UINT_MAX;
+constexpr OriginID InvalidOriginID = -1;
+
// a vector of {originId, {archiveName, order}}
//
@@ -43,7 +48,7 @@ using FileIndex = unsigned int;
//
// is a file is not in an archive, archiveName is empty and order is usually
// -1
-using AlternativesVector = std::vector<std::pair<int, std::pair<std::wstring, int>>>;
+using AlternativesVector = std::vector<std::pair<OriginID, std::pair<std::wstring, int>>>;
struct DirectoryStats
{