diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2010-09-02 11:43:11 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2010-09-02 11:43:11 +0100 |
commit | 0d01d56d81ae6eabc35500f3192078b5e232f057 (patch) | |
tree | ed5288277f2bb707aa9829a6b518deecfc88e7ff /docs | |
parent | eafe748ae1aa1fe46357b698f90ed5dc98d03971 (diff) |
Introduce a new OsinfoProduct abstract class
It is neccessary to track upgrades/clones/derives relationships
for platforms as well as operating systems. Introduce a common
parent class for both called OsinfoProduct
* data/libosinfo-dummy-data.xml: Make platform XML use the
common product XML attributes/relationships
* docs/reference/Libosinfo-docs.xml, docs/reference/Libosinfo-sections.txt,
docs/reference/Libosinfo.types: Update for new/renamed classes
* osinfo/Makefile.am, osinfo/libosinfo.syms,
osinfo/osinfo.h: New OsinfoProduct class
* osinfo/osinfo_product.c, osinfo/osinfo_product.h,
osinfo/osinfo_productlist.h, osinfo/osinfo_productlist.c: New
classes
* osinfo/osinfo_os.c, osinfo/osinfo_os.h,
osinfo/osinfo_platform.c, osinfo/osinfo_platform.h: Change
to inherit from OsinfoProduct
* osinfo/osinfo_oslist.c, osinfo/osinfo_oslist.h,
osinfo/osinfo_platformlist.c, osinfo/osinfo_platformlist.h:
Change to inherit from OsinfoProductList
* osinfo/osinfo_db.c, osinfo/osinfo_db.h, osinfo/osinfo_loader.c:
Update for new class hierarchy
* osinfo/osinfo_osfilter.c, osinfo/osinfo_osfilter.h,
osinfo/osinfo_osfilter.h, osinfo/osinfo_productfilter.h: Rename
filter class
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/Libosinfo-docs.xml | 4 | ||||
-rw-r--r-- | docs/reference/Libosinfo-sections.txt | 80 | ||||
-rw-r--r-- | docs/reference/Libosinfo.types | 4 |
3 files changed, 65 insertions, 23 deletions
diff --git a/docs/reference/Libosinfo-docs.xml b/docs/reference/Libosinfo-docs.xml index 76f9451..fed358d 100644 --- a/docs/reference/Libosinfo-docs.xml +++ b/docs/reference/Libosinfo-docs.xml @@ -22,12 +22,14 @@ <xi:include href="xml/osinfo_devicelinklist.xml"/> <xi:include href="xml/osinfo_entity.xml"/> <xi:include href="xml/osinfo_filter.xml"/> + <xi:include href="xml/osinfo_product.xml"/> + <xi:include href="xml/osinfo_productfilter.xml"/> + <xi:include href="xml/osinfo_productlist.xml"/> <xi:include href="xml/osinfo_platform.xml"/> <xi:include href="xml/osinfo_platformlist.xml"/> <xi:include href="xml/osinfo_list.xml"/> <xi:include href="xml/osinfo_loader.xml"/> <xi:include href="xml/osinfo_os.xml"/> - <xi:include href="xml/osinfo_osfilter.xml"/> <xi:include href="xml/osinfo_oslist.xml"/> </chapter> <chapter id="object-tree"> diff --git a/docs/reference/Libosinfo-sections.txt b/docs/reference/Libosinfo-sections.txt index 0ad7783..bc20e77 100644 --- a/docs/reference/Libosinfo-sections.txt +++ b/docs/reference/Libosinfo-sections.txt @@ -15,9 +15,10 @@ osinfo_db_add_os osinfo_db_add_platform osinfo_db_add_device osinfo_db_unique_values_for_property_in_os -osinfo_db_unique_values_for_property_in_hv +osinfo_db_unique_values_for_property_in_platform osinfo_db_unique_values_for_property_in_dev osinfo_db_unique_values_for_os_relationship +osinfo_db_unique_values_for_platform_relationship <SUBSECTION Standard> OSINFO_DB OSINFO_IS_DB @@ -75,20 +76,36 @@ OSINFO_LOADER_GET_CLASS </SECTION> <SECTION> +<FILE>osinfo_product</FILE> +<TITLE>OsinfoProduct</TITLE> +OsinfoProduct +OsinfoProductClass +OsinfoProductPrivate +OsinfoProductRelationship +osinfo_product_get_related +osinfo_product_add_related +<SUBSECTION Standard> +OSINFO_PRODUCT +OSINFO_IS_PRODUCT +OSINFO_TYPE_PRODUCT +osinfo_product_get_type +OSINFO_PRODUCT_CLASS +OSINFO_IS_PRODUCT_CLASS +OSINFO_PRODUCT_GET_CLASS +</SECTION> + +<SECTION> <FILE>osinfo_os</FILE> <TITLE>OsinfoOs</TITLE> OsinfoOs OsinfoOsClass OsinfoOsPrivate -OsinfoOsRelationship osinfo_os_new osinfo_os_get_preferred_device osinfo_os_get_preferred_device_link -osinfo_os_get_related osinfo_os_get_devices osinfo_os_get_device_links osinfo_os_add_device -osinfo_os_add_related_os <SUBSECTION Standard> OSINFO_OS OSINFO_IS_OS @@ -208,24 +225,45 @@ OSINFO_DEVICELINKLIST_GET_CLASS </SECTION> <SECTION> -<FILE>osinfo_osfilter</FILE> -<TITLE>OsinfoOsfilter</TITLE> -OsinfoOsfilter -OsinfoOsfilterClass -OsinfoOsfilterPrivate -osinfo_osfilter_new -osinfo_osfilter_add_os_constraint -osinfo_osfilter_clear_os_constraint -osinfo_osfilter_clear_os_constraints -osinfo_osfilter_get_os_constraint_values +<FILE>osinfo_productfilter</FILE> +<TITLE>OsinfoProductFilter</TITLE> +OsinfoProductFilter +OsinfoProductFilterClass +OsinfoProductFilterPrivate +osinfo_productfilter_new +osinfo_productfilter_add_product_constraint +osinfo_productfilter_clear_product_constraint +osinfo_productfilter_clear_product_constraints +osinfo_productfilter_get_product_constraint_values +<SUBSECTION Standard> +OSINFO_PRODUCTFILTER +OSINFO_IS_PRODUCTFILTER +OSINFO_TYPE_PRODUCTFILTER +osinfo_productfilter_get_type +OSINFO_PRODUCTFILTER_CLASS +OSINFO_IS_PRODUCTFILTER_CLASS +OSINFO_PRODUCTFILTER_GET_CLASS +</SECTION> + +<SECTION> +<FILE>osinfo_productlist</FILE> +<TITLE>OsinfoProductList</TITLE> +OsinfoProductList +OsinfoProductListClass +OsinfoProductListPrivate +osinfo_productlist_new +osinfo_productlist_new_copy +osinfo_productlist_new_filtered +osinfo_productlist_new_intersection +osinfo_productlist_new_union <SUBSECTION Standard> -OSINFO_OSFILTER -OSINFO_IS_OSFILTER -OSINFO_TYPE_OSFILTER -osinfo_osfilter_get_type -OSINFO_OSFILTER_CLASS -OSINFO_IS_OSFILTER_CLASS -OSINFO_OSFILTER_GET_CLASS +OSINFO_PRODUCTLIST +OSINFO_IS_PRODUCTLIST +OSINFO_TYPE_PRODUCTLIST +osinfo_productlist_get_type +OSINFO_PRODUCTLIST_CLASS +OSINFO_IS_PRODUCTLIST_CLASS +OSINFO_PRODUCTLIST_GET_CLASS </SECTION> <SECTION> diff --git a/docs/reference/Libosinfo.types b/docs/reference/Libosinfo.types index e90b674..5955684 100644 --- a/docs/reference/Libosinfo.types +++ b/docs/reference/Libosinfo.types @@ -7,6 +7,8 @@ osinfo_platform_get_type osinfo_platformlist_get_type osinfo_list_get_type osinfo_loader_get_type +osinfo_product_get_type +osinfo_productfilter_get_type +osinfo_productlist_get_type osinfo_os_get_type -osinfo_osfilter_get_type osinfo_oslist_get_type |