Signed-off-by: Fabiano Fidêncio <fabiano@xxxxxxxxxxxx> --- osinfo/osinfo_os.c | 21 +++++++++++++++++++-- osinfo/osinfo_os_private.h | 1 + 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/osinfo/osinfo_os.c b/osinfo/osinfo_os.c index c396565..0e3bb3c 100644 --- a/osinfo/osinfo_os.c +++ b/osinfo/osinfo_os.c @@ -877,14 +877,17 @@ OsinfoResourcesList *osinfo_os_get_minimum_resources(OsinfoOs *os) } /** - * osinfo_os_get_maximum_resources: + * osinfo_os_get_maximum_resources_without_inheritance: * @os: an operating system * * Get the list of maximum resources for the operating system @os. * + * Mind that this method is *private*! + * * Returns: (transfer full): A list of resources */ -OsinfoResourcesList *osinfo_os_get_maximum_resources(OsinfoOs *os) +OsinfoResourcesList * +osinfo_os_get_maximum_resources_without_inheritance(OsinfoOs *os) { g_return_val_if_fail(OSINFO_IS_OS(os), NULL); @@ -897,6 +900,20 @@ OsinfoResourcesList *osinfo_os_get_maximum_resources(OsinfoOs *os) } /** + * osinfo_os_get_maximum_resources: + * @os: an operating system + * + * Get the list of maximum resources for the operating system @os. + * + * Returns: (transfer full): A list of resources + */ +OsinfoResourcesList *osinfo_os_get_maximum_resources(OsinfoOs *os) +{ + return osinfo_os_get_resources_internal + (os, osinfo_os_get_maximum_resources_without_inheritance); +} + +/** * osinfo_os_get_recommended_resources_without_inheritance: * @os: an operating system * diff --git a/osinfo/osinfo_os_private.h b/osinfo/osinfo_os_private.h index d8a13b2..3b0e2ce 100644 --- a/osinfo/osinfo_os_private.h +++ b/osinfo/osinfo_os_private.h @@ -28,6 +28,7 @@ OsinfoResourcesList *osinfo_os_get_minimum_resources_without_inheritance(OsinfoOs *os); OsinfoResourcesList *osinfo_os_get_recommended_resources_without_inheritance(OsinfoOs *os); +OsinfoResourcesList *osinfo_os_get_maximum_resources_without_inheritance(OsinfoOs *os); #endif /* __OSINFO_OS_PRIVATE_H__ */ /* -- 1.8.3.1 _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo