Ignore:
Timestamp:
Mar 24, 2006, 10:48:20 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Allow the driver initialisation to fail, for instance when $DISPLAY = "".
File:
1 edited

Legend:

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

    r681 r684  
    3939enum caca_driver
    4040{
     41    CACA_DRIVER_NONE = 0,
    4142#if defined(USE_CONIO)
    4243    CACA_DRIVER_CONIO = 1,
     
    6364    CACA_DRIVER_VGA = 8,
    6465#endif
    65     CACA_DRIVER_NONE = 0
    6666};
    6767
    6868/* Available drivers */
    6969#if defined(USE_CONIO)
    70 void conio_init_driver(caca_t *);
     70int conio_install(caca_t *);
    7171#endif
    7272#if defined(USE_GL)
    73 void gl_init_driver(caca_t *);
     73int gl_install(caca_t *);
    7474#endif
    7575#if defined(USE_NCURSES)
    76 void ncurses_init_driver(caca_t *);
     76int ncurses_install(caca_t *);
    7777#endif
    7878#if defined(USE_SLANG)
    79 void slang_init_driver(caca_t *);
     79int slang_install(caca_t *);
    8080#endif
    8181#if defined(USE_WIN32)
    82 void win32_init_driver(caca_t *);
     82int win32_install(caca_t *);
    8383#endif
    8484#if defined(USE_X11)
    85 void x11_init_driver(caca_t *);
     85int x11_install(caca_t *);
    8686#endif
    8787#if defined(USE_NETWORK)
    88 void network_init_driver(caca_t *);
     88int network_install(caca_t *);
    8989#endif
    9090#if defined(USE_VGA)
    91 void vga_init_driver(caca_t *);
     91int vga_install(caca_t *);
    9292#endif
     93
    9394/* Timer structure */
    9495struct caca_timer
     
    129130    {
    130131        int resized;   /* A resize event was requested */
    131         //int acked;     /* The event has been acknowledged by the user */
    132132        unsigned w, h; /* Requested width and height */
    133133    } resize;
Note: See TracChangeset for help on using the changeset viewer.