Ignore:
Timestamp:
Apr 26, 2006, 1:54:26 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Implemented cucul_load_file() and cucul_load_memory() to load respectively a file and a memory area into a libcucul buffer.
  • Changed the cucul_import_canvas() prototype so that it uses libcucul buffers instead of simple memory areas.
File:
1 edited

Legend:

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

    r866 r896  
    205205    for(;;)
    206206    {
     207        cucul_buffer_t *b;
    207208        uint8_t *buf = server->input;
    208209        uint32_t width, height;
     
    235236            cucul_free_canvas(server->canvas);
    236237
    237         server->canvas = cucul_import_canvas(buf, size, "caca");
     238        b = cucul_load_memory(buf, size);
     239        server->canvas = cucul_import_canvas(b, "caca");
     240        cucul_free_buffer(b);
    238241
    239242        if(!server->canvas)
Note: See TracChangeset for help on using the changeset viewer.