2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

protobuf: Drop fown_t type

We are ready to use FownEntry everywhere,
so drop fown_t type and clean up source code.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-07-19 09:39:00 +04:00
committed by Pavel Emelyanov
parent 8d92c2c3b2
commit 0468355c12
13 changed files with 38 additions and 140 deletions

View File

@@ -22,9 +22,15 @@ struct fd_parms {
char fd_flags;
struct stat stat;
pid_t pid;
fown_t fown;
FownEntry fown;
};
#define FD_PARMS_INIT \
{ \
.fd = FD_DESC_INVALID, \
.fown = FOWN_ENTRY__INIT, \
}
enum fdinfo_states {
FD_STATE_PREP, /* Create unix sockets */
FD_STATE_CREATE, /* Create and send fd */
@@ -73,12 +79,8 @@ extern struct fdinfo_list_entry *file_master(struct file_desc *d);
extern struct file_desc *find_file_desc_raw(int type, u32 id);
extern int send_fd_to_peer(int fd, struct fdinfo_list_entry *fle, int transport);
extern int restore_fown(int fd, fown_t *fown);
extern int rst_file_params(int fd, fown_t *fown, int flags);
extern int pb_restore_fown(int fd, FownEntry *fown);
extern int pb_rst_file_params(int fd, FownEntry *fown, int flags);
extern void pb_prep_fown(FownEntry *dst, const fown_t *src);
extern int restore_fown(int fd, FownEntry *fown);
extern int rst_file_params(int fd, FownEntry *fown, int flags);
extern void show_saved_files(void);