Ignore:
Timestamp:
Apr 16, 2006, 8:28:47 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Replaced "struct cucul_*" and "struct caca_*" types with opaque typedefs such as cucul_dither_t instead of struct cucul_dither.
  • Made cucul_buffer_t an opaque structure and implemented the two getters cucul_get_buffer_data() and cucul_get_buffer_size().
  • Documented all missing functions and function parameters.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca_internals.h

    r775 r777  
    2525typedef long unsigned int uintptr_t;
    2626#endif
     27
     28typedef struct caca_timer caca_timer_t;
    2729
    2830#if !defined(_DOXYGEN_SKIP_ME)
     
    8991
    9092/* Internal caca context */
    91 struct caca_context
     93struct caca
    9294{
    9395    /* A link to our cucul canvas */
     
    107109        void (* display) (caca_t *);
    108110        void (* handle_resize) (caca_t *);
    109         int (* get_event) (caca_t *, struct caca_event *);
     111        int (* get_event) (caca_t *, caca_event_t *);
    110112        void (* set_mouse) (caca_t *, int);
    111113    } drv;
     
    126128    /* Framerate handling */
    127129    unsigned int delay, rendertime;
    128     struct caca_timer timer;
     130    caca_timer_t timer;
    129131    int lastticks;
    130132
     
    132134    {
    133135#if defined(USE_SLANG) || defined(USE_NCURSES) || defined(USE_CONIO) || defined(USE_GL)
    134         struct caca_event buf[EVENTBUF_LEN];
     136        caca_event_t buf[EVENTBUF_LEN];
    135137        int queue;
    136138#endif
    137139#if defined(USE_SLANG) || defined(USE_NCURSES)
    138         struct caca_timer key_timer;
     140        caca_timer_t key_timer;
    139141        unsigned int last_key_ticks;
    140142        unsigned int autorepeat_ticks;
    141         struct caca_event last_key_event;
     143        caca_event_t last_key_event;
    142144#endif
    143145#if defined(USE_WIN32)
     
    149151/* Internal timer functions */
    150152extern void _caca_sleep(unsigned int);
    151 extern unsigned int _caca_getticks(struct caca_timer *);
     153extern unsigned int _caca_getticks(caca_timer_t *);
    152154
    153155/* Internal event functions */
    154156extern void _caca_handle_resize(caca_t *);
    155157#if defined(USE_SLANG) || defined(USE_NCURSES) || defined(USE_CONIO) || defined(USE_GL)
    156 extern void _push_event(caca_t *, struct caca_event *);
    157 extern int _pop_event(caca_t *, struct caca_event *);
     158extern void _push_event(caca_t *, caca_event_t *);
     159extern int _pop_event(caca_t *, caca_event_t *);
    158160#endif
    159161
Note: See TracChangeset for help on using the changeset viewer.