Added library for FUSE support. Contains only a few empty stubs ATM. It is
sufficient to build sshfs-fuse, though. Obviously it doesn't actually work yet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29595 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -46,4 +46,5 @@ Application userlandfs_server
|
||||
;
|
||||
|
||||
HaikuSubInclude beos ;
|
||||
HaikuSubInclude fuse ;
|
||||
HaikuSubInclude haiku ;
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
SubDir HAIKU_TOP src add-ons kernel file_systems userlandfs server fuse ;
|
||||
|
||||
local userlandFSTop = [ FDirName $(HAIKU_TOP) src add-ons kernel
|
||||
file_systems userlandfs ] ;
|
||||
local userlandFSIncludes = [ PrivateHeaders userlandfs ] ;
|
||||
|
||||
SubDirSysHdrs [ FDirName $(userlandFSIncludes) ] ;
|
||||
SubDirSysHdrs [ FDirName $(userlandFSIncludes) fuse ] ;
|
||||
SubDirHdrs [ FDirName $(userlandFSIncludes) private ] ;
|
||||
SubDirHdrs [ FDirName $(userlandFSIncludes) shared ] ;
|
||||
|
||||
SEARCH_SOURCE += [ FDirName $(userlandFSTop) private ] ;
|
||||
SEARCH_SOURCE += [ FDirName $(userlandFSTop) shared ] ;
|
||||
|
||||
DEFINES += USER=1 ;
|
||||
DEFINES += DEBUG_APP="\\\"libuserlandfs_fuse\\\"" ;
|
||||
DEFINES += BUILDING_USERLAND_FS_SERVER=1 ;
|
||||
DEFINES += _FILE_OFFSET_BITS=64 ;
|
||||
|
||||
# the library providing the FUSE interface for add-ons
|
||||
SharedLibrary libuserlandfs_fuse.so
|
||||
:
|
||||
fuse_main.cpp
|
||||
|
||||
:
|
||||
<nogrist>userlandfs_server
|
||||
;
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
#define FUSE_USE_VERSION FUSE_VERSION
|
||||
|
||||
#include <fuse.h>
|
||||
|
||||
|
||||
int
|
||||
fuse_main_real(int argc, char* argv[], const struct fuse_operations* op,
|
||||
size_t op_size, void *user_data)
|
||||
{
|
||||
// TODO: Implement!
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
fuse_is_lib_option(const char *opt)
|
||||
{
|
||||
// TODO: Implement!
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
fuse_version(void)
|
||||
{
|
||||
return FUSE_VERSION;
|
||||
}
|
||||
Reference in New Issue
Block a user