OpenDOF Project
DOFOperation DOFObject_BeginProvide ( DOFObject  obj,
DOFInterface  iface,
uint32  timeout,
const DOFObjectProvider  callback,
void *  context 
)

Register a set of callbacks for Providing (or implementing) an Interface on an Object.

This notifies the system that the given Interface is now available on the given Object. For the duration of the DOFOperation, the Provider callbacks will be used to handle requests to the Object for the given Interface. As with any DOFOperation, this "operation" can be extended or cancelled.

Resource Management:
This function allocates resources that must later be freed by calling DOFOperation_Destroy.
Parameters
objThe DOFObject on which to Provide. This should not be NULL and should represent a single object (neither the broadcast nor a multicast object).
ifaceThe DOFInterface to Provide. This should not be NULL.
timeoutThe duration for the Provide "operation", in milliseconds. The timeout begins after the operation has been processed and sent to appropriate connections.
callbackThe callbacks to use while providing this Interface on this Object. This may be NULL (or any of its functions) if they do not apply or do not need to be implemented for the provider.
contextApplication context data associated with the "operation". This may be NULL.
Returns
A reference to the new provide DOFOperation.
Exceptions
NULLis returned if , or
  • an invalid parameter is detected; or
  • insufficient resources exist to create the operation; or
  • this node is already providing for iface on obj.
core-c-dof-oal Version 7.1.5 Build 0
2017-01-25