Changeset ff364f1 in mainline for uspace/lib/http/http.h


Ignore:
Timestamp:
2013-09-21T10:13:41Z (12 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0005b63
Parents:
f9a2831
Message:

Abstract away the receive buffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/http/http.h

    rf9a2831 rff364f1  
    4141#include <inet/addr.h>
    4242
     43#include "receive-buffer.h"
     44
    4345typedef struct {
    4446        char *host;
     
    5052       
    5153        size_t buffer_size;
    52         char *recv_buffer;
    53         size_t recv_buffer_in;
    54         size_t recv_buffer_out;
     54        receive_buffer_t recv_buffer;
    5555} http_t;
    5656
     
    9898extern void http_destroy(http_t *);
    9999
    100 extern void recv_reset(http_t *);
    101 extern int recv_char(http_t *, char *, bool);
    102 extern ssize_t recv_buffer(http_t *, char *, size_t);
    103 extern int recv_discard(http_t *, char);
    104 extern ssize_t recv_line(http_t *, char *, size_t);
    105 
    106100#endif
    107101
Note: See TracChangeset for help on using the changeset viewer.