Ignore:
Timestamp:
Apr 16, 2006, 8:28:47 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Replaced "struct cucul_*" and "struct caca_*" types with opaque typedefs such as cucul_dither_t instead of struct cucul_dither.
  • Made cucul_buffer_t an opaque structure and implemented the two getters cucul_get_buffer_data() and cucul_get_buffer_size().
  • Documented all missing functions and function parameters.
File:
1 edited

Legend:

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

    r757 r777  
    2525    /* libcucul context */
    2626    cucul_t *qq;
    27     struct cucul_buffer *export;
     27    cucul_buffer_t *export;
    2828    struct image *i;
    2929    int cols = 56, lines;
     
    6060
    6161    export = cucul_create_export(qq, "irc");
    62     fwrite(export->data, export->size, 1, stdout);
    63     cucul_free_export(export);
     62    fwrite(cucul_get_buffer_data(export),
     63           cucul_get_buffer_size(export), 1, stdout);
     64    cucul_free_buffer(export);
    6465
    6566    cucul_free(qq);
Note: See TracChangeset for help on using the changeset viewer.