Top |
#define | pk_bitfield_add() |
#define | pk_bitfield_remove() |
#define | pk_bitfield_invert() |
#define | pk_bitfield_contain() |
#define | pk_bitfield_value() |
gint | pk_bitfield_contain_priority () |
PkBitfield | pk_bitfield_from_enums () |
PkBitfield | pk_role_bitfield_from_string () |
gchar * | pk_role_bitfield_to_string () |
PkBitfield | pk_group_bitfield_from_string () |
gchar * | pk_group_bitfield_to_string () |
PkBitfield | pk_filter_bitfield_from_string () |
gchar * | pk_filter_bitfield_to_string () |
PkBitfield | pk_transaction_flag_bitfield_from_string () |
gchar * | pk_transaction_flag_bitfield_to_string () |
void | pk_bitfield_test () |
#define pk_bitfield_add(bitfield,enum) do { ((bitfield) |= (pk_bitfield_value(enum))); } while (0)
#define pk_bitfield_remove(bitfield,enum) do { ((bitfield) &= ~(pk_bitfield_value(enum))); } while (0)
#define pk_bitfield_invert(bitfield,enum) do { ((bitfield) ^= (pk_bitfield_value(enum))); } while (0)
#define pk_bitfield_contain(bitfield,enum) (((bitfield) & (pk_bitfield_value(enum))) > 0)
gint pk_bitfield_contain_priority (PkBitfield values
,gint value
,...
);
Finds elements in a list, but with priority going to the preceeding entry
Since: 0.5.2
PkBitfield
pk_role_bitfield_from_string (const gchar *roles
);
Converts text representation to its enumerated type bitfield
Since: 0.5.2
gchar *
pk_role_bitfield_to_string (PkBitfield roles
);
Converts a enumerated type bitfield to its text representation
Since: 0.5.2
PkBitfield
pk_group_bitfield_from_string (const gchar *groups
);
Converts text representation to its enumerated type bitfield
Since: 0.5.2
PkBitfield
pk_filter_bitfield_from_string (const gchar *filters
);
Converts text representation to its enumerated type bitfield, or 0 for invalid
Since: 0.5.2
gchar *
pk_filter_bitfield_to_string (PkBitfield filters
);
Converts a enumerated type bitfield to its text representation
Since: 0.5.2
PkBitfield
pk_transaction_flag_bitfield_from_string
(const gchar *transaction_flags
);
Converts text representation to its enumerated type bitfield, or 0 for invalid
Since: 0.8.1
gchar *
pk_transaction_flag_bitfield_to_string
(PkBitfield transaction_flags
);
Converts a enumerated type bitfield to its text representation
Since: 0.8.1