aqhome: add apiCode to endpoint.
This commit is contained in:
@@ -115,6 +115,33 @@ void GWENHYWFAR_CB _freeData(GWEN_UNUSED void *bp, void *p)
|
||||
|
||||
|
||||
|
||||
int AQH_Endpoint_GetApiCode(const AQH_OBJECT *o)
|
||||
{
|
||||
if (o) {
|
||||
AQH_ENDPOINT *xo;
|
||||
|
||||
xo=GWEN_INHERIT_GETDATA(AQH_OBJECT, AQH_ENDPOINT, o);
|
||||
if (xo)
|
||||
return xo->apiCode;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AQH_Endpoint_SetApiCode(AQH_OBJECT *o, int i)
|
||||
{
|
||||
if (o) {
|
||||
AQH_ENDPOINT *xo;
|
||||
|
||||
xo=GWEN_INHERIT_GETDATA(AQH_OBJECT, AQH_ENDPOINT, o);
|
||||
if (xo)
|
||||
xo->apiCode=i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
const char *AQH_Endpoint_GetServiceName(const AQH_OBJECT *o)
|
||||
{
|
||||
if (o) {
|
||||
|
||||
Reference in New Issue
Block a user