expose config_express

This commit is contained in:
David Rose 2001-06-15 16:29:10 +00:00
parent 697112fd8d
commit d7ad60572c
3 changed files with 17 additions and 1 deletions

View File

@ -4,4 +4,5 @@ forcetype Notify
forcetype NotifyCategory
forcetype NotifySeverity
forcetype ConfigExpress
renametype ConfigExpress ConfigExpress

View File

@ -110,3 +110,12 @@ const int patchfile_buffer_size =
const int patchfile_zone_size =
config_express.GetInt("patchfile-zone-size", 10000);
// Returns the configure object for accessing config variables from a
// scripting language.
ConfigExpress &
get_config_express() {
return config_express;
}

View File

@ -42,4 +42,10 @@ extern const int patchfile_increment_size;
extern const int patchfile_buffer_size;
extern const int patchfile_zone_size;
// Expose the Config variable for Python access.
BEGIN_PUBLISH
typedef Config::Config<ConfigureGetConfig_config_express> ConfigExpress;
EXPCL_PANDAEXPRESS ConfigExpress &get_config_express();
END_PUBLISH
#endif /* __CONFIG_UTIL_H__ */