Constructor

GgitCredSshKeyFromAgentnew

Declaration [src]

GgitCredSshKeyFromAgent*
ggit_cred_ssh_key_from_agent_new (
  const gchar* username,
  GError** error
)

Description [src]

Creates a new GgitCredSshKeyFromAgent.

Parameters

username const gchar*
 

The username.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GgitCredSshKeyFromAgent
 

A new GgitCredSshKeyFromAgent or NULL if there was an error.

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