smbfs.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * \file
  3. * \brief Header: Virtual File System: smb file system
  4. */
  5. #ifndef MC__VFS_SMBFS_H
  6. #define MC__VFS_SMBFS_H
  7. /*** typedefs(not structures) and defined constants **********************************************/
  8. /*** enums ***************************************************************************************/
  9. /*** structures declarations (and typedefs of structures)*****************************************/
  10. typedef struct smb_authinfo
  11. {
  12. char *host;
  13. char *share;
  14. char *domain;
  15. char *user;
  16. char *password;
  17. } smb_authinfo;
  18. /*** global variables defined in .c file *********************************************************/
  19. /*** declarations of public functions ************************************************************/
  20. void init_smbfs (void);
  21. void smbfs_set_debug (int arg);
  22. void smbfs_set_debugf (const char *filename);
  23. smb_authinfo *vfs_smb_authinfo_new (const char *host,
  24. const char *share,
  25. const char *domain, const char *user, const char *pass);
  26. /* src/boxes.c */
  27. smb_authinfo *vfs_smb_get_authinfo (const char *host,
  28. const char *share, const char *domain, const char *user);
  29. /*** inline functions ****************************************************************************/
  30. #endif /* MC_VFS_SMBFS_H */