![]() |
![]() |
![]() |
Libosinfo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct OsinfoProduct; struct OsinfoProductClass; OsinfoProductPrivate; enum OsinfoProductRelationship; OsinfoProductList * osinfo_product_get_related (OsinfoProduct *product
,OsinfoProductRelationship relshp
); void osinfo_product_add_related (OsinfoProduct *product
,OsinfoProductRelationship relshp
,OsinfoProduct *otherproduct
);
"name" gchar* : Read "short-id" gchar* : Read "vendor" gchar* : Read "version" gchar* : Read
OsinfoProduct is an entity representing an software product. There are relationships amongst products to declare which are newest releases, which are clones and which are derived from a common ancestry.
struct OsinfoProductClass { OsinfoEntityClass parent_class; /* class members */ };
typedef enum { OSINFO_PRODUCT_RELATIONSHIP_DERIVES_FROM, OSINFO_PRODUCT_RELATIONSHIP_UPGRADES, OSINFO_PRODUCT_RELATIONSHIP_CLONES, } OsinfoProductRelationship;
Enum values used to form relationships between products
OsinfoProductList * osinfo_product_get_related (OsinfoProduct *product
,OsinfoProductRelationship relshp
);
Get a list of products satisfying the the requested relationship
|
an product |
|
the relationship to query |
Returns : |
a list of related products. [transfer full] |
void osinfo_product_add_related (OsinfoProduct *product
,OsinfoProductRelationship relshp
,OsinfoProduct *otherproduct
);
Add an association between two products
|
a product |
|
the relationship |
|
the product to relate to. [transfer none] |