* scheme/types.scm (ldap-entry): new type
This commit is contained in:
parent
2c6c2e5a18
commit
2c206b2023
|
@ -27,6 +27,8 @@
|
|||
(define (ldap-session-messages-member? session message)
|
||||
(memq message (ldap-session-messages session)))
|
||||
|
||||
|
||||
;;; This is the basic type
|
||||
(define-record-type ldap-message :ldap-message
|
||||
(make-ldap-message c-pointer)
|
||||
ldap-message?
|
||||
|
@ -34,6 +36,14 @@
|
|||
|
||||
(define-exported-binding "ldap-message" :ldap-message)
|
||||
|
||||
;;; The C api does not distinguish ldap-message, ldap-entry and
|
||||
;;; ldap-attribute as types, they all have the type LDAPMessage. We
|
||||
;;; do.
|
||||
(define-record-type ldap-entry :ldap-entry
|
||||
(make-ldap-entry message)
|
||||
ldap-entry?
|
||||
(message ldap-entry-message))
|
||||
|
||||
(define-record-type ldap-modification :ldap-modification
|
||||
(make-ldap-modification c-pointer)
|
||||
ldap-modification?
|
||||
|
|
Loading…
Reference in New Issue