/
Device Deprovision Functions

Device Deprovision Functions

When a device deprovision request is received from the CMS, IDL calls the IDL Driver Instance (IDI) device deprovision callback function (OnDevDeprovision) that was registered during the init process.

When the IDL calls the deprovision callback function, the IDI must perform protocol specific deprovisioning.

On completion, the IDI must call IdlDevDeprovisionResult with callback_index, pointer to IdlDev and the appropriate idlError (see Error Codes).  

Device Deprovision Callback Function


OnDevDeprovision 

IdlErrorCodes OnDevDeprovision(int callback_index, IdlDev *dev);

Device Deprovision Related Functions

IdlDevDeprovisionCallbackSet 

void IdlDevDeprovisionCallbackSet(Idl *idl, int (*OnDevDeprovision)(int, IdlDev *));

Must be called by the IDI prior to calling IdlInit.

IdlDevDeprovisionResult

void IdlDevDeprovisionResult(int callbackIndex, IdlDev *dev, int idlError);

Must be called by the IDI at the end of the callback function before exiting.


Related content

Device Delete Functions
Device Delete Functions
More like this
Device Provision Functions
Device Provision Functions
More like this
Device Replace Functions
Device Replace Functions
More like this
Device Create Functions
Device Create Functions
More like this