[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH v4 2/7] bandwidth: Declare internal structures



On 07/22/2011 10:07 AM, Michal Privoznik wrote:
---
  src/util/network.h |   14 ++++++++++++++
  1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/util/network.h b/src/util/network.h
index 27347f8..3c090d8 100644
--- a/src/util/network.h
+++ b/src/util/network.h
@@ -48,6 +48,20 @@ typedef struct {

  typedef virSocketAddr *virSocketAddrPtr;

+typedef struct {
+    unsigned long long average;  /* kbytes/s */
+    unsigned long long peak;     /* kbytes/s */
+    unsigned long long burst;    /* kbytes */
+} virRate;
+
+typedef virRate *virRatePtr;
+
+typedef struct {
+    virRatePtr in, out;
+} virBandwidth;
+
+typedef virBandwidth *virBandwidthPtr;
+
  int virSocketParseAddr    (const char *val,
                             virSocketAddrPtr addr,
                             int hint);

ACK


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]