Changeset 826 for libcaca/trunk/src


Ignore:
Timestamp:
Apr 21, 2006, 8:44:04 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Moved cucul_load_canvas() into cucul/import.c and renamed it into cucul_import_canvas().
  • Renamed cucul_create_export() into cucul_export_canvas() for consistency.
Location:
libcaca/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaplay.c

    r819 r826  
    5454    buffer = malloc(statbuf.st_size);
    5555    read(fd, buffer, statbuf.st_size);
    56     cv = cucul_load_canvas(buffer, statbuf.st_size);
     56    cv = cucul_import_canvas(buffer, statbuf.st_size, "caca");
    5757    free(buffer);
    5858
  • libcaca/trunk/src/cacaserver.c

    r818 r826  
    227227            cucul_free_canvas(server->canvas);
    228228
    229         server->canvas = cucul_load_canvas(buf, size);
     229        server->canvas = cucul_import_canvas(buf, size, "caca");
    230230
    231231        if(!server->canvas)
     
    241241        /* Get ANSI representation of the image and skip the end-of buffer
    242242         * linefeed ("\r\n", 2 bytes) */
    243         server->buffer = cucul_create_export(server->canvas, "ansi");
     243        server->buffer = cucul_export_canvas(server->canvas, "ansi");
    244244        server->bufdata = cucul_get_buffer_data(server->buffer);
    245245        server->buflen = cucul_get_buffer_size(server->buffer);
  • libcaca/trunk/src/img2irc.c

    r816 r826  
    5959    unload_image(i);
    6060
    61     export = cucul_create_export(cv, "irc");
     61    export = cucul_export_canvas(cv, "irc");
    6262    fwrite(cucul_get_buffer_data(export),
    6363           cucul_get_buffer_size(export), 1, stdout);
Note: See TracChangeset for help on using the changeset viewer.