aboutsummaryrefslogtreecommitdiffstats
path: root/src/configuration.h
diff options
context:
space:
mode:
authorJason Woodward2005-07-20 04:51:04 +0000
committerJason Woodward2005-07-20 04:51:04 +0000
commitab7e7ee42074f0b495d2239e09783717974433bc (patch)
tree1704f9b824133117f78165705d33224266f9f866 /src/configuration.h
parent78820dd743c9f3e3948a300b5da4342a35ebdf18 (diff)
downloadslapt-get-ab7e7ee42074f0b495d2239e09783717974433bc.tar.gz
data type, functions, and macros renamed with slapt_|SLAPT_ (libslapt)
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/configuration.h b/src/configuration.h
index cde81d4..aef5144 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -4,61 +4,61 @@
#define WORKINGDIR_TOKEN_LEN 256
#define EXCLUDE_TOKEN "EXCLUDE="
-struct exclude_list {
+struct slapt_exclude_list {
char **excludes;
unsigned int count;
};
-struct source_list {
+struct slapt_source_list {
char **url;
unsigned int count;
};
typedef struct {
- struct source_list *sources;
+ struct slapt_source_list *sources;
char working_dir[WORKINGDIR_TOKEN_LEN];
- struct exclude_list *exclude_list;
- BOOL_T download_only;
- BOOL_T dist_upgrade;
- BOOL_T simulate;
- BOOL_T no_prompt;
- BOOL_T re_install;
- BOOL_T ignore_excludes;
- BOOL_T no_md5_check;
- BOOL_T ignore_dep;
- BOOL_T disable_dep_check;
- BOOL_T print_uris;
- BOOL_T dl_stats;
- BOOL_T remove_obsolete;
+ struct slapt_exclude_list *exclude_list;
+ SLAPT_BOOL_T download_only;
+ SLAPT_BOOL_T dist_upgrade;
+ SLAPT_BOOL_T simulate;
+ SLAPT_BOOL_T no_prompt;
+ SLAPT_BOOL_T re_install;
+ SLAPT_BOOL_T ignore_excludes;
+ SLAPT_BOOL_T no_md5_check;
+ SLAPT_BOOL_T ignore_dep;
+ SLAPT_BOOL_T disable_dep_check;
+ SLAPT_BOOL_T print_uris;
+ SLAPT_BOOL_T dl_stats;
+ SLAPT_BOOL_T remove_obsolete;
int(*progress_cb)(void *,double,double,double,double);
-} rc_config;
+} slapt_rc_config;
/*
read the configuration from file_name
returns (rc_config *) or NULL
*/
-rc_config *read_rc_config(const char *file_name);
+slapt_rc_config *slapt_read_rc_config(const char *file_name);
/*
check that working_dir exists or make it if permissions allow
*/
-void working_dir_init(const rc_config *global_config);
+void slapt_working_dir_init(const slapt_rc_config *global_config);
/*
free rc_config structure
*/
-void free_rc_config(rc_config *global_config);
+void slapt_free_rc_config(slapt_rc_config *global_config);
/*
add an exclude expression to the exclude list.
commonly called with global_config->exclude_list
*/
-void add_exclude(struct exclude_list *list,const char *e);
+void slapt_add_exclude(struct slapt_exclude_list *list,const char *e);
/*
add an source expression to the source list.
commonly called with global_config->source_list
*/
-void add_source(struct source_list *list,const char *s);
+void slapt_add_source(struct slapt_source_list *list,const char *s);