Changeset 757 for libcaca/trunk/src


Ignore:
Timestamp:
Apr 13, 2006, 2:50:41 PM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed cucul_export into cucul_buffer. We'll use it for other things.
Location:
libcaca/trunk/src
Files:
2 edited

Legend:

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

    r724 r757  
    104104
    105105    cucul_t *qq;
    106     struct cucul_export *ex;
     106    struct cucul_buffer *ex;
    107107
    108108    int client_count;
     
    439439            memcpy(c->outbuf + c->stop, ANSI_PREFIX, strlen(ANSI_PREFIX));
    440440            c->stop += strlen(ANSI_PREFIX);
    441             memcpy(c->outbuf + c->stop, server->ex->buffer, server->ex->size);
     441            memcpy(c->outbuf + c->stop, server->ex->data, server->ex->size);
    442442            c->stop += server->ex->size;
    443443
     
    471471        memcpy(c->outbuf, ANSI_PREFIX, strlen(ANSI_PREFIX) - ret);
    472472        c->stop = strlen(ANSI_PREFIX) - ret;
    473         memcpy(c->outbuf + c->stop, server->ex->buffer, server->ex->size);
     473        memcpy(c->outbuf + c->stop, server->ex->data, server->ex->size);
    474474        c->stop += server->ex->size;
    475475
     
    478478
    479479    /* Send actual data */
    480     ret = nonblock_write(c->fd, server->ex->buffer, server->ex->size);
     480    ret = nonblock_write(c->fd, server->ex->data, server->ex->size);
    481481    if(ret == -1)
    482482    {
     
    498498        }
    499499
    500         memcpy(c->outbuf, server->ex->buffer, server->ex->size - ret);
     500        memcpy(c->outbuf, server->ex->data, server->ex->size - ret);
    501501        c->stop = server->ex->size - ret;
    502502
  • libcaca/trunk/src/img2irc.c

    r739 r757  
    2525    /* libcucul context */
    2626    cucul_t *qq;
    27     struct cucul_export *export;
     27    struct cucul_buffer *export;
    2828    struct image *i;
    2929    int cols = 56, lines;
     
    6060
    6161    export = cucul_create_export(qq, "irc");
    62     fwrite(export->buffer, export->size, 1, stdout);
     62    fwrite(export->data, export->size, 1, stdout);
    6363    cucul_free_export(export);
    6464
Note: See TracChangeset for help on using the changeset viewer.