Using this function is not normally necessary from C code.
A schema represents a set of attributes that are stored with an item. These schemas are used for interoperability between various services storing the same types of items.
Each schema has an name
like `org.gnome.keyring.NetworkPassword`, and defines a set of attributes names, and types (string,
integer, boolean) for those attributes.
The variable argument list should contain pairs of a) The attribute name as a null-terminated string, followed by b) integers from the
[enumSchemaAttributeType
] enumeration, representing the attribute type for each attribute name. The list of attributes should
be terminated with a null
.
Normally when looking up passwords only those with matching schema names are returned. If the schema flags
contain the
DONT_MATCH_NAME flag, then lookups will not check that the schema
name matches that on the item, only the schema's attributes are matched. This is useful when you are looking up items that are not stored
by the libsecret library. Other libraries such as libgnome-keyring don't store the schema name.
name |
the dotted name of the schema |
flags |
the flags for the schema |
... |
the attribute names and types, terminated with |
the new schema, which should be unreferenced with [method |