![]() |
![]() |
![]() |
ZIF Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define ZIF_LEGAL_ERROR ZifLegal; ZifLegalClass; enum ZifLegalError; GQuark zif_legal_error_quark (void
); gboolean zif_legal_is_free (ZifLegal *legal
,const gchar *string
,gboolean *is_free
,GError **error
); ZifLegal * zif_legal_new (void
); void zif_legal_set_filename (ZifLegal *legal
,const gchar *filename
);
ZifLegal allows the user to see if a specific license string is free
according to the FSF.
Before checking any strings, the backing legal file has to be set with
zif_legal_set_filename()
and any checks prior to that will fail.
gboolean zif_legal_is_free (ZifLegal *legal
,const gchar *string
,gboolean *is_free
,GError **error
);
Finds out if the package is classified as free software.
|
A ZifLegal |
|
String to check, e.g. "Zend and wxWidgets" |
|
If the string is a can be considered free |
|
A GError, or NULL
|
Returns : |
FALSE for failure to load legal data.
|
Since 0.1.0