Function
GgitCredAcquireCallback
Declaration
gint
(* GgitCredAcquireCallback) (
const gchar* url,
const gchar* username_from_url,
guint allowed_types,
GgitCred** cred,
gpointer user_data
)
Parameters
url-
Type:
const gchar*The resource for which we are demanding a credential.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. username_from_url-
Type:
const gchar*The username that was embedded in a “user@host” remote url, or NULL if not included.
The argument can be NULL.The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. allowed_types-
Type:
guintA bitmask stating which cred types are OK to return.
cred-
Type:
GgitCredNewly created credential object.
The called function takes ownership of the data, and is responsible for freeing it. user_data-
Type:
gpointerUser-supplied data.
The argument can be NULL.The data is owned by the caller of the function.