libs: Add smohook for getting cmdline opts

This commit is contained in:
2025-11-07 14:59:28 -04:00
parent a7a85b0c1f
commit b598ca8594
7 changed files with 34 additions and 15 deletions
+11
View File
@@ -10,6 +10,8 @@
#include <user/deviceAttachmentSpec.h>
#include <callback.h>
class OptionParser;
namespace smo {
class ComponentThread;
@@ -81,6 +83,15 @@ struct SmoCallbacks
* equivalent to calling ComponentThread::getSelf().
*/
std::shared_ptr<ComponentThread> (*ComponentThread_getSelf)(void);
/**
* @brief Get the OptionParser singleton instance
* @return Reference to the OptionParser singleton
*
* This function provides access to the OptionParser singleton instance,
* equivalent to calling OptionParser::getOptions().
*/
OptionParser& (*OptionParser_getOptions)(void);
};
struct Sal_Mgmt_LibOps