summaryrefslogtreecommitdiffstats
path: root/src/configuration.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/configuration.h b/src/configuration.h
index 3809e16..b8d4477 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -30,15 +30,9 @@ typedef struct {
} slapt_source_t;
typedef struct {
- slapt_source_t **src;
- uint32_t count;
-} slapt_source_list_t;
-#define slapt_source_list_t_foreach(item, list) slapt_source_t *item; for (uint32_t item##_counter = 0; (item##_counter < list->count) && (item = list->src[item##_counter]); item##_counter++)
-
-typedef struct {
char working_dir[SLAPT_WORKINGDIR_TOKEN_LEN];
- slapt_source_list_t *sources;
- slapt_list_t *exclude_list;
+ slapt_vector_t *sources;
+ slapt_vector_t *exclude_list;
int (*progress_cb)(void *, double, double, double, double);
bool download_only;
bool dist_upgrade;
@@ -73,15 +67,6 @@ void slapt_working_dir_init(const slapt_rc_config *global_config);
slapt_source_t *slapt_init_source(const char *s);
void slapt_free_source(slapt_source_t *src);
-/*
- add or remove a package source url to the source list.
- commonly called with global_config->source_list
-*/
-slapt_source_list_t *slapt_init_source_list(void);
-void slapt_add_source(slapt_source_list_t *list, slapt_source_t *s);
-void slapt_remove_source(slapt_source_list_t *list, const char *s);
-void slapt_free_source_list(slapt_source_list_t *list);
-
bool slapt_is_interactive(const slapt_rc_config *);
int slapt_write_rc_config(const slapt_rc_config *global_config, const char *location);