mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
port allocator: make port range constant object
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
5dbda5e972
commit
9c61c28081
@ -130,10 +130,10 @@ struct _libxlDriverPrivate {
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
virObjectEventStatePtr domainEventState;
|
||||
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
/* Immutable pointer, immutable object */
|
||||
virPortAllocatorRangePtr reservedGraphicsPorts;
|
||||
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
/* Immutable pointer, immutable object */
|
||||
virPortAllocatorRangePtr migrationPorts;
|
||||
|
||||
/* Immutable pointer, lockless APIs*/
|
||||
|
@ -263,13 +263,13 @@ struct _virQEMUDriver {
|
||||
/* Immutable pointer. Unsafe APIs. XXX */
|
||||
virHashTablePtr sharedDevices;
|
||||
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
/* Immutable pointer, immutable object */
|
||||
virPortAllocatorRangePtr remotePorts;
|
||||
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
/* Immutable pointer, immutable object */
|
||||
virPortAllocatorRangePtr webSocketPorts;
|
||||
|
||||
/* Immutable pointer, self-locking APIs */
|
||||
/* Immutable pointer, immutable object */
|
||||
virPortAllocatorRangePtr migrationPorts;
|
||||
|
||||
/* Immutable pointer, lockless APIs*/
|
||||
|
@ -213,7 +213,7 @@ virPortAllocatorGet(void)
|
||||
}
|
||||
|
||||
int
|
||||
virPortAllocatorAcquire(virPortAllocatorRangePtr range,
|
||||
virPortAllocatorAcquire(const virPortAllocatorRange *range,
|
||||
unsigned short *port)
|
||||
{
|
||||
int ret = -1;
|
||||
|
@ -35,7 +35,7 @@ virPortAllocatorRangeNew(const char *name,
|
||||
|
||||
void virPortAllocatorRangeFree(virPortAllocatorRangePtr range);
|
||||
|
||||
int virPortAllocatorAcquire(virPortAllocatorRangePtr range,
|
||||
int virPortAllocatorAcquire(const virPortAllocatorRange *range,
|
||||
unsigned short *port);
|
||||
|
||||
int virPortAllocatorRelease(unsigned short port);
|
||||
|
Loading…
x
Reference in New Issue
Block a user