[ostree] core: Expose API to get repository tmpdir



commit c66474750b0b724f46d5ec604538c7e1d6f7d83c
Author: Colin Walters <walters verbum org>
Date:   Fri Nov 18 16:01:28 2011 -0500

    core: Expose API to get repository tmpdir

 src/libostree/ostree-repo.c |    7 +++++++
 src/libostree/ostree-repo.h |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index 35073ab..47f58e0 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -546,6 +546,13 @@ ostree_repo_get_path (OstreeRepo  *self)
   return priv->path;
 }
 
+GFile *
+ostree_repo_get_tmpdir (OstreeRepo  *self)
+{
+  OstreeRepoPrivate *priv = GET_PRIVATE (self);
+  return priv->tmp_dir;
+}
+
 gboolean      
 ostree_repo_is_archive (OstreeRepo  *self)
 {
diff --git a/src/libostree/ostree-repo.h b/src/libostree/ostree-repo.h
index 1b6948d..3454ed3 100644
--- a/src/libostree/ostree-repo.h
+++ b/src/libostree/ostree-repo.h
@@ -57,6 +57,8 @@ const char *  ostree_repo_get_path (OstreeRepo  *self);
 
 gboolean      ostree_repo_is_archive (OstreeRepo  *self);
 
+GFile *       ostree_repo_get_tmpdir (OstreeRepo  *self);
+
 GKeyFile *    ostree_repo_get_config (OstreeRepo *self);
 
 GKeyFile *    ostree_repo_copy_config (OstreeRepo *self);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]