From 4e9502ee3d27717e1b50ce054108063737f96109 Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Sat, 24 Feb 2024 10:23:50 +0100 Subject: [PATCH 1/2] secret-util: Annotate new enum members They were missing a Since annotation. --- libsecret/secret-util.c | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/libsecret/secret-util.c b/libsecret/secret-util.c index f89a24d..a05655f 100644 --- a/libsecret/secret-util.c +++ b/libsecret/secret-util.c @@ -29,14 +29,6 @@ * Service * @SECRET_ERROR_ALREADY_EXISTS: a relevant item or collection already exists * @SECRET_ERROR_INVALID_FILE_FORMAT: the file format is not valid - * @SECRET_ERROR_MISMATCHED_SCHEMA: the xdg:schema attribute of the table does - * not match the schema name - * @SECRET_ERROR_NO_MATCHING_ATTRIBUTE: attribute contained in table not found - * in corresponding schema - * @SECRET_ERROR_WRONG_TYPE: attribute could not be parsed according to its type - * reported in the table's schema - * @SECRET_ERROR_EMPTY_TABLE: attribute list passed to secret_attributes_validate - * has no elements to validate * * Errors returned by the Secret Service. * @@ -45,6 +37,36 @@ * * Stability: Stable */ +/** + * SECRET_ERROR_MISMATCHED_SCHEMA: + * + * the xdg:schema attribute of the table does not match the schema name + * + * Since: 0.21.2 + */ +/** + * SECRET_ERROR_NO_MATCHING_ATTRIBUTE: + * + * attribute contained in table not found in corresponding schema + * + * Since: 0.21.2 + */ +/** + * SECRET_ERROR_WRONG_TYPE: + * + * attribute could not be parsed according to its type reported in the table's + * schema + * + * Since: 0.21.2 + */ +/** + * SECRET_ERROR_EMPTY_TABLE: + * + * attribute list passed to secret_attributes_validate has no elements to + * validate + * + * Since: 0.21.2 + */ static void list_unref_free (GList *reflist) From 3ebda96b5f309407f426c1b4071d334ac6648f8c Mon Sep 17 00:00:00 2001 From: Maximiliano Sandoval Date: Sat, 24 Feb 2024 10:25:55 +0100 Subject: [PATCH 2/2] secret-attributes: Annotate secret_attributes_validate --- libsecret/secret-attributes.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsecret/secret-attributes.c b/libsecret/secret-attributes.c index 3b72acf..9cf7c53 100644 --- a/libsecret/secret-attributes.c +++ b/libsecret/secret-attributes.c @@ -191,6 +191,8 @@ secret_attributes_buildv (const SecretSchema *schema, * of attribute values. * * Returns: whether or not the given attributes table is valid + * + * Since: 0.21.2 */ gboolean secret_attributes_validate (const SecretSchema *schema,