Rename Csal_lmo=>Csal_mlo, and introduce a Csal_mho role

* Introduce the hk end of the management role for the senseApiLibs.
* Implement a basic set of operations and callbacks for this role.
This commit is contained in:
2025-01-09 17:18:24 -04:00
parent 53583e5735
commit 9e35748d9a
3 changed files with 45 additions and 28 deletions
+15 -15
View File
@@ -11,12 +11,12 @@ static CExportedImplexorApiDesc xcbXorgExportedImplexorApis[] =
}
};
static sal_lmo_initializeIndFn xcbXorg_initializeInd;
static sal_lmo_finalizeIndFn xcbXorg_finalizeInd;
static sal_lmo_attachDeviceReqFn xcbXorg_attachDeviceReq;
static sal_lmo_detachDeviceReqFn xcbXorg_detachDeviceReq;
static sal_mlo_initializeIndFn xcbXorg_initializeInd;
static sal_mlo_finalizeIndFn xcbXorg_finalizeInd;
static sal_mlo_attachDeviceReqFn xcbXorg_attachDeviceReq;
static sal_mlo_detachDeviceReqFn xcbXorg_detachDeviceReq;
static Csal_libMgmtOps xcbXorgSalLibMgmtOps =
static Csal_mgmt_libOps xcbXorgMgmtLibOps =
{
.initializeInd = xcbXorg_initializeInd,
.finalizeInd = xcbXorg_finalizeInd,
@@ -26,11 +26,11 @@ static Csal_libMgmtOps xcbXorgSalLibMgmtOps =
static CSenseApiDesc xcbXorgApiDesc =
{
.name = "XcbXorg",
.name = "xcb-xorg",
.numExportedImplexorApis = sizeof(xcbXorgExportedImplexorApis) /
sizeof(*xcbXorgExportedImplexorApis),
.exportedImplexorApis = xcbXorgExportedImplexorApis,
.sal_libMgmtOps = &xcbXorgSalLibMgmtOps
.sal_mgmt_libOps = &xcbXorgMgmtLibOps
};
extern HK_UNMANGLED getSenseApiDescFn HK_GET_SENSE_API_DESC_FN_NAME;
@@ -40,30 +40,30 @@ const CSenseApiDesc *HK_GET_SENSE_API_DESC_FN_NAME(void)
return &xcbXorgApiDesc;
}
static sal_lmo_initializeIndFn xcbXorg_initializeInd;
static sal_mlo_initializeIndFn xcbXorg_initializeInd;
int xcbXorg_initializeInd(void)
{
std::cerr << "XcbXorg::sal_lmo_initializeInd\n";
std::cerr << "XcbXorg::sal_mlo_initializeInd\n";
return 0;
}
static sal_lmo_finalizeIndFn xcbXorg_finalizeInd;
static sal_mlo_finalizeIndFn xcbXorg_finalizeInd;
int xcbXorg_finalizeInd(void)
{
std::cerr << "XcbXorg::sal_lmo_finalizeInd\n";
std::cerr << "XcbXorg::sal_mlo_finalizeInd\n";
return 0;
}
static sal_lmo_attachDeviceReqFn xcbXorg_attachDeviceReq;
static sal_mlo_attachDeviceReqFn xcbXorg_attachDeviceReq;
int xcbXorg_attachDeviceReq(void)
{
std::cerr << "XcbXorg::sal_lmo_attachDeviceReq\n";
std::cerr << "XcbXorg::sal_mlo_attachDeviceReq\n";
return 0;
}
static sal_lmo_detachDeviceReqFn xcbXorg_detachDeviceReq;
static sal_mlo_detachDeviceReqFn xcbXorg_detachDeviceReq;
int xcbXorg_detachDeviceReq(void)
{
std::cerr << "XcbXorg::sal_lmo_detachDeviceReq\n";
std::cerr << "XcbXorg::sal_mlo_detachDeviceReq\n";
return 0;
}