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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user