Ignore:
Timestamp:
May 22, 2009, 3:22:57 PM (11 years ago)
Author:
Sam Hocevar
Message:

Fix import/export related stuff I forgot to update in the Ruby and PHP bindings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/php_caca.c

    r3334 r3511  
    15511551        caca_file_read(file, buffer, len);
    15521552
    1553         RETURN_STRINGL(buffer, len, 1cac);
     1553        RETURN_STRINGL(buffer, len, 1);
    15541554}
    15551555
     
    16091609        ZEND_FETCH_RESOURCE(canvas, caca_canvas_t*, &_zval, -1, PHP_CACA_CANVAS_RES_NAME, le_caca_canvas);
    16101610
    1611         RETURN_LONG(caca_import_memory(canvas, src, src_len, format));
     1611        RETURN_LONG(caca_import_canvas_from_memory(canvas, src, src_len, format));
    16121612}
    16131613
     
    16221622        ZEND_FETCH_RESOURCE(canvas, caca_canvas_t*, &_zval, -1, PHP_CACA_CANVAS_RES_NAME, le_caca_canvas);
    16231623
    1624         RETURN_LONG(caca_import_file(canvas, filename, format));
     1624        RETURN_LONG(caca_import_canvas_from_file(canvas, filename, format));
    16251625}
    16261626
     
    16481648        void *buffer;
    16491649        size_t len = 0;
    1650         buffer = caca_export_memory(canvas, type, &len);
     1650        buffer = caca_export_canvas_to_memory(canvas, type, &len);
    16511651        if (!buffer) {
    16521652                RETURN_FALSE;
Note: See TracChangeset for help on using the changeset viewer.