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/event.c

    r773 r777  
    2727#include "caca_internals.h"
    2828
    29 static int _get_next_event(caca_t *, struct caca_event *);
    30 static int _lowlevel_event(caca_t *, struct caca_event *);
     29static int _get_next_event(caca_t *, caca_event_t *);
     30static int _lowlevel_event(caca_t *, caca_event_t *);
    3131
    3232#if !defined(_DOXYGEN_SKIP_ME)
     
    5858 */
    5959int caca_get_event(caca_t *kk, unsigned int event_mask,
    60                    struct caca_event *ev, int timeout)
    61 {
    62     struct caca_timer timer;
     60                   caca_event_t *ev, int timeout)
     61{
     62    caca_timer_t timer;
    6363    int usec = 0;
    6464
     
    142142 */
    143143
    144 static int _get_next_event(caca_t *kk, struct caca_event *ev)
     144static int _get_next_event(caca_t *kk, caca_event_t *ev)
    145145{
    146146#if defined(USE_SLANG) || defined(USE_NCURSES)
     
    224224}
    225225
    226 static int _lowlevel_event(caca_t *kk, struct caca_event *ev)
     226static int _lowlevel_event(caca_t *kk, caca_event_t *ev)
    227227{
    228228#if defined(USE_SLANG) || defined(USE_NCURSES) || defined(USE_CONIO)
     
    237237
    238238#if defined(USE_SLANG) || defined(USE_NCURSES) || defined(USE_CONIO) || defined(USE_GL)
    239 void _push_event(caca_t *kk, struct caca_event *ev)
     239void _push_event(caca_t *kk, caca_event_t *ev)
    240240{
    241241    if(!ev->type || kk->events.queue == EVENTBUF_LEN)
     
    245245}
    246246
    247 int _pop_event(caca_t *kk, struct caca_event *ev)
     247int _pop_event(caca_t *kk, caca_event_t *ev)
    248248{
    249249    int i;
Note: See TracChangeset for help on using the changeset viewer.