Add xdg_app_installed_ref_get_subpaths

This was in the header, but not the code
This commit is contained in:
Alexander Larsson committed 2016-05-02 16:50:37 +02:00
1 parent b3d854f507
commit 36d0a2fe2a
2 files changed
+17 -1

No files matched your search

+16
View File
@@ -282,6 +282,22 @@ xdg_app_installed_ref_get_is_current (XdgAppInstalledRef *self)
return priv->is_current;
}
/**
* xdg_app_installed_ref_get_subpaths:
* @self: a #XdgAppInstalledRef
*
* Returns the subpaths that are installed, or %NULL if all files installed.
*
* Returns: (transfer none): A strv, or %NULL
*/
const char * const*
xdg_app_installed_ref_get_subpaths (XdgAppInstalledRef *self)
{
XdgAppInstalledRefPrivate *priv = xdg_app_installed_ref_get_instance_private (self);
return (const char * const *) priv->subpaths;
}
/**
* xdg_app_installed_ref_get_installed_size:
* @self: a #XdgAppInstalledRef
+1 -1
View File
@@ -49,7 +49,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(XdgAppInstalledRef, g_object_unref)
#endif
XDG_APP_EXTERN const char *xdg_app_installed_ref_get_origin (XdgAppInstalledRef *self);
XDG_APP_EXTERN const char **xdg_app_installed_ref_get_subpaths (XdgAppInstalledRef *self);
XDG_APP_EXTERN const char * const*xdg_app_installed_ref_get_subpaths (XdgAppInstalledRef *self);
XDG_APP_EXTERN guint64 xdg_app_installed_ref_get_installed_size (XdgAppInstalledRef *self);
XDG_APP_EXTERN const char *xdg_app_installed_ref_get_deploy_dir (XdgAppInstalledRef *self);
XDG_APP_EXTERN const char *xdg_app_installed_ref_get_latest_commit (XdgAppInstalledRef *self);