Exemple #1
0
// String returns the string representation of the ACL.
func (acl *ACL) String() string {
	cs, _ := C.acl_to_text(acl.a, nil)
	if cs == nil {
		return ""
	}
	defer C.acl_free(unsafe.Pointer(cs))
	return C.GoString(cs)
}
Exemple #2
0
// Free releases the memory used by the ACL.
func (acl *ACL) Free() {
	C.acl_free(unsafe.Pointer(acl.a))
}
Exemple #3
0
func Free(this *ACL) {
	C.acl_free(unsafe.Pointer(this.ptr))
}