| Libosinfo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#define OSINFO_PRODUCT_PROP_VENDOR #define OSINFO_PRODUCT_PROP_VERSION #define OSINFO_PRODUCT_PROP_SHORT_ID #define OSINFO_PRODUCT_PROP_NAME #define OSINFO_PRODUCT_PROP_RELEASE_DATE #define OSINFO_PRODUCT_PROP_EOL_DATE #define OSINFO_PRODUCT_PROP_CODENAME #define OSINFO_PRODUCT_PROP_LOGO struct OsinfoProduct; struct OsinfoProductClass; enum OsinfoProductRelationship; OsinfoProductList * osinfo_product_get_related (OsinfoProduct *product,OsinfoProductRelationship relshp); void osinfo_product_add_related (OsinfoProduct *product,OsinfoProductRelationship relshp,OsinfoProduct *otherproduct); const gchar * osinfo_product_get_vendor (OsinfoProduct *prod); const gchar * osinfo_product_get_version (OsinfoProduct *prod); const gchar * osinfo_product_get_short_id (OsinfoProduct *prod); const gchar * osinfo_product_get_name (OsinfoProduct *prod); const gchar * osinfo_product_get_codename (OsinfoProduct *prod); const gchar * osinfo_product_get_release_date_string (OsinfoProduct *prod); const gchar * osinfo_product_get_eol_date_string (OsinfoProduct *prod); GDate * osinfo_product_get_release_date (OsinfoProduct *prod); GDate * osinfo_product_get_eol_date (OsinfoProduct *prod); const gchar * osinfo_product_get_logo (OsinfoProduct *prod);
"codename" gchar* : Read "logo" gchar* : Read "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 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] |
const gchar * osinfo_product_get_release_date_string
(OsinfoProduct *prod);
const gchar * osinfo_product_get_eol_date_string (OsinfoProduct *prod);