Virtual Method

GgitRemoteCallbackscredentials

Declaration [src]

GgitCred*
credentials (
  GgitRemoteCallbacks* callbacks,
  const gchar* url,
  const gchar* username_from_url,
  GgitCredtype allowed_types,
  GError** error
)

Description

No description available.

Parameters

url const gchar*
 

The url.

 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 extracted from the url.

 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 GgitCredtype
 

The allowed credential types.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GgitCred
 

A GgitCred or NULL in case of an error.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.