/[cffi-objects]/freeable.lisp
ViewVC logotype

Diff of /freeable.lisp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 9 by rklochkov, Fri Aug 24 19:26:53 2012 UTC revision 12 by rklochkov, Sun Oct 7 11:59:54 2012 UTC
# Line 54  or free-returned-ptr. TYPE should be spe Line 54  or free-returned-ptr. TYPE should be spe
54    (free-returned-if-needed type ptr))    (free-returned-if-needed type ptr))
55    
56  (define-foreign-type freeable-out (freeable)  (define-foreign-type freeable-out (freeable)
57    ((out :accessor object-out :initarg :out :initform t    ((out :accessor object-out :initarg :out :initform nil
58          :documentation "This is out param (for fill in foreign side)"))          :documentation "This is out param (for fill in foreign side)"))
59    (:documentation "For returning data in out params.    (:documentation "For returning data in out params.
60  To use translate-to-foreign MUST return (values ptr place)"))  If OUT is t, then translate-to-foreign MUST return (values ptr place)"))
61    
62  (defgeneric copy-from-foreign (type ptr place)  (defgeneric copy-from-foreign (type ptr place)
63    (:documentation "Transfers data from pointer PTR to PLACE"))    (:documentation "Transfers data from pointer PTR to PLACE"))

Legend:
Removed from v.9  
changed lines
  Added in v.12

  ViewVC Help
Powered by ViewVC 1.1.5