提交 9c61c280 编写于 作者: N Nikolay Shirokovskiy 提交者: Michal Privoznik

port allocator: make port range constant object

Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
上级 5dbda5e9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册