objc_getProtocol(_:)
Returns a specified protocol.
Declaration
func objc_getProtocol(_ name: UnsafePointer<CChar>) -> Protocol?Parameters
- name:
The name of a protocol.
Return Value
The protocol named name, or NULL if no protocol named name could be found.
Discussion
This function acquires the runtime lock.
See Also
Working with Protocols
objc_copyProtocolList(_:)objc_allocateProtocol(_:)objc_registerProtocol(_:)protocol_addMethodDescription(_:_:_:_:_:)protocol_addProtocol(_:_:)protocol_addProperty(_:_:_:_:_:_:)protocol_getName(_:)protocol_isEqual(_:_:)protocol_copyMethodDescriptionList(_:_:_:_:)protocol_getMethodDescription(_:_:_:_:)protocol_copyPropertyList(_:_:)protocol_getProperty(_:_:_:_:)protocol_copyProtocolList(_:_:)protocol_conformsToProtocol(_:_:)