X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/0739b019015e56f8f9149d7a0e087b074651e58b..bdf1567aa37a86469f0825e0ccc87d34039b7c4b:/glib/genums.lisp diff --git a/glib/genums.lisp b/glib/genums.lisp index 14bff9a..6624332 100644 --- a/glib/genums.lisp +++ b/glib/genums.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: genums.lisp,v 1.17 2006/02/06 18:12:19 espen Exp $ +;; $Id: genums.lisp,v 1.18 2006/02/19 22:25:31 espen Exp $ (in-package "GLIB") @@ -57,6 +57,9 @@ (defmethod to-alien-form (form (type (eql 'enum)) &rest args) (t (error 'type-error :datum ,form :expected-type '(enum ,@args))))) +(defmethod callback-from-alien-form (form (type (eql 'enum)) &rest args) + (apply #'from-alien-form form type args)) + (defmethod from-alien-form (form (type (eql 'enum)) &rest args) (declare (ignore type)) `(case ,form @@ -173,6 +176,9 @@ (defmethod to-alien-form (flags (type (eql 'flags)) &rest args) (t (error 'type-error :datum ,flags :expected-type '(,type ,@args))))))) +(defmethod callback-from-alien-form (form (type (eql 'flags)) &rest args) + (apply #'from-alien-form form type args)) + (defmethod from-alien-form (value (type (eql 'flags)) &rest args) (declare (ignore type)) `(loop