]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: modify md_config_obs_impl API
authorRonen Friedman <rfriedma@redhat.com>
Wed, 15 Jan 2025 07:33:58 +0000 (01:33 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Sat, 25 Jan 2025 15:41:51 +0000 (09:41 -0600)
commit48a43f06db382618eeae7d4854b54ef9d304e790
tree2f4642bc6e808a1b17b148d7643d67ffce4042c7
parent091c7c5400f49e0ca16e8462ede8754b81f17b96
common: modify md_config_obs_impl API

Adding a new version of the API used by the configuration
manager to find out what keys are handled by the specific
observer (and thus should be registered to be updated on
changes).

The new interface (get_tracked_keys()) returns a vector
of moveable strings.

Modify the ObserverMgr to use this new interface
when avaiable. The existing 'char**' based interface
is maintained for now, until all its clients are updated.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/common/config_obs.h
src/common/config_obs_mgr.h