]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/PyModules.h
update sources to v12.1.0
[ceph.git] / ceph / src / mgr / PyModules.h
index 8e929113053554500fa257eb7f5234f25d5c8324..6a71b64933116fca5fa12c88ae96950048a362ed 100644 (file)
@@ -43,8 +43,10 @@ class PyModules
 
   std::string get_site_packages();
 
+  PyThreadState *pMainThreadState = nullptr;
+
 public:
-  static constexpr auto config_prefix = "mgr.";
+  static std::string config_prefix;
 
   PyModules(DaemonStateIndex &ds, ClusterState &cs, MonClient &mc,
             Objecter &objecter_, Client &client_,
@@ -90,6 +92,8 @@ public:
 
   bool get_config(const std::string &handle,
       const std::string &key, std::string *val) const;
+  PyObject *get_config_prefix(const std::string &handle,
+                             const std::string &prefix) const;
   void set_config(const std::string &handle,
       const std::string &key, const std::string &val);