Ignore:
Timestamp:
Aug 16, 2016, 5:35:07 PM (9 years ago)
Author:
Silvan Scherrer
Message:

samba client: remove tabs in source and beautify it completely

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/src/smbwrp.h

    r957 r959  
    7474typedef struct smbwrp_server
    7575{
    76         char server_name[256];
    77         char share_name[256];
    78         char workgroup[256];
    79         char username[256];
    80         char password[256];
    81         char master[256];
    82         int ifmastergroup;
    83         int no_pathinfo2;
     76        char server_name[256];
     77        char share_name[256];
     78        char workgroup[256];
     79        char username[256];
     80        char password[256];
     81        char master[256];
     82        int ifmastergroup;
     83        int no_pathinfo2;
    8484} smbwrp_server;
    8585
    8686typedef struct smbwrp_file
    8787{
    88         int fd;
    89         unsigned long long offset;
    90         int openmode;
    91         int openattr;
    92         int denymode;
    93         unsigned long mtime;
    94         unsigned long ctime;
    95         int updatetime;
    96         // 0 = time is not updated upon file close
    97         // 1 = modified time is updated to current time
    98         // 2 = create and modified time are updated according local file
    99         char fullname[261];
    100         char fname[261];
     88        int fd;
     89        unsigned long long offset;
     90        int openmode;
     91        int openattr;
     92        int denymode;
     93        unsigned long mtime;
     94        unsigned long ctime;
     95        int updatetime;
     96        // 0 = time is not updated upon file close
     97        // 1 = modified time is updated to current time
     98        // 2 = create and modified time are updated according local file
     99        char fullname[261];
     100        char fname[261];
    101101} smbwrp_file;
    102102
    103103typedef struct smbwrp_fileinfo
    104104{
    105         unsigned long long size;
    106         unsigned long attr;
    107         unsigned long ctime;
    108         unsigned long mtime;
    109         unsigned long atime;
    110         int easize;
    111         char fname[261];
     105        unsigned long long size;
     106        unsigned long attr;
     107        unsigned long ctime;
     108        unsigned long mtime;
     109        unsigned long atime;
     110        int easize;
     111        char fname[261];
    112112} smbwrp_fileinfo;
    113113
    114114typedef struct smbwrp_fileseek
    115115{
    116         int whence;
    117         long offset;
    118         unsigned long result;
     116        int whence;
     117        long offset;
     118        unsigned long result;
    119119} smbwrp_fileseek;
    120120
     
    123123typedef struct _FSALLOCATE      /* fsalloc */
    124124{
    125         unsigned long  idFileSystem;
    126         unsigned long  cSectorUnit;
    127         unsigned long  cUnit;
    128         unsigned long  cUnitAvail;
    129         unsigned short cbSector;
     125        unsigned long  idFileSystem;
     126        unsigned long  cSectorUnit;
     127        unsigned long  cUnit;
     128        unsigned long  cUnitAvail;
     129        unsigned short cbSector;
    130130} FSALLOCATE;
    131131#endif
     
    135135typedef struct _Resource
    136136{
    137         int rootlevel;
    138         smbwrp_server srv;
    139         char logfile[_MAX_PATH + 1];
    140         char loglevel;
    141         int easupport;
    142         int krb5support;
     137        int rootlevel;
     138        smbwrp_server srv;
     139        int easupport;
     140        int krb5support;
    143141        int cachetimeout;
    144142        int cachedepth;
    145         struct DirectoryCache *pdc;
     143        int loglevel;
     144        struct DirectoryCache *pdc;
    146145} Resource;
    147146
    148147typedef struct _Connection
    149148{
    150         Resource *pRes;
    151         cli_state* cli;
    152         smbwrp_file file;
     149        Resource *pRes;
     150        cli_state* cli;
     151        smbwrp_file file;
    153152} Connection;
    154153
     
    156155typedef struct filelist_state
    157156{
    158         unsigned long pipe;
    159         char * data;
    160         int datalen;
    161         int bufferlen;
    162         void ( * _System add_dir_entry)(void * st);
    163         char mask[ _MAX_PATH];
    164         char dir[ _MAX_PATH];
    165         char dir_mask[ _MAX_PATH];
    166         smbwrp_fileinfo finfo;
    167         Connection* pConn;
    168         void *plist;
    169         unsigned long ulAttribute;
    170         const char *fullpath;
     157        unsigned long pipe;
     158        char * data;
     159        int datalen;
     160        int bufferlen;
     161        void ( * _System add_dir_entry)(void * st);
     162        char mask[ _MAX_PATH];
     163        char dir[ _MAX_PATH];
     164        char dir_mask[ _MAX_PATH];
     165        smbwrp_fileinfo finfo;
     166        Connection* pConn;
     167        void *plist;
     168        unsigned long ulAttribute;
     169        const char *fullpath;
    171170} filelist_state;
    172171
Note: See TracChangeset for help on using the changeset viewer.