mount_info Class Reference

#include <shared.h>


Public Member Functions

void init ()
int add_item (const char *dev, const char *path, unsigned flags, int reg_p)
int del_item (const char *path, unsigned flags, int reg_p)
void from_registry ()
int add_reg_mount (const char *native_path, const char *posix_path, unsigned mountflags)
int del_reg_mount (const char *posix_path, unsigned mountflags)
unsigned set_flags_from_win32_path (const char *path)
int conv_to_win32_path (const char *src_path, char *win32_path, char *full_win32_path, DWORD &devn, int &unit, unsigned *flags=NULL)
int conv_to_posix_path (const char *src_path, char *posix_path, int keep_rel_p)
mntent * getmntent (int x)
int write_cygdrive_info_to_registry (const char *cygdrive_prefix, unsigned flags)
int remove_cygdrive_info_from_registry (const char *cygdrive_prefix, unsigned flags)
int get_cygdrive_prefixes (char *user, char *system)
void import_v1_mounts ()

Data Fields

int nmounts
mount_item mount [MAX_MOUNTS]
char mnt_type [20]
char mnt_opts [20]
char mnt_fsname [MAX_PATH]
char mnt_dir [MAX_PATH]
char cygdrive [MAX_PATH]
size_t cygdrive_len
unsigned cygdrive_flags
int had_to_create_mount_areas

Private Member Functions

void sort ()
void read_mounts (reg_key &r)
void read_v1_mounts (reg_key r, unsigned which)
void mount_slash ()
void to_registry ()
int cygdrive_win32_path (const char *src, char *dst, int trailing_slash_p)
void cygdrive_posix_path (const char *src, char *dst, int trailing_slash_p)
void slash_drive_to_win32_path (const char *path, char *buf, int trailing_slash_p)
void read_cygdrive_info_from_registry ()

Private Attributes

int posix_sorted [MAX_MOUNTS]
int native_sorted [MAX_MOUNTS]


Detailed Description

Definition at line 297 of file shared.h.


Member Function Documentation

int mount_info::add_item const char *  dev,
const char *  path,
unsigned  flags,
int  reg_p
 

int mount_info::add_reg_mount const char *  native_path,
const char *  posix_path,
unsigned  mountflags
 

int mount_info::conv_to_posix_path const char *  src_path,
char *  posix_path,
int  keep_rel_p
 

int mount_info::conv_to_win32_path const char *  src_path,
char *  win32_path,
char *  full_win32_path,
DWORD &  devn,
int &  unit,
unsigned *  flags = NULL
 

void mount_info::cygdrive_posix_path const char *  src,
char *  dst,
int  trailing_slash_p
[private]
 

int mount_info::cygdrive_win32_path const char *  src,
char *  dst,
int  trailing_slash_p
[private]
 

int mount_info::del_item const char *  path,
unsigned  flags,
int  reg_p
 

int mount_info::del_reg_mount const char *  posix_path,
unsigned  mountflags
 

void mount_info::from_registry  ) 
 

int mount_info::get_cygdrive_prefixes char *  user,
char *  system
 

struct mntent* mount_info::getmntent int  x  ) 
 

void mount_info::import_v1_mounts  ) 
 

void mount_info::init  ) 
 

void mount_info::mount_slash  )  [private]
 

void mount_info::read_cygdrive_info_from_registry  )  [private]
 

void mount_info::read_mounts reg_key r  )  [private]
 

void mount_info::read_v1_mounts reg_key  r,
unsigned  which
[private]
 

int mount_info::remove_cygdrive_info_from_registry const char *  cygdrive_prefix,
unsigned  flags
 

unsigned mount_info::set_flags_from_win32_path const char *  path  ) 
 

void mount_info::slash_drive_to_win32_path const char *  path,
char *  buf,
int  trailing_slash_p
[private]
 

void mount_info::sort  )  [private]
 

void mount_info::to_registry  )  [private]
 

int mount_info::write_cygdrive_info_to_registry const char *  cygdrive_prefix,
unsigned  flags
 


Field Documentation

char mount_info::cygdrive[MAX_PATH]
 

Definition at line 314 of file shared.h.

unsigned mount_info::cygdrive_flags
 

Definition at line 316 of file shared.h.

size_t mount_info::cygdrive_len
 

Definition at line 315 of file shared.h.

int mount_info::had_to_create_mount_areas
 

Definition at line 320 of file shared.h.

char mount_info::mnt_dir[MAX_PATH]
 

Definition at line 309 of file shared.h.

char mount_info::mnt_fsname[MAX_PATH]
 

Definition at line 308 of file shared.h.

char mount_info::mnt_opts[20]
 

Definition at line 307 of file shared.h.

char mount_info::mnt_type[20]
 

Definition at line 306 of file shared.h.

mount_item mount_info::mount[MAX_MOUNTS]
 

Definition at line 303 of file shared.h.

int mount_info::native_sorted[MAX_MOUNTS] [private]
 

Definition at line 300 of file shared.h.

int mount_info::nmounts
 

Definition at line 302 of file shared.h.

int mount_info::posix_sorted[MAX_MOUNTS] [private]
 

Definition at line 299 of file shared.h.


The documentation for this class was generated from the following file:
Generated on Sun Mar 12 23:56:39 2006 for ScriptBasic by  doxygen 1.4.6-NO