Skip to content

Commit be589d5

Browse files
authored
Merge pull request #20 from rwmjones/2025-inspector
Virt-inspector: Add <class> and <windows_group_policy/>
2 parents a39ae0b + d56129c commit be589d5

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

common

inspector/inspector.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ output_root (xmlTextWriterPtr xo, char *root)
439439
if (str)
440440
single_element ("windows_current_control_set", str);
441441
free (str);
442+
i = guestfs_inspect_get_windows_group_policy (g, root);
443+
if (i > 0)
444+
empty_element ("windows_group_policy");
442445
guestfs_pop_error_handler (g);
443446

444447
str = guestfs_inspect_get_hostname (g, root);
@@ -697,6 +700,8 @@ output_applications (xmlTextWriterPtr xo, char *root)
697700
single_element ("summary", apps->val[i].app2_summary);
698701
if (apps->val[i].app2_description && apps->val[i].app2_description[0])
699702
single_element ("description", apps->val[i].app2_description);
703+
if (apps->val[i].app2_class && apps->val[i].app2_class[0])
704+
single_element ("class", apps->val[i].app2_class);
700705
} end_element ();
701706
}
702707
} end_element ();

inspector/virt-inspector.rng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<element name="minor_version"><text/></element>
3636
<optional><element name="windows_systemroot"><text/></element></optional>
3737
<optional><element name="windows_current_control_set"><text/></element></optional>
38+
<optional><element name="windows_group_policy"><empty/></element></optional>
3839
<optional><ref name="ospackageformat"/></optional>
3940
<optional><ref name="ospackagemanagement"/></optional>
4041
<optional><element name="hostname"><text/></element></optional>
@@ -212,6 +213,7 @@
212213
<optional><element name="source_package"><text/></element></optional>
213214
<optional><element name="summary"><text/></element></optional>
214215
<optional><element name="description"><text/></element></optional>
216+
<optional><element name="class"><text/></element></optional>
215217
</element>
216218
</zeroOrMore>
217219
</element>

m4/guestfs-libraries.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ dnl Any C libraries required by the libguestfs C library (not the daemon).
2020
dnl Of course we need libguestfs.
2121
dnl
2222
dnl We need libguestfs 1.57.1 for guestfs_setfiles.
23-
PKG_CHECK_MODULES([LIBGUESTFS], [libguestfs >= 1.57.1])
23+
dnl We need libguestfs 1.57.6 for guestfs_inspect_get_applications2 app2_class.
24+
dnl We need libguestfs 1.57.6 for guestfs_inspect_get_windows_group_policy
25+
PKG_CHECK_MODULES([LIBGUESTFS], [libguestfs >= 1.57.6])
2426
printf "libguestfs version is "; $PKG_CONFIG --modversion libguestfs
2527

2628
dnl Test if it's GNU or XSI strerror_r.

0 commit comments

Comments
 (0)