summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/kotlin/PathInfo.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/PathInfo.kt b/src/main/kotlin/PathInfo.kt
index c803e17..2aee406 100644
--- a/src/main/kotlin/PathInfo.kt
+++ b/src/main/kotlin/PathInfo.kt
@@ -24,6 +24,13 @@ class PathInfo() {
}
/**
+ * Add a QID to an existing FID. Do nothing if the given FID does not exist.
+ */
+ fun addQIDToFID(fid: UInt, qid: QID) {
+ findByFID(fid)?.qid = qid
+ }
+
+ /**
* Remove a FID.
*/
fun removeFID(fid: UInt) {