0
0
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:
James Yonan 2014-07-11 00:32:59 -06:00
parent d5e72f7806
commit 5129b4402c

View File

@ -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_;