| Libosinfo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
struct OsinfoProductFilter; struct OsinfoProductFilterClass; OsinfoProductFilter * osinfo_productfilter_new (void); gint osinfo_productfilter_add_product_constraint (OsinfoProductFilter *productfilter,OsinfoProductRelationship relshp,OsinfoProduct *product); void osinfo_productfilter_clear_product_constraint (OsinfoProductFilter *productfilter,OsinfoProductRelationship relshp); void osinfo_productfilter_clear_product_constraints (OsinfoProductFilter *productfilter); GList * osinfo_productfilter_get_product_constraint_values (OsinfoProductFilter *productfilter,OsinfoProductRelationship relshp); void osinfo_productfilter_add_support_date_constraint (OsinfoProductFilter *productfilter,GDate *when);
OsinfoProductFilter is a specialization of OsinfoFilter that can also set constraints against operating system relationships. It can only be used to filter entities that are OsinfoProduct objects.
struct OsinfoProductFilterClass {
OsinfoFilterClass parent_class;
/* class members */
};
OsinfoProductFilter * osinfo_productfilter_new (void);
Construct a new filter that matches all operating systems
Returns : |
a new filter. [transfer full] |
gint osinfo_productfilter_add_product_constraint (OsinfoProductFilter *productfilter,OsinfoProductRelationship relshp,OsinfoProduct *product);
Adds a constraint that matches products which
have a relationship relshp with product. Multiple constraints
can be set for the same relshp or product, in which case
all must match
|
a filter object |
|
the relationship to filter on |
|
the target product to filter on. [transfer none] |
void osinfo_productfilter_clear_product_constraint (OsinfoProductFilter *productfilter,OsinfoProductRelationship relshp);
Remove all constraints for the relationship relshp
|
a filter object |
|
the relationship to clear |
void osinfo_productfilter_clear_product_constraints
(OsinfoProductFilter *productfilter);
Remove all relationship constraints
|
a filter object |
GList * osinfo_productfilter_get_product_constraint_values (OsinfoProductFilter *productfilter,OsinfoProductRelationship relshp);
Retrieve a list of all operating systems that are
the target of constraint for the relationship
relshp.
|
a filter object |
|
a relationship to query |
Returns : |
a list of operating systems. [transfer container][element-type OsinfoProduct] |
void osinfo_productfilter_add_support_date_constraint (OsinfoProductFilter *productfilter,GDate *when);