X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fofpbuf.h;h=736b8f5e5ee35156f381e5390c7b2e33fd97a406;hb=142181fcd734a2afff9fe13e54fe51c7a2c824d2;hp=b65f79ee6867f4cae0297247666066f91183afc8;hpb=5019f688d4e3117960503d57978ff2e0fb3771e0;p=openvswitch diff --git a/lib/ofpbuf.h b/lib/ofpbuf.h index b65f79ee..736b8f5e 100644 --- a/lib/ofpbuf.h +++ b/lib/ofpbuf.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009 Nicira Networks. + * Copyright (c) 2008, 2009, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -62,6 +62,7 @@ void *ofpbuf_put_zeros(struct ofpbuf *, size_t); void *ofpbuf_put(struct ofpbuf *, const void *, size_t); void ofpbuf_reserve(struct ofpbuf *, size_t); 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); size_t ofpbuf_headroom(const struct ofpbuf *); @@ -74,6 +75,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