2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

files: Hide pslist selection logic into file desc handlers

Don't do explicit switch by file type in files.c and don't export
intimate knowledge of pty being master/slave. Use a file desc op
for that.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-09-14 21:53:51 +04:00
parent e0b39c5fd9
commit 62cf23b93a
5 changed files with 26 additions and 22 deletions

View File

@@ -48,6 +48,7 @@ struct file_desc_ops {
int (*open)(struct file_desc *d);
int (*post_open)(struct file_desc *d, int fd);
int (*want_transport)(FdinfoEntry *fe, struct file_desc *d);
struct list_head * (*select_ps_list)(struct file_desc *, struct rst_info *);
};
struct file_desc {