aboutsummaryrefslogtreecommitdiffstats
path: root/src/configuration.h
diff options
context:
space:
mode:
authorJason Woodward2010-09-27 19:46:15 +0000
committerJason Woodward2010-09-27 19:46:15 +0000
commit9f084687d9d054ae3c38329aed7704ec15a08b15 (patch)
tree225f9f1d5b357b35f48ce887396b5acb2d14c294 /src/configuration.h
parentcf24db272cf91cb002a9f0be96aae9f32ee65e31 (diff)
downloadslapt-get-9f084687d9d054ae3c38329aed7704ec15a08b15.tar.gz
api cleanup, typedef'd old structs
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/configuration.h b/src/configuration.h
index 1e601ce..11d65b8 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -12,14 +12,14 @@ typedef struct {
SLAPT_BOOL_T disabled;
} slapt_source_t;
-struct slapt_source_list {
+typedef struct {
slapt_source_t **src;
unsigned int count;
-};
+} slapt_source_list_t;
typedef struct {
char working_dir[SLAPT_WORKINGDIR_TOKEN_LEN];
- struct slapt_source_list *sources;
+ slapt_source_list_t *sources;
slapt_list_t *exclude_list;
int(*progress_cb)(void *,double,double,double,double);
SLAPT_BOOL_T download_only;
@@ -58,10 +58,10 @@ 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
*/
-struct slapt_source_list *slapt_init_source_list(void);
-void slapt_add_source(struct slapt_source_list *list, slapt_source_t *s);
-void slapt_remove_source (struct slapt_source_list *list, const char *s);
-void slapt_free_source_list(struct slapt_source_list *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);
SLAPT_BOOL_T slapt_is_interactive(const slapt_rc_config *);