Ignore:
Timestamp:
Sep 27, 2008, 3:12:46 PM (12 years ago)
Author:
Sam Hocevar
Message:

Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/import.c

    r2299 r2821  
    2020#endif
    2121
    22 #include "cucul.h"
    2322#include "caca.h"
    2423
    2524int main(int argc, char *argv[])
    2625{
    27     cucul_canvas_t *cv;
     26    caca_canvas_t *cv;
    2827    caca_display_t *dp;
    2928
     
    3534    }
    3635
    37     cv = cucul_create_canvas(0, 0);
     36    cv = caca_create_canvas(0, 0);
    3837    if(cv == NULL)
    3938    {
     
    4241    }
    4342
    44     if(cucul_import_file(cv, argv[1], argc >= 3 ? argv[2] : "") < 0)
     43    if(caca_import_file(cv, argv[1], argc >= 3 ? argv[2] : "") < 0)
    4544    {
    4645        fprintf(stderr, "%s: could not open `%s'.\n", argv[0], argv[1]);
    47         cucul_free_canvas(cv);
     46        caca_free_canvas(cv);
    4847        return 1;
    4948    }
     
    6160
    6261    caca_free_display(dp);
    63     cucul_free_canvas(cv);
     62    caca_free_canvas(cv);
    6463
    6564    return 0;
Note: See TracChangeset for help on using the changeset viewer.