X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libevent%2Fbufferevent-internal.h;h=8348ab7a06c0b63a4b1a88634665b90f33bb9028;hb=d2968df026cd9971caeab102f9348152b08b9132;hp=71711a36497e7fc396e5d17553d20ee6ebf28d51;hpb=15c1fc2f2328736dd428ec3be37c893d8ee2e065;p=netatalk.git diff --git a/libevent/bufferevent-internal.h b/libevent/bufferevent-internal.h index 71711a36..8348ab7a 100644 --- a/libevent/bufferevent-internal.h +++ b/libevent/bufferevent-internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008-2010 Niels Provos and Nick Mathewson + * Copyright (c) 2008-2012 Niels Provos and Nick Mathewson * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -98,6 +98,8 @@ struct bufferevent_rate_limit_group { /** The smallest number of bytes that any member of the group should * be limited to read or write at a time. */ ev_ssize_t min_share; + ev_ssize_t configured_min_share; + /** Timeout event that goes off once a tick, when the bucket is ready * to refill. */ struct event master_refill_event; @@ -195,7 +197,8 @@ struct bufferevent_private { enum bufferevent_ctrl_op { BEV_CTRL_SET_FD, BEV_CTRL_GET_FD, - BEV_CTRL_GET_UNDERLYING + BEV_CTRL_GET_UNDERLYING, + BEV_CTRL_CANCEL_ALL }; /** Possible data types for a control callback */