[libgit2-glib] cred-ssh-key-from-agent: add missing docs
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] cred-ssh-key-from-agent: add missing docs
- Date: Sun, 18 Jan 2015 18:44:01 +0000 (UTC)
commit fdfbc8bfe122c0b9d2e61e9f80023eefb01e8f92
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Jan 18 19:43:43 2015 +0100
cred-ssh-key-from-agent: add missing docs
libgit2-glib/ggit-cred-ssh-key-from-agent.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/libgit2-glib/ggit-cred-ssh-key-from-agent.c b/libgit2-glib/ggit-cred-ssh-key-from-agent.c
index 96a7a4d..d38d7d1 100644
--- a/libgit2-glib/ggit-cred-ssh-key-from-agent.c
+++ b/libgit2-glib/ggit-cred-ssh-key-from-agent.c
@@ -166,6 +166,15 @@ ggit_cred_ssh_key_from_agent_initable_iface_init (GInitableIface *iface)
iface->init = ggit_cred_ssh_key_from_agent_initable_init;
}
+/**
+ * ggit_cred_ssh_key_from_agent_new:
+ * @username: the username.
+ * @error: a #GError for error reporting, or %NULL.
+ *
+ * Creates a new #GgitCredSshKeyFromAgent.
+ *
+ * Returns: (transfer full): a new #GgitCredSshKeyFromAgent or %NULL if there was an error.
+ */
GgitCredSshKeyFromAgent *
ggit_cred_ssh_key_from_agent_new (const gchar *username,
GError **error)
@@ -176,6 +185,14 @@ ggit_cred_ssh_key_from_agent_new (const gchar *username,
NULL);
}
+/**
+ * ggit_cred_ssh_key_from_agent_get_username:
+ * @cred: a #GgitCredSshKeyFromAgent.
+ *
+ * Gets the username for the credential.
+ *
+ * Returns: the username.
+ */
const gchar *
ggit_cred_ssh_key_from_agent_get_username (GgitCredSshKeyFromAgent *cred)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]