X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofpbuf.h;h=7407d8bd3e3cd094b45e9f162534d205d36994cc;hb=6c04f67c6adea0d2da1a8b8ccb5f6d0ef8add5bc;hp=0c12162c76032f1be495fb4e59b8d7a82cb49924;hpb=df35ec51b3ae4981746945b824fd375a2d74539a;p=sliver-openvswitch.git diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h index 0c12162c7..7407d8bd3 100644 --- a/lib/ofpbuf.h +++ b/lib/ofpbuf.h @@ -82,6 +82,8 @@ void *ofpbuf_put_zeros(struct ofpbuf *, size_t); void *ofpbuf_put(struct ofpbuf *, const void *, size_t); char *ofpbuf_put_hex(struct ofpbuf *, const char *s, size_t *n); void ofpbuf_reserve(struct ofpbuf *, size_t); +void ofpbuf_reserve_with_tailroom(struct ofpbuf *b, size_t headroom, + size_t tailroom); void *ofpbuf_push_uninit(struct ofpbuf *b, size_t); void *ofpbuf_push_zeros(struct ofpbuf *, size_t); void *ofpbuf_push(struct ofpbuf *b, const void *, size_t); @@ -92,6 +94,7 @@ void ofpbuf_prealloc_headroom(struct ofpbuf *, size_t); void ofpbuf_prealloc_tailroom(struct ofpbuf *, size_t); void ofpbuf_trim(struct ofpbuf *); void ofpbuf_padto(struct ofpbuf *, size_t); +void ofpbuf_shift(struct ofpbuf *, int); void ofpbuf_clear(struct ofpbuf *); void *ofpbuf_pull(struct ofpbuf *, size_t);