Ignore:
Timestamp:
Aug 16, 2008, 12:11:48 PM (17 years ago)
Author:
Yuri Dario
Message:

Merged daemon code, now the plugin calls directly samba client library (still using smbrp code).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-1.5/src/smbwrp.h

    r107 r145  
    9494
    9595
    96 typedef struct filelist_state
    97 {
    98         unsigned long pipe;
    99         char * data;
    100         int datalen;
    101         int bufferlen;
    102         void ( * _System add_dir_entry)(void * st);
    103         char mask[261];
    104         smbwrp_fileinfo finfo;
    105 } filelist_state;
    106 
    10796#ifndef INCL_DOS
    10897typedef struct _FSALLOCATE      /* fsalloc */
     
    116105#endif
    117106
     107typedef struct _Resource
     108{
     109        int rootlevel;
     110        smbwrp_server srv;
     111        char logfile[_MAX_PATH + 1];
     112        char loglevel;
     113        int easupport;
     114        int krb5support;
     115} Resource;
     116
     117typedef struct _Connection
     118{
     119        Resource *pRes;
     120        cli_state* cli;
     121        smbwrp_file file;
     122} Connection;
     123
     124
     125typedef struct filelist_state
     126{
     127        unsigned long pipe;
     128        char * data;
     129        int datalen;
     130        int bufferlen;
     131        void ( * _System add_dir_entry)(void * st);
     132        char mask[ _MAX_PATH];
     133        char dir[ _MAX_PATH];
     134        char dir_mask[ _MAX_PATH];
     135        smbwrp_fileinfo finfo;
     136        Connection* pConn;
     137        void *plist;
     138        unsigned long ulAttribute;
     139} filelist_state;
    118140
    119141#pragma pack()
     
    121143int _System smbwrp_getclisize(void);
    122144int _System smbwrp_init(void);
    123 int _System smbwrp_connect(smbwrp_server * srv, cli_state ** c, int krb5support);
    124 void _System smbwrp_disconnect(cli_state ** cli);
     145int _System smbwrp_connect(Resource * pRes, cli_state **);
     146void _System smbwrp_disconnect(Resource * pRes, cli_state *);
    125147int _System smbwrp_open(cli_state * cli, smbwrp_file * file);
    126148int _System smbwrp_read(cli_state * cli, smbwrp_file * file, void *buf, unsigned long count, unsigned long * result);
Note: See TracChangeset for help on using the changeset viewer.