22 #include "softwarecontainer-common.h" 23 #include "configtypes.h" 31 typedef std::pair<std::string, std::string> UniqueKey;
43 typedef std::vector<UniqueKey> MandatoryConfigs;
49 typedef std::map<UniqueKey, std::vector<UniqueKey>> ConfigDependencies;
54 typedef std::map<UniqueKey, ConfigType> TypeMap;
59 typedef bool MandatoryFlag;
67 static const std::string SC_CONFIG_PATH_INITIAL_VALUE;
68 static const int SHUTDOWN_TIMEOUT_INITIAL_VALUE;
69 static const std::string SERVICE_MANIFEST_DIR_INITIAL_VALUE;
70 static const std::string DEFAULT_SERVICE_MANIFEST_DIR_INITIAL_VALUE;
71 static const bool USE_SESSION_BUS_INITIAL_VALUE;
74 static const std::string SC_GROUP;
77 static const std::string SC_USE_SESSION_BUS_KEY;
78 static const std::string SC_SHUTDOWN_TIMEOUT_KEY;
79 static const std::string SC_SHARED_MOUNTS_DIR_KEY;
80 static const std::string SC_LXC_CONFIG_PATH_KEY;
81 static const std::string SC_SERVICE_MANIFEST_DIR_KEY;
82 static const std::string SC_DEFAULT_SERVICE_MANIFEST_DIR_KEY;
84 #ifdef ENABLE_NETWORKGATEWAY 85 static const std::string SC_CREATE_BRIDGE_KEY;
86 static const std::string SC_BRIDGE_DEVICE_KEY;
87 static const std::string SC_BRIDGE_IP_KEY;
88 static const std::string SC_BRIDGE_NETADDR_KEY;
89 static const std::string SC_BRIDGE_NETMASK_KEY;
90 static const std::string SC_BRIDGE_NETMASK_BITLENGTH_KEY;
93 static MandatoryConfigs mandatory();
94 static ConfigDependencies dependencies();
95 static TypeMap typeMap();
96 static MandatoryFlag convertDefineToFlag(
bool definition);
Developers guide to adding a config item: