Unreleased Changes
==================
+* The `fuse_lowlevel_new` function has been renamed to
+ `fuse_session_new`.
+
* There are now new `fuse_session_unmount` and `fuse_session_mount`
functions that should be used in the low-level API. The
`fuse_mount` and `fuse_unmount` functions should be used with the
if (fuse_parse_cmdline(&args, &mountpoint, NULL, NULL) != -1 &&
(ch = fuse_session_mount(mountpoint, &args)) != NULL) {
struct fuse_session *se;
- se = fuse_lowlevel_new(&args, &lo_oper, sizeof(lo_oper), &lo);
+ se = fuse_session_new(&args, &lo_oper, sizeof(lo_oper), &lo);
if (se != NULL) {
if (fuse_set_signal_handlers(se) != -1) {
fuse_session_add_chan(se, ch);
(ch = fuse_session_mount(mountpoint, &args)) != NULL) {
struct fuse_session *se;
- se = fuse_lowlevel_new(&args, &hello_ll_oper,
+ se = fuse_session_new(&args, &hello_ll_oper,
sizeof(hello_ll_oper), NULL);
if (se != NULL) {
if (fuse_set_signal_handlers(se) != -1) {
*
* There's no reply to this function
*
- * @param userdata the user data passed to fuse_lowlevel_new()
+ * @param userdata the user data passed to fuse_session_new()
*/
void (*init) (void *userdata, struct fuse_conn_info *conn);
*
* There's no reply to this function
*
- * @param userdata the user data passed to fuse_lowlevel_new()
+ * @param userdata the user data passed to fuse_session_new()
*/
void (*destroy) (void *userdata);
* Get the userdata from the request
*
* @param req request handle
- * @return the user data passed to fuse_lowlevel_new()
+ * @return the user data passed to fuse_session_new()
*/
void *fuse_req_userdata(fuse_req_t req);
* prints the requsted information to stdout and returns NULL.
*
* @param args argument vector
- * @param op the low level filesystem operations
+ * @param op the (low-level) filesystem operations
* @param op_size sizeof(struct fuse_lowlevel_ops)
* @param userdata user data
- * @return the created session object, or NULL on failure
+ *
+ * @return the fuse session on success, NULL on failure
*
* Example: See hello_ll.c:
* \snippet hello_ll.c doxygen_fuse_lowlevel_usage
- */
-struct fuse_session *fuse_lowlevel_new(struct fuse_args *args,
- const struct fuse_lowlevel_ops *op,
- size_t op_size, void *userdata);
+ **/
+struct fuse_session *fuse_session_new(struct fuse_args *args,
+ const struct fuse_lowlevel_ops *op,
+ size_t op_size, void *userdata);
/**
* Assign a channel to a session
lop.ioctl = clop->ioctl ? cuse_fll_ioctl : NULL;
lop.poll = clop->poll ? cuse_fll_poll : NULL;
- se = fuse_lowlevel_new(args, &lop, sizeof(lop), userdata);
+ se = fuse_session_new(args, &lop, sizeof(lop), userdata);
if (!se) {
free(cd);
return NULL;
/* This function will return NULL if there is an --help
or --version argument in `args` */
- f->se = fuse_lowlevel_new(args, &llop, sizeof(llop), f);
+ f->se = fuse_session_new(args, &llop, sizeof(llop), f);
if (f->se == NULL) {
if (f->conf.help)
fuse_lib_help_modules();
#define MIN_BUFSIZE 0x21000
-struct fuse_session *fuse_lowlevel_new(struct fuse_args *args,
- const struct fuse_lowlevel_ops *op,
- size_t op_size, void *userdata)
+struct fuse_session *fuse_session_new(struct fuse_args *args,
+ const struct fuse_lowlevel_ops *op,
+ size_t op_size, void *userdata)
{
int err;
struct fuse_ll *f;
fuse_daemonize;
fuse_get_session;
fuse_interrupted;
- fuse_lowlevel_new;
+ fuse_session_new;
fuse_main_real;
fuse_mount;
fuse_session_mount;