core: Use GFile for repo constructor API, and a bit more internally

Also, ensure that the repo directory GFile is absolute - this avoids
a getcwd() syscall every time we construct a GFile object.
This commit is contained in:
Colin Walters committed 2011-12-22 11:04:08 -05:00
1 parent 8a499c4a2a
commit d25f1bf73d
21 files changed
+84 -85

No files matched your search

+2 -2
View File
@@ -50,11 +50,11 @@ typedef struct {
GType ostree_repo_get_type (void);
OstreeRepo* ostree_repo_new (const char *path);
OstreeRepo* ostree_repo_new (GFile *path);
gboolean ostree_repo_check (OstreeRepo *self, GError **error);
const char * ostree_repo_get_path (OstreeRepo *self);
GFile * ostree_repo_get_path (OstreeRepo *self);
typedef enum {
OSTREE_REPO_MODE_BARE,