3 (define-boxed-variant-cstruct evt
"evt"
4 (type :int
:initform
0)
5 (time :uint
:initform
0)
8 (x :double
:initform
0.0d0
)
9 (y :double
:initform
0.0d0
))
14 (item :uchar
:initform
0))))))
16 (defcallback test-evt
(g-boxed-foreign evt
)
17 ((time :int
) (e1 (g-boxed-foreign evt
)))
21 (incf (evt-time e1
) time
))
22 (make-evt-multi :time time
:t2
123))
24 (defun do-test-evt (e1 time
)
25 (let ((e2 (foreign-funcall-pointer (callback test-evt
) () :int time
(g-boxed-foreign evt
) e1
(g-boxed-foreign evt
))))