X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fofpbuf.h;h=9072cc47407398358affe62b2fb076b89a176f41;hb=26ad129e69fc7c800630dbd541dc2dcc8150c3a4;hp=259e703cf5c79cad90bf58af25877c914610949f;hpb=c69ee87c10818267f991236201150b1fa51ae519;p=openvswitch diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h index 259e703c..9072cc47 100644 --- a/lib/ofpbuf.h +++ b/lib/ofpbuf.h @@ -64,8 +64,8 @@ void ofpbuf_reserve(struct ofpbuf *, size_t); void *ofpbuf_push_uninit(struct ofpbuf *b, size_t); void *ofpbuf_push(struct ofpbuf *b, const void *, size_t); -size_t ofpbuf_headroom(struct ofpbuf *); -size_t ofpbuf_tailroom(struct ofpbuf *); +size_t ofpbuf_headroom(const struct ofpbuf *); +size_t ofpbuf_tailroom(const struct ofpbuf *); void ofpbuf_prealloc_headroom(struct ofpbuf *, size_t); void ofpbuf_prealloc_tailroom(struct ofpbuf *, size_t); void ofpbuf_trim(struct ofpbuf *); @@ -74,6 +74,8 @@ void ofpbuf_clear(struct ofpbuf *); void *ofpbuf_pull(struct ofpbuf *, size_t); void *ofpbuf_try_pull(struct ofpbuf *, size_t); +char *ofpbuf_to_string(const struct ofpbuf *, size_t maxbytes); + #ifdef __cplusplus } #endif