Logo Search packages:      
Sourcecode: fuse version File versions  Download package

struct fuse_session* fuse_session_new ( struct fuse_session_ops op,
void *  data 
) [read]

Create a new session

Parameters:
op session operations
data user data
Returns:
new session object, or NULL on failure

Definition at line 44 of file fuse_session.c.

References fuse_session_new().

Referenced by fuse_loop_mt_proc(), and fuse_session_new().

{
      struct fuse_session *se = (struct fuse_session *) malloc(sizeof(*se));
      if (se == NULL) {
            fprintf(stderr, "fuse: failed to allocate session\n");
            return NULL;
      }

      memset(se, 0, sizeof(*se));
      se->op = *op;
      se->data = data;

      return se;
}


Generated by  Doxygen 1.6.0   Back to index