tbe.h - libeech - bittorrent library
 (HTM) git clone git://z3bra.org/libeech.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tbe.h (806B)
       ---
            1 /* See LICENSE file for copyright and license details. */
            2 #ifndef _BE_H
            3 #define _BE_H
            4 
            5 #include <stdint.h>
            6 #include <unistd.h>
            7 
            8 struct be {
            9         char *start;
           10         char *end;
           11         char *off;
           12 };
           13 
           14 int beinit(struct be *, char *, size_t);
           15 int beatol(char **, long *);
           16 ssize_t beint(struct be *, long *);
           17 ssize_t bestr(struct be *, char **, size_t *);
           18 ssize_t belist(struct be *, size_t *);
           19 ssize_t bedict(struct be *, size_t *);
           20 ssize_t benext(struct be *);
           21 int belistover(struct be *);
           22 int belistnext(struct be *);
           23 int bedictnext(struct be *, char **, size_t *, struct be *);
           24 char betype(struct be *);
           25 int bekv(struct be *, char *, size_t, struct be *);
           26 int bepath(struct be *, char **, size_t);
           27 long bekint(struct be *, char *, size_t);
           28 int bekstr(struct be *, char *, size_t, struct be *);
           29 
           30 #endif