bandwidth: Declare internal structures

This commit is contained in:
Michal Privoznik 2011-07-22 16:07:24 +02:00 committed by Daniel Veillard
parent a8923162c9
commit 7373188219
1 changed files with 14 additions and 0 deletions

View File

@ -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);