Changeset 3570 for libcaca


Ignore:
Timestamp:
Jul 24, 2009, 8:48:49 AM (10 years ago)
Author:
Sam Hocevar
Message:

Add a null driver that does absolutely nothing.

Location:
libcaca/trunk/caca
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/Makefile.am

    r3492 r3570  
    6363        driver/conio.c \
    6464        driver/ncurses.c \
     65        driver/null.c \
    6566        driver/raw.c \
    6667        driver/slang.c \
  • libcaca/trunk/caca/caca.c

    r2864 r3570  
    179179#if !defined(__KERNEL__)
    180180        "raw", "raw libcaca output",
     181        "null", "null driver",
    181182#endif
    182183        NULL, NULL
     
    390391        if(!strcasecmp(var, "vga")) return vga_install(dp);
    391392#endif
     393#if !defined(__KERNEL__)
     394        if(!strcasecmp(var, "null")) return null_install(dp);
     395#endif
    392396        return -1;
    393397    }
     
    420424    if(slang_install(dp) == 0) return 0;
    421425#endif
     426    /* Of course we don't try "raw" or "null" if the user did not
     427     * specifically ask for them. */
    422428
    423429    return -1;
  • libcaca/trunk/caca/caca_internals.h

    r3568 r3570  
    11/*
    22 *  libcaca       Colour ASCII-Art library
    3  *  Copyright (c) 2002-2006 Sam Hocevar <sam@zoy.org>
     3 *  Copyright (c) 2002-2006 Sam Hocevar <sam@hocevar.net>
    44 *                All Rights Reserved
    55 *
     
    8181enum caca_driver
    8282{
    83     CACA_DRIVER_NONE = 0,
     83    CACA_DRIVER_NULL = 0,
    8484    CACA_DRIVER_RAW = 1,
    8585#if defined(USE_COCOA)
     
    122122int ncurses_install(caca_display_t *);
    123123#endif
     124int null_install(caca_display_t *);
    124125int raw_install(caca_display_t *);
    125126#if defined(USE_SLANG)
Note: See TracChangeset for help on using the changeset viewer.