criu/compel/plugins/include/uapi/plugin-fds.h
Pavel Emelyanov 6606dc722c scm: Switch compel fd plugin onto common
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-03-15 00:06:04 +03:00

15 lines
328 B
C

/*
* plugin-fds.h -- API for fds compel plugin
*/
#ifndef __COMPEL_PLUGIN_FDS_H__
#define __COMPEL_PLUGIN_FDS_H__
#include "common/scm.h"
static inline int send_fd(int sock, struct sockaddr_un *saddr, int saddr_len, int fd)
{
return send_fds(sock, saddr, saddr_len, &fd, 1, false);
}
#endif /* __COMPEL_PLUGIN_FDS_H__ */