diff options
author | Niels De Graef <nielsdegraef@gmail.com> | 2021-02-06 11:44:49 +0100 |
---|---|---|
committer | Niels De Graef <nielsdegraef@gmail.com> | 2021-02-06 11:47:11 +0100 |
commit | 7e3c56ba1ef20d10d0dc3126d3d52d5c4fef5517 (patch) | |
tree | 16e29d49db4e8155f4f6c634aa2e793b3263b8e3 /libsecret/secret-password.h | |
parent | 5e21132da10322ae094c5cb0527ece84d90e85e4 (diff) | |
download | libsecret-wip/nielsdg/null-terminated-annotations.tar.gz |
Use G_GNUC_NULL_TERMINATED where appropriatewip/nielsdg/null-terminated-annotations
Give our API consumers an extra hint if they're using varargs without an
appropriate `NULL`-sentinel.
Diffstat (limited to 'libsecret/secret-password.h')
-rw-r--r-- | libsecret/secret-password.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/libsecret/secret-password.h b/libsecret/secret-password.h index 0719317..2c61483 100644 --- a/libsecret/secret-password.h +++ b/libsecret/secret-password.h @@ -46,13 +46,13 @@ void secret_password_storev (const SecretSchema *sche gpointer user_data); void secret_password_store_binary (const SecretSchema *schema, - const gchar *collection, - const gchar *label, - SecretValue *value, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data, - ...); + const char *collection, + const char *label, + SecretValue *value, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data, + ...) G_GNUC_NULL_TERMINATED; void secret_password_storev_binary (const SecretSchema *schema, GHashTable *attributes, @@ -83,12 +83,12 @@ gboolean secret_password_storev_sync (const SecretSchema *sche GError **error); gboolean secret_password_store_binary_sync (const SecretSchema *schema, - const gchar *collection, - const gchar *label, - SecretValue *value, - GCancellable *cancellable, - GError **error, - ...); + const char *collection, + const char *label, + SecretValue *value, + GCancellable *cancellable, + GError **error, + ...) G_GNUC_NULL_TERMINATED; gboolean secret_password_storev_binary_sync (const SecretSchema *schema, GHashTable *attributes, @@ -126,11 +126,11 @@ gchar * secret_password_lookup_sync (const SecretSchema *sche gchar * secret_password_lookup_nonpageable_sync (const SecretSchema *schema, GCancellable *cancellable, GError **error, - ...); + ...) G_GNUC_NULL_TERMINATED; SecretValue *secret_password_lookup_binary_sync (const SecretSchema *schema, - GCancellable *cancellable, - GError **error, - ...); + GCancellable *cancellable, + GError **error, + ...) G_GNUC_NULL_TERMINATED; gchar * secret_password_lookupv_sync (const SecretSchema *schema, GHashTable *attributes, |