Function

GgitCredAcquireCallback

Declaration

gint
(* GgitCredAcquireCallback) (
  const gchar* url,
  const gchar* username_from_url,
  guint allowed_types,
  GgitCred** cred,
  gpointer user_data
)

Description [src]

Signature of a function which acquires a credential object.

Parameters

url 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 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 guint
 

A bitmask stating which cred types are OK to return.

cred GgitCred
 

Newly created credential object.

 The called function takes ownership of the data, and is responsible for freeing it.
user_data gpointer
 

User-supplied data.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: gint
  No description available.