Provide dlopen() path searching hook to senseApi libs

This commit is contained in:
2025-07-24 02:12:31 -04:00
parent 064dc43fbc
commit 1bf5f46404
4 changed files with 58 additions and 6 deletions
+7 -2
View File
@@ -457,13 +457,18 @@ static smo::sense_api::SenseApiDesc xcbXorgApiDesc =
* its name, the implexors it exports, and the management operations it
* supports.
*
* @param callbacks Hooks provided by Salmanoff for library operations
* @return A reference to the SenseApiDesc structure describing the API.
*/
extern SMO_UNMANGLED smo::sense_api::SMO_GET_SENSE_API_DESC_FN_TYPEDEF
SMO_GET_SENSE_API_DESC_FN_NAME;
SMO_GET_SENSE_API_DESC_FN_NAME;
const smo::sense_api::SenseApiDesc &SMO_GET_SENSE_API_DESC_FN_NAME(void)
static const smo::sense_api::SalmanoffCallbacks* xcbXorg_callbacks = nullptr;
const smo::sense_api::SenseApiDesc &SMO_GET_SENSE_API_DESC_FN_NAME(
const smo::sense_api::SalmanoffCallbacks& callbacks)
{
xcbXorg_callbacks = &callbacks;
return xcbXorgApiDesc;
}