Changeset 8115 in project


Ignore:
Timestamp:
02/03/08 16:16:08 (11 years ago)
Author:
hans
Message:

use define-foreign-open-enum instead of define-foreign-enum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • directfb/trunk/directfb.scm

    r8110 r8115  
    7474;;; Enums
    7575
    76 (define-foreign-enum (dfb-cooperative-level int)
     76(define-foreign-open-enum (dfb-cooperative-level int) (strip-prefix: DFSCL_)
    7777  DFSCL_NORMAL DFSCL_FULLSCREEN DFSCL_EXCLUSIVE)
    7878
     
    110110  DFFA_NOCHARMAP DFFA_FIXEDCLIP)
    111111
    112 (define-foreign-enum (dfbs-pixelformat int)
     112(define-foreign-open-enum (dfbs-pixelformat int) (strip-prefix: DSPF_)
    113113  DSPF_UNKNOWN DSPF_ARGB1555 DSPF_RGB16 DSPF_RGB24 DSPF_RGB32 DSPF_ARGB
    114114  DSPF_A8 DSPF_YUY2 DSPF_RGB332 DSPF_UYVY DSPF_I420 DSPF_YV12 DSPF_LUT8
     
    117117  DSPF_RGB18 DSPF_LUT2 DSPF_RGB444 DSPF_RGB555)
    118118
    119 ;; FIXME: is it good to define this with define-foreign-enum?
    120 (define-foreign-enum (dfb-input-device-id unsigned-int)
     119(define-foreign-open-enum (dfb-input-device-id unsigned-int) (strip-prefix: DIDID_)
    121120  DIDID_KEYBOARD DIDID_MOUSE DIDID_JOYSTICK DIDID_REMOTE DIDID_ANY)
    122121
     
    124123  DICAPS_KEYS DICAPS_AXES DICAPS_BUTTONS DICAPS_ALL)
    125124
    126 (define-foreign-enum (dfb-event-class int)
     125(define-foreign-open-enum (dfb-event-class int) (strip-prefix: DFEC_)
    127126  DFEC_NONE DFEC_INPUT DFEC_WINDOW DFEC_USER DFEC_UNIVERSAL DFEC_VIDEOPROVIDER)
    128127
    129 (define-foreign-enum (dfb-input-event-type int)
     128(define-foreign-open-enum (dfb-input-event-type int) (strip-prefix: DIET_)
    130129  DIET_UNKNOWN DIET_KEYPRESS DIET_KEYRELEASE DIET_BUTTONPRESS
    131130  DIET_BUTTONRELEASE DIET_AXISMOTION)
Note: See TracChangeset for help on using the changeset viewer.