smbnetfs  0.6.3
About: SMBNetFS is a Linux/FreeBSD filesystem that allow you to use samba/microsoft network in the same manner as the network neighborhood in Microsoft Windows.
  Fossies Dox: smbnetfs-0.6.3.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

smbitem.h File Reference
#include <time.h>
Include dependency graph for smbitem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  smbitem
 

Enumerations

enum  smbitem_t { SMBITEM_LINK , SMBITEM_HOST , SMBITEM_GROUP }
 
enum  smbitem_tree_t { SMBITEM_USER_TREE , SMBITEM_SAMBA_TREE }
 
enum  smbitem_path_t {
  SMBITEM_UNKNOWN , SMBITEM_SMBNETFS_DIR , SMBITEM_SMBNETFS_LINK , SMBITEM_SMB_NAME ,
  SMBITEM_SMB_SHARE , SMBITEM_SMB_SHARE_ITEM
}
 

Functions

int smbitem_init (void)
 
void smbitem_done (void)
 
int smbitem_mkgroup (const char *path, enum smbitem_tree_t tree)
 
int smbitem_mkhost (const char *path, const char *group, int is_hidden, enum smbitem_tree_t tree)
 
int smbitem_mklink (const char *path, const char *linkpath, enum smbitem_tree_t tree)
 
struct smbitemsmbitem_getdir (const char *path)
 
struct smbitemsmbitem_get_samba_groups (void)
 
void smbitem_release_dir (struct smbitem *item)
 
void smbitem_delete_obsolete (time_t threshold, enum smbitem_tree_t tree)
 
enum smbitem_path_t smbitem_what_is (const char *path)
 
int smbitem_is_name_exist (const char *name)
 
int smbitem_readlink (const char *path, char *buf, size_t size)
 
int smbitem_get_group (const char *host, char *buf, size_t size)
 

Enumeration Type Documentation

◆ smbitem_path_t

Enumerator
SMBITEM_UNKNOWN 
SMBITEM_SMBNETFS_DIR 
SMBITEM_SMBNETFS_LINK 
SMBITEM_SMB_NAME 
SMBITEM_SMB_SHARE 
SMBITEM_SMB_SHARE_ITEM 

Definition at line 17 of file smbitem.h.

◆ smbitem_t

enum smbitem_t
Enumerator
SMBITEM_LINK 
SMBITEM_HOST 
SMBITEM_GROUP 

Definition at line 6 of file smbitem.h.

◆ smbitem_tree_t

Enumerator
SMBITEM_USER_TREE 
SMBITEM_SAMBA_TREE 

Definition at line 12 of file smbitem.h.

Function Documentation

◆ smbitem_delete_obsolete()

void smbitem_delete_obsolete ( time_t  threshold,
enum smbitem_tree_t  tree 
)

◆ smbitem_done()

void smbitem_done ( void  )

Definition at line 204 of file smbitem.c.

References m_smbitem, trees::samba, smbitem_release_item(), and trees::user.

Referenced by main().

◆ smbitem_get_group()

int smbitem_get_group ( const char *  host,
char *  buf,
size_t  size 
)

◆ smbitem_get_samba_groups()

◆ smbitem_getdir()

◆ smbitem_init()

int smbitem_init ( void  )

Definition at line 188 of file smbitem.c.

References m_smbitem, trees::samba, smbitem_new_group(), smbitem_release_item(), and trees::user.

Referenced by main().

◆ smbitem_is_name_exist()

int smbitem_is_name_exist ( const char *  name)

Definition at line 610 of file smbitem.c.

References m_smbitem, smbitem::name, trees::samba, smbitem_find_in_group(), and trees::user.

◆ smbitem_mkgroup()

◆ smbitem_mkhost()

◆ smbitem_mklink()

◆ smbitem_readlink()

int smbitem_readlink ( const char *  path,
char *  buf,
size_t  size 
)

◆ smbitem_release_dir()

void smbitem_release_dir ( struct smbitem item)

◆ smbitem_what_is()