From 73731882194489e6c1135b87605d8c8d4c3c8910 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 22 Jul 2011 16:07:24 +0200 Subject: [PATCH] bandwidth: Declare internal structures --- src/util/network.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/util/network.h b/src/util/network.h index 27347f8e69..3c090d8399 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); -- GitLab