6 pub struct ConfMethod(*mut ffi
::CONF_METHOD
);
9 pub fn default() -> ConfMethod
{
12 ConfMethod(ffi
::NCONF_default())
16 pub unsafe fn from_ptr(ptr
: *mut ffi
::CONF_METHOD
) -> ConfMethod
{
20 pub fn as_ptr(&self) -> *mut ffi
::CONF_METHOD
{
26 type CType
= ffi
::CONF
;
27 fn drop
= ffi
::NCONF_free
;
34 pub fn new(method
: ConfMethod
) -> Result
<Conf
, ErrorStack
> {
35 unsafe { cvt_p(ffi::NCONF_new(method.as_ptr())).map(Conf) }