| Gcr Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Prerequisites | Known Derived Interfaces | Known Implementations | ||||
GcrComparable; struct GcrComparableIface; gint gcr_comparable_compare (GcrComparable *self,GcrComparable *other); gint gcr_comparable_memcmp (gconstpointer mem1,gsize size1,gconstpointer mem2,gsize size2);
GcrComparableIface is implemented by GcrCertificateRenderer, GcrPkcs11Certificate and GcrSimpleCertificate.
The GcrComparable interface is implemented by objects when they should be comparable against one another.
typedef struct _GcrComparable GcrComparable;
The GcrComparable interface is implemented by comparable objects.
gint gcr_comparable_compare (GcrComparable *self,GcrComparable *other);
Compare whether two objects represent the same thing. The return value can also be used to sort the objects.
|
The comparable object |
|
Another comparable object |
Returns : |
Zero if the two objects represent the same thing, non-zero if not. |
gint gcr_comparable_memcmp (gconstpointer mem1,gsize size1,gconstpointer mem2,gsize size2);
Compare two blocks of memory. The return value can be used to sort the blocks of memory.
|
First block of memory |
|
Length of first block |
|
Second lock of memory |
|
Length of second block |
Returns : |
Zero if the blocks are identical, non-zero if not. |