NSpProtocolList_Remove
You can use the NSpProtocolList_Remove function to remove a protocol reference from the list.
OSStatus NSpProtocolList_Remove ( NSpProtocolListReference inProtocolList, NSpProtocolReference inProtocolRef);
inProtocolList
- An opaque reference to a protocol list.
inProtocolRef
- An opaque reference to the protocol you are removing.
- function result
- A result code of
noErr
, or a NetSprocket or Open Transport result code.DESCRIPTION
When a protocol reference is removed from a protocol list, its memory once again belongs to the application and should be released with a call toNSpProtocol_Delete
.