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

Add a null driver that does absolutely nothing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.