Top |
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.
OsinfoProductFilter *
osinfo_productfilter_new (void
);
Construct a new filter that matches all operating systems
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
void osinfo_productfilter_clear_product_constraint (OsinfoProductFilter *productfilter
,OsinfoProductRelationship relshp
);
Remove all constraints for the relationship relshp
void
osinfo_productfilter_clear_product_constraints
(OsinfoProductFilter *productfilter
);
Remove all relationship constraints
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
.
void osinfo_productfilter_add_support_date_constraint (OsinfoProductFilter *productfilter
,GDate *when
);