/filesystems-objc/LoopbackFS/LoopbackFS.h

http://macfuse.googlecode.com/ · C Header · 38 lines · 7 code · 3 blank · 28 comment · 0 complexity · 742c1fff334785cad47ff62569c26f8b MD5 · raw file

  1. // ================================================================
  2. // Copyright (C) 2007 Google Inc.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. // ================================================================
  16. //
  17. // LoopbackFS.h
  18. // LoopbackFS
  19. //
  20. // Created by ted on 12/12/07.
  21. //
  22. // This is a simple but complete example filesystem that mounts a local
  23. // directory. You can modify this to see how the Finder reacts to returning
  24. // specific error codes or not implementing a particular GMUserFileSystem
  25. // operation.
  26. //
  27. // For example, you can mount "/tmp" in /Volumes/loop. Note: It is
  28. // probably not a good idea to mount "/" through this filesystem.
  29. #import <Cocoa/Cocoa.h>
  30. @interface LoopbackFS : NSObject {
  31. NSString* rootPath_; // The local file-system path to mount.
  32. }
  33. - (id)initWithRootPath:(NSString *)rootPath;
  34. - (void)dealloc;
  35. @end