mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 08:45:49 +00:00
protobuf: Convert sk_opts_entry to PB format
This patch prepares the ground for further patches. sk_opts_entry get converted to PB format but not yet used anywhere in code. Also a few additional pb_ helpers are added. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
2383c398c4
commit
eb0f81bc6f
@@ -7,6 +7,9 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "protobuf.h"
|
||||
#include "../protobuf/sk-opts.pb-c.h"
|
||||
|
||||
struct fdinfo_list_entry;
|
||||
struct sk_opts_entry;
|
||||
struct cr_options;
|
||||
@@ -27,6 +30,10 @@ extern int dump_socket_opts(int sk, struct sk_opts_entry *soe);
|
||||
extern int restore_socket_opts(int sk, struct sk_opts_entry *soe);
|
||||
extern void show_socket_opts(struct sk_opts_entry *soe);
|
||||
|
||||
extern int pb_restore_socket_opts(int sk, SkOptsEntry *soe);
|
||||
extern int pb_dump_socket_opts(int sk, SkOptsEntry *soe);
|
||||
extern void pb_show_socket_opts(SkOptsEntry *soe);
|
||||
|
||||
extern int sk_collect_one(int ino, int family, struct socket_desc *d);
|
||||
extern int collect_sockets(void);
|
||||
extern int collect_inet_sockets(void);
|
||||
|
Reference in New Issue
Block a user