X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofpbuf.h;h=7f8338cd07a5d81ad7e9897cfb349a28275f64c4;hb=6a542738b2a59f98831fa36e6208d388c007d0b8;hp=b8e3670411908e479f4327fcaac68d452273f918;hpb=933369b1194bce82bffa8cc1ccfdf82782cc5cde;p=openvswitch diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h index b8e36704..7f8338cd 100644 --- a/lib/ofpbuf.h +++ b/lib/ofpbuf.h @@ -28,8 +28,7 @@ extern "C" { enum ofpbuf_source { OFPBUF_MALLOC, /* Obtained via malloc(). */ - OFPBUF_STACK, /* Stack space or static buffer. */ - OFPBUF_CONST /* Must not be expanded. */ + OFPBUF_STACK /* Stack space or static buffer. */ }; /* Buffer for holding arbitrary data. An ofpbuf is automatically reallocated @@ -92,6 +91,7 @@ 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 *); +void ofpbuf_padto(struct ofpbuf *, size_t); void ofpbuf_clear(struct ofpbuf *); void *ofpbuf_pull(struct ofpbuf *, size_t);