X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/e1b96602fbd4f756acc5e884e0ff3c3e0c81bd04..5a87235c32cbd38d00d39bc6ae6f2981f20bcfc5:/glib/proxy.lisp diff --git a/glib/proxy.lisp b/glib/proxy.lisp index 4cf58a2..a129855 100644 --- a/glib/proxy.lisp +++ b/glib/proxy.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: proxy.lisp,v 1.34 2006-02-19 19:10:33 espen Exp $ +;; $Id: proxy.lisp,v 1.35 2006-02-19 19:23:23 espen Exp $ (in-package "GLIB") @@ -660,6 +660,13 @@ (defmethod reader-function ((class struct-class) &rest args) (unless (null-pointer-p instance) (ensure-proxy-instance class instance :weak t))))) +(defmethod callback-from-alien-form (form (class struct-class) &rest args) + `(ensure-proxy-instance ',(class-name class) ,form :weak t)) + +(defmethod callback-cleanup-form (form (class struct-class) &rest args) + (declare (ignore class)) + `(invalidate-instance ,form)) + ;;; Pseudo type for structs which are inlined in other objects