libnet: refactor initialization code
[barrelfish] / lib / net / include / net / netbufs.h
index d993278..6fa63c3 100644 (file)
@@ -32,8 +32,11 @@ struct devq;
  *
  * @return SYS_ERR_OK on success, errval on failure
  */
-errval_t net_buf_init(struct devq *dev_q, size_t numbuf, size_t size,
-                                struct net_buf_pool **retbp);
+errval_t net_buf_pool_alloc(struct devq *dev_q, size_t numbuf, size_t size,
+                            struct net_buf_pool **retbp);
+
+
+errval_t net_buf_pool_free(struct net_buf_pool *retbp);
 
 
 /**