2007-12-21 20:57:34 +03:00
/*
Unix SMB / CIFS implementation .
Winbind client API
Copyright ( C ) Gerald ( Jerry ) Carter 2007
This library is free software ; you can redistribute it and / or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation ; either
version 3 of the License , or ( at your option ) any later version .
This library is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the GNU
Library General Public License for more details .
You should have received a copy of the GNU Lesser General Public License
along with this program . If not , see < http : //www.gnu.org/licenses/>.
*/
# ifndef _WBCLIENT_INTERNAL_H
# define _WBCLIENT_INTERNAL_H
2015-02-21 03:19:32 +03:00
struct wbcContext {
struct winbindd_context * winbindd_ctx ;
2015-02-23 02:31:48 +03:00
uint32_t pw_cache_size ; /* Number of cached passwd structs */
uint32_t pw_cache_idx ; /* Position of the pwent context */
uint32_t gr_cache_size ; /* Number of cached group structs */
uint32_t gr_cache_idx ; /* Position of the grent context */
2015-02-21 03:19:32 +03:00
} ;
2007-12-21 20:57:34 +03:00
/* Private functions */
2015-01-24 03:30:00 +03:00
wbcErr wbcRequestResponse ( struct wbcContext * ctx , int cmd ,
2007-12-21 20:57:34 +03:00
struct winbindd_request * request ,
struct winbindd_response * response ) ;
2015-01-24 03:30:00 +03:00
wbcErr wbcRequestResponsePriv ( struct wbcContext * ctx , int cmd ,
2010-04-13 14:09:21 +04:00
struct winbindd_request * request ,
struct winbindd_response * response ) ;
2010-04-07 00:10:22 +04:00
void * wbcAllocateMemory ( size_t nelem , size_t elsize ,
void ( * destructor ) ( void * ptr ) ) ;
2010-04-03 13:59:29 +04:00
char * wbcStrDup ( const char * str ) ;
2010-04-03 15:37:01 +04:00
const char * * wbcAllocateStringArray ( int num_strings ) ;
2015-02-23 02:31:48 +03:00
struct wbcContext * wbcGetGlobalCtx ( void ) ;
2010-04-03 13:59:29 +04:00
2007-12-21 20:57:34 +03:00
# endif /* _WBCLIENT_INTERNAL_H */