summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index e47d9737..d76eac1a 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -223,6 +223,12 @@ struct guestfs_h
* matter for this case because we only care if it is != 0.
*/
int user_cancel;
+
+ /* Used to generate unique numbers, eg for temp files. To use this,
+ * '++g->unique'. Note these are only unique per-handle, not
+ * globally unique.
+ */
+ int unique;
};
/* Per-filesystem data stored for inspect_os. */