summaryrefslogtreecommitdiff
path: root/builder/builder-context.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-01-11 10:36:58 +0100
committerAlexander Larsson <alexl@redhat.com>2016-01-11 11:40:46 +0100
commit1b2ed4fe09bdde0c46ef447f1a5e2058e87fb051 (patch)
treefcaa9bca65aa1d733b96018257b37e5ff8fdf8ce /builder/builder-context.h
parent5896b5ae08f99b6155273b0b0749fb7c1619daf9 (diff)
downloadxdg-app-1b2ed4fe09bdde0c46ef447f1a5e2058e87fb051.tar.gz
builder: Pass down global cleanups via BuildContext
Diffstat (limited to 'builder/builder-context.h')
-rw-r--r--builder/builder-context.h36
1 files changed, 20 insertions, 16 deletions
diff --git a/builder/builder-context.h b/builder/builder-context.h
index 0da823c..ba954bc 100644
--- a/builder/builder-context.h
+++ b/builder/builder-context.h
@@ -35,22 +35,26 @@ G_BEGIN_DECLS
GType builder_context_get_type (void);
-GFile * builder_context_get_app_dir (BuilderContext *self);
-GFile * builder_context_get_base_dir (BuilderContext *self);
-GFile * builder_context_get_state_dir (BuilderContext *self);
-GFile * builder_context_get_cache_dir (BuilderContext *self);
-GFile * builder_context_get_download_dir (BuilderContext *self);
-SoupSession * builder_context_get_soup_session (BuilderContext *self);
-const char * builder_context_get_arch (BuilderContext *self);
-void builder_context_set_arch (BuilderContext *self,
- const char *arch);
-int builder_context_get_n_cpu (BuilderContext *self);
-void builder_context_set_keep_build_dirs (BuilderContext *self,
- gboolean keep_build_dirs);
-gboolean builder_context_get_keep_build_dirs (BuilderContext *self);
-BuilderOptions *builder_context_get_options (BuilderContext *self);
-void builder_context_set_options (BuilderContext *self,
- BuilderOptions *option);
+GFile * builder_context_get_app_dir (BuilderContext *self);
+GFile * builder_context_get_base_dir (BuilderContext *self);
+GFile * builder_context_get_state_dir (BuilderContext *self);
+GFile * builder_context_get_cache_dir (BuilderContext *self);
+GFile * builder_context_get_download_dir (BuilderContext *self);
+SoupSession * builder_context_get_soup_session (BuilderContext *self);
+const char * builder_context_get_arch (BuilderContext *self);
+void builder_context_set_arch (BuilderContext *self,
+ const char *arch);
+int builder_context_get_n_cpu (BuilderContext *self);
+void builder_context_set_keep_build_dirs (BuilderContext *self,
+ gboolean keep_build_dirs);
+gboolean builder_context_get_keep_build_dirs (BuilderContext *self);
+void builder_context_set_global_cleanup (BuilderContext *self,
+ const char **cleanup);
+const char ** builder_context_get_global_cleanup (BuilderContext *self);
+BuilderOptions *builder_context_get_options (BuilderContext *self);
+void builder_context_set_options (BuilderContext *self,
+ BuilderOptions *option);
+
BuilderContext *builder_context_new (GFile *base_dir,
GFile *app_dir);