summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-05-20 15:02:24 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-05-20 15:02:24 +0200
commit7bb75e575b5f6a555a0651057c0cb5b30f93a9d9 (patch)
treec99cd7056aa20ce999c678501d6733f3ad3662c2 /include/modules.h
parent48817837737c4b5908bb51dc319fad8f2e58ea8f (diff)
Allow modules to be called as "foo" instead of "m_foo.so"
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index 3cf780284..7944aa609 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1047,6 +1047,13 @@ class CoreExport ModuleManager : public fakederef<ModuleManager>
*/
bool PrioritizeHooks();
+ /** Expands the name of a module by prepending "m_" and appending ".so".
+ * No-op if the name already has the ".so" extension.
+ * @param modname Module name to expand
+ * @return Module name starting with "m_" and ending with ".so"
+ */
+ static std::string ExpandModName(const std::string& modname);
+
public:
typedef std::map<std::string, Module*> ModuleMap;