From: Peter Krempa Date: Wed, 6 Jan 2021 15:51:21 +0000 (+0100) Subject: schema: Add define for object names X-Git-Tag: v7.0.0-rc1~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a3c07989b5bee79713e1f2014c0c31443878d1b;p=thirdparty%2Flibvirt.git schema: Add define for object names Objects such as domain, pool, etc re-define the regex for the format. Add more generic types for objects with/without a slash which we'll be able to reuse also for other objects. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/docs/schemas/basictypes.rng b/docs/schemas/basictypes.rng index fc52799466..a221ff6295 100644 --- a/docs/schemas/basictypes.rng +++ b/docs/schemas/basictypes.rng @@ -261,6 +261,19 @@ + + + + [^\n]+ + + + + + + [^/\n]+ + + + [a-zA-Z0-9_\+\-]+ diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 39bed92115..4fc6a7ee7a 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -18,9 +18,7 @@ - - [^\n]+ - + @@ -559,7 +557,7 @@ - + @@ -1391,7 +1389,7 @@ - + @@ -2056,7 +2054,7 @@ - + @@ -3269,7 +3267,7 @@ - + @@ -6944,11 +6942,6 @@ 1000 - - - [^\n]+ - - [A-Za-z0-9_\.\+\- ]+ diff --git a/docs/schemas/storagecommon.rng b/docs/schemas/storagecommon.rng index 54619d4cb0..e3d08a8410 100644 --- a/docs/schemas/storagecommon.rng +++ b/docs/schemas/storagecommon.rng @@ -6,12 +6,6 @@ - - - [^/\n]+ - - - diff --git a/docs/schemas/storagepool.rng b/docs/schemas/storagepool.rng index a87d22f6fc..bd24b8b8d0 100644 --- a/docs/schemas/storagepool.rng +++ b/docs/schemas/storagepool.rng @@ -247,7 +247,7 @@ - + @@ -261,7 +261,7 @@ - +