1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-16 00:23:52 +03:00

r18802: Use the pidl-generated code for the srvsvc interface, both client and server code.

This has had some basic testing. I'll do more during the next couple of days and hopefully also
make RPC-SRVSVC from Samba4 pass against it.
This commit is contained in:
Jelmer Vernooij
2006-09-21 23:57:32 +00:00
committed by Gerald (Jerry) Carter
parent fc6543ca78
commit ef10672399
19 changed files with 914 additions and 6790 deletions

View File

@@ -151,53 +151,6 @@ BOOL smb_io_nttime(const char *desc, prs_struct *ps, int depth, NTTIME *nttime)
return smb_io_time( desc, nttime, ps, depth );
}
/*******************************************************************
Gets an enumeration handle from an ENUM_HND structure.
********************************************************************/
uint32 get_enum_hnd(ENUM_HND *enh)
{
return (enh && enh->ptr_hnd != 0) ? enh->handle : 0;
}
/*******************************************************************
Inits an ENUM_HND structure.
********************************************************************/
void init_enum_hnd(ENUM_HND *enh, uint32 hnd)
{
DEBUG(5,("smb_io_enum_hnd\n"));
enh->ptr_hnd = (hnd != 0) ? 1 : 0;
enh->handle = hnd;
}
/*******************************************************************
Reads or writes an ENUM_HND structure.
********************************************************************/
BOOL smb_io_enum_hnd(const char *desc, ENUM_HND *hnd, prs_struct *ps, int depth)
{
if (hnd == NULL)
return False;
prs_debug(ps, depth, desc, "smb_io_enum_hnd");
depth++;
if(!prs_align(ps))
return False;
if(!prs_uint32("ptr_hnd", ps, depth, &hnd->ptr_hnd)) /* pointer */
return False;
if (hnd->ptr_hnd != 0) {
if(!prs_uint32("handle ", ps, depth, &hnd->handle )) /* enum handle */
return False;
}
return True;
}
/*******************************************************************
Reads or writes a DOM_SID structure.
********************************************************************/