2018-06-07 21:11:14 +02:00
|
|
|
/*
|
|
|
|
* virtio-fs glue for FUSE
|
|
|
|
* Copyright (C) 2018 Red Hat, Inc. and/or its affiliates
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Dave Gilbert <dgilbert@redhat.com>
|
|
|
|
*
|
|
|
|
* Implements the glue between libfuse and libvhost-user
|
|
|
|
*
|
|
|
|
* This program can be distributed under the terms of the GNU LGPLv2.
|
|
|
|
* See the file COPYING.LIB
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FUSE_VIRTIO_H
|
|
|
|
#define FUSE_VIRTIO_H
|
|
|
|
|
|
|
|
#include "fuse_i.h"
|
|
|
|
|
|
|
|
struct fuse_session;
|
|
|
|
|
|
|
|
int virtio_session_mount(struct fuse_session *se);
|
2019-06-06 23:43:52 +02:00
|
|
|
void virtio_session_close(struct fuse_session *se);
|
2018-06-08 20:59:20 +02:00
|
|
|
int virtio_loop(struct fuse_session *se);
|
|
|
|
|
2018-06-18 19:46:01 +02:00
|
|
|
|
|
|
|
int virtio_send_msg(struct fuse_session *se, struct fuse_chan *ch,
|
|
|
|
struct iovec *iov, int count);
|
|
|
|
|
2018-08-15 21:26:05 +02:00
|
|
|
int virtio_send_data_iov(struct fuse_session *se, struct fuse_chan *ch,
|
|
|
|
struct iovec *iov, int count,
|
|
|
|
struct fuse_bufvec *buf, size_t len);
|
|
|
|
|
2018-06-07 21:11:14 +02:00
|
|
|
#endif
|