2 FUSE: Filesystem in Userspace
3 Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
5 This program can be distributed under the terms of the GNU LGPLv2.
6 See the file COPYING.LIB
9 #include "fuse_lowlevel.h"
15 int fuse_session_loop(struct fuse_session
*se
)
18 struct fuse_chan
*ch
= fuse_session_chan(se
);
19 struct fuse_buf fbuf
= {
23 while (!fuse_session_exited(se
)) {
24 res
= fuse_session_receive_buf(se
, &fbuf
, ch
);
31 fuse_session_process_buf(se
, &fbuf
, ch
);
35 fuse_session_reset(se
);
36 return res
< 0 ? -1 : 0;