diff --git a/src/util/network.h b/src/util/network.h index 27347f8e69e36ec4a152d19f8e079aa99fba0831..3c090d83991301429a926243162782c3fad9cdf7 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);