libostree: Start splitting up the monstrous ostree-repo.c
Checkout now lives in its own file.
This commit is contained in:
1 parent
5ad0671cd2
commit
dbffd31017
4 files changed
+897
-835
No files matched your search
@@ -0,0 +1,63 @@
|
||||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
||||
*
|
||||
* Copyright (C) 2011,2013 Colin Walters <walters@verbum.org>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ostree-repo.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
struct OstreeRepo {
|
||||
GObject parent;
|
||||
|
||||
GFile *repodir;
|
||||
GFile *tmp_dir;
|
||||
GFile *pending_dir;
|
||||
GFile *local_heads_dir;
|
||||
GFile *remote_heads_dir;
|
||||
GFile *objects_dir;
|
||||
GFile *uncompressed_objects_dir;
|
||||
GFile *remote_cache_dir;
|
||||
GFile *config_file;
|
||||
|
||||
GFile *transaction_lock_path;
|
||||
|
||||
GMutex cache_lock;
|
||||
GPtrArray *cached_meta_indexes;
|
||||
GPtrArray *cached_content_indexes;
|
||||
|
||||
gboolean inited;
|
||||
gboolean in_transaction;
|
||||
GHashTable *loose_object_devino_hash;
|
||||
GHashTable *updated_uncompressed_dirs;
|
||||
|
||||
GKeyFile *config;
|
||||
OstreeRepoMode mode;
|
||||
gboolean enable_uncompressed_cache;
|
||||
|
||||
OstreeRepo *parent_repo;
|
||||
};
|
||||
|
||||
GFile *
|
||||
_ostree_repo_get_uncompressed_object_cache_path (OstreeRepo *self,
|
||||
const char *checksum);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in new issue
Block a user