expose config_express
This commit is contained in:
parent
697112fd8d
commit
d7ad60572c
|
|
@ -4,4 +4,5 @@ forcetype Notify
|
|||
forcetype NotifyCategory
|
||||
forcetype NotifySeverity
|
||||
|
||||
|
||||
forcetype ConfigExpress
|
||||
renametype ConfigExpress ConfigExpress
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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__ */
|
||||
|
|
|
|||
Loading…
Reference in New Issue