mirror of
https://passt.top/passt
synced 2025-06-19 13:35:34 +02:00

...and time out after that. This will be needed because of an upcoming
change to passt-repair enabling it to start before passt is started,
on both source and target, by means of an inotify watch.
Once the inotify watch triggers, passt-repair will connect right away,
but we have no guarantees that the connection completes before we
start the migration process, so wait for it (for a reasonable amount
of time).
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
(cherry picked from commit c8b520c062
)
17 lines
494 B
C
17 lines
494 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright (c) 2025 Red Hat GmbH
|
|
* Author: Stefano Brivio <sbrivio@redhat.com>
|
|
*/
|
|
|
|
#ifndef REPAIR_H
|
|
#define REPAIR_H
|
|
|
|
void repair_sock_init(const struct ctx *c);
|
|
void repair_listen_handler(struct ctx *c, uint32_t events);
|
|
void repair_handler(struct ctx *c, uint32_t events);
|
|
void repair_close(struct ctx *c);
|
|
void repair_wait(struct ctx *c);
|
|
int repair_flush(struct ctx *c);
|
|
int repair_set(struct ctx *c, int s, int cmd);
|
|
|
|
#endif /* REPAIR_H */
|