mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
Minor addition to CF helper code:
Added CF::Wrap<T>::from_generic() method.
This commit is contained in:
parent
d5e72f7806
commit
5129b4402c
@ -126,6 +126,11 @@ namespace openvpn {
|
||||
|
||||
static T cast(CFTypeRef obj) { return T(Type<T>::cast(obj)); }
|
||||
|
||||
static Wrap from_generic(CFTypeRef obj, const Own own=OWN)
|
||||
{
|
||||
return Wrap(cast(obj), own);
|
||||
}
|
||||
|
||||
T release()
|
||||
{
|
||||
T ret = obj_;
|
||||
|
Loading…
Reference in New Issue
Block a user