From 842fc72342ff54cba9a24fcb666bf4e47f6bbe50 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 25 Mar 2016 10:50:39 -0400 Subject: XdgAppRemoteRef: Add documentation --- lib/xdg-app-remote-ref.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/xdg-app-remote-ref.c b/lib/xdg-app-remote-ref.c index 19eb4b3..6b397db 100644 --- a/lib/xdg-app-remote-ref.c +++ b/lib/xdg-app-remote-ref.c @@ -27,6 +27,14 @@ #include "xdg-app-remote-ref.h" #include "xdg-app-enum-types.h" +/** + * SECTION:xdg-app-remote-ref + * @Title: XdgAppRemoteRef + * @Short_description: Remote application reference + * + * A XdgAppRemoteRef provides information about an application or runtime + * (in short: ref) that is available from a remote repository. + */ typedef struct _XdgAppRemoteRefPrivate XdgAppRemoteRefPrivate; struct _XdgAppRemoteRefPrivate @@ -108,8 +116,8 @@ xdg_app_remote_ref_class_init (XdgAppRemoteRefClass *klass) g_object_class_install_property (object_class, PROP_REMOTE_NAME, g_param_spec_string ("remote-name", - "", - "", + "Remote Name", + "The name of the remote", NULL, G_PARAM_READWRITE)); } @@ -119,6 +127,14 @@ xdg_app_remote_ref_init (XdgAppRemoteRef *self) { } +/** + * xdg_app_remote_ref_get_remote_name: + * @self: a #XdgAppRemoteRef + * + * Gets the remote name of the ref. + * + * Returns: (transfer none): the remote name + */ const char * xdg_app_remote_ref_get_remote_name (XdgAppRemoteRef *self) { -- cgit v1.2.1