src/video/SDL_sysvideo.h
changeset 5165 2b1989f59674
parent 5154 fb424691cfc7
child 5166 4d39eeaad00b
     1.1 --- a/src/video/SDL_sysvideo.h	Thu Feb 03 10:03:55 2011 -0800
     1.2 +++ b/src/video/SDL_sysvideo.h	Thu Feb 03 11:16:57 2011 -0800
     1.3 @@ -59,6 +59,13 @@
     1.4      int (*ResizeWindowShape)(SDL_Window *window);
     1.5  };
     1.6  
     1.7 +typedef struct SDL_WindowUserData
     1.8 +{
     1.9 +    char *name;
    1.10 +    void *data;
    1.11 +    struct SDL_WindowUserData *next;
    1.12 +} SDL_WindowUserData;
    1.13 +
    1.14  /* Define the SDL window structure, corresponding to toplevel windows */
    1.15  struct SDL_Window
    1.16  {
    1.17 @@ -75,7 +82,8 @@
    1.18      
    1.19      SDL_WindowShaper *shaper;
    1.20  
    1.21 -    void *userdata;
    1.22 +    SDL_WindowUserData *data;
    1.23 +
    1.24      void *driverdata;
    1.25  
    1.26      SDL_Window *prev;