Skip to content

Commit

Permalink
librpc/idr Use the Samba3 notify.idl in common.
Browse files Browse the repository at this point in the history
The extra fields in the structure that Samba4 does not use should not
bother it.

Andrew Bartlett

Signed-off-by: Andrew Tridgell <[email protected]>
  • Loading branch information
abartlet committed Jun 9, 2011
1 parent d057116 commit a772797
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 79 deletions.
2 changes: 1 addition & 1 deletion source3/librpc/idl/notify.idl → librpc/idl/notify.idl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface notify
The max_mask and max_mask_subdir at each depth is the
bitwise or of the filters and subdir filters for all entries
at that depth. This allows a depth to be quickly skipped if
no entries will match the target filter
no entries will match the target filter
*/
typedef struct {
uint32 max_mask;
Expand Down
1 change: 1 addition & 0 deletions librpc/idl/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ bld.SAMBA_PIDL_LIST('PIDL',
dbgidl.idl dnsserver.idl echo.idl frsrpc.idl lsa.idl nbt.idl dns.idl
oxidresolver.idl samr.idl server_id.idl srvsvc.idl winreg.idl dcerpc.idl
drsblobs.idl efs.idl frstrans.idl mgmt.idl netlogon.idl
notify.idl
policyagent.idl scerpc.idl svcctl.idl wkssvc.idl eventlog6.idl backupkey.idl
printcap.idl''',
options='--header --ndr-parser --samba3-ndr-server --server --client --python',
Expand Down
8 changes: 7 additions & 1 deletion librpc/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ bld.SAMBA_SUBSYSTEM('NDR_IDMAP',
public_deps='ndr ndr-standard'
)

bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
source='gen_ndr/ndr_notify.c',
public_deps='ndr ndr-standard NDR_SERVER_ID NDR_FILE_ID'
)

bld.SAMBA_SUBSYSTEM('NDR_NTLMSSP',
source='ndr/ndr_ntlmssp.c gen_ndr/ndr_ntlmssp.c',
public_deps='ndr ndr-standard'
Expand Down Expand Up @@ -312,7 +317,8 @@ bld.SAMBA_LIBRARY('ndr-standard',
pc_files='ndr_standard.pc',
deps='''NDR_SECURITY NDR_LSA NDR_SAMR NDR_NETLOGON NDR_EVENTLOG NDR_DFS
NDR_NTSVCS NDR_SVCCTL NDR_INITSHUTDOWN NDR_WKSSVC NDR_SRVSVC NDR_WINREG
NDR_ECHO security NDR_DNS NDR_ATSVC NDR_SPOOLSS NDR_DSSETUP''',
NDR_ECHO security NDR_DNS NDR_ATSVC NDR_SPOOLSS NDR_DSSETUP
NDR_SERVER_ID NDR_NOTIFY''',
public_deps='ndr',
public_headers='gen_ndr/samr.h gen_ndr/ndr_samr.h gen_ndr/lsa.h gen_ndr/netlogon.h gen_ndr/atsvc.h gen_ndr/ndr_atsvc.h gen_ndr/ndr_svcctl.h gen_ndr/svcctl.h',
header_path='gen_ndr'
Expand Down
1 change: 0 additions & 1 deletion source3/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,6 @@ modules:: SHOWFLAGS $(MODULES)

IDL_FILES = librpc/idl/messaging.idl \
librpc/idl/libnetapi.idl \
librpc/idl/notify.idl \
librpc/idl/wbint.idl \
librpc/idl/perfcount.idl \
librpc/idl/secrets.idl \
Expand Down
2 changes: 1 addition & 1 deletion source3/librpc/idl/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import os
topinclude=os.path.join(bld.srcnode.abspath(), 'librpc/idl')

bld.SAMBA_PIDL_LIST('PIDL',
'''messaging.idl libnetapi.idl notify.idl
'''messaging.idl libnetapi.idl
perfcount.idl secrets.idl libnet_join.idl''',
options='--includedir=%s --header --ndr-parser' % topinclude,
output_dir='../gen_ndr')
Expand Down
5 changes: 0 additions & 5 deletions source3/librpc/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ bld.SAMBA3_SUBSYSTEM('NDR_MESSAGING',
public_deps='ndr NDR_SERVER_ID'
)

bld.SAMBA3_SUBSYSTEM('NDR_NOTIFY3',
source='gen_ndr/ndr_notify.c',
public_deps='ndr NDR_FILE_ID NDR_SERVER_ID'
)

bld.SAMBA3_SUBSYSTEM('NDR_SECRETS',
source='gen_ndr/ndr_secrets.c',
public_deps='ndr'
Expand Down
2 changes: 1 addition & 1 deletion source3/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ bld.SAMBA3_LIBRARY('smbd_base',
PARAM_WITHOUT_REG samba3core LIBSMB POPT_SAMBA3 KRBCLIENT AVAHI
LIBMSRPC_GEN msrpc3 ads LIBADS_SERVER LIBADS_PRINTER
vfs vfs_default vfs_posixacl auth rpc LOCKING LIBAFS LIBAFS_SETTOKEN PROFILE
PRINTING PRINTBACKEND NDR_XATTR NDR_NOTIFY3 REGFIO
PRINTING PRINTBACKEND NDR_XATTR NDR_NOTIFY REGFIO
smbconf REG_FULL FNAME_UTIL
LIBCLI_SAMR LIBCLI_LSA3 LIBRPCCLI_NETLOGON LIBCLI_SPOOLSS
RPC_NDR_SRVSVC npa_tstream INIT_NETLOGON INIT_SAMR
Expand Down
58 changes: 0 additions & 58 deletions source4/librpc/idl/s4_notify.idl

This file was deleted.

2 changes: 1 addition & 1 deletion source4/librpc/idl/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import os
topinclude=os.path.join(bld.srcnode.abspath(), 'librpc/idl')

bld.SAMBA_PIDL_LIST('PIDL',
source='''irpc.idl nfs4acl.idl s4_notify.idl ntp_signd.idl
source='''irpc.idl nfs4acl.idl ntp_signd.idl
opendb.idl sasl_helpers.idl winbind.idl
winsif.idl winsrepl.idl winstation.idl''',
options="--includedir=%s --header --ndr-parser --client --python --server" % topinclude,
Expand Down
8 changes: 1 addition & 7 deletions source4/librpc/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ bld.SAMBA_SUBSYSTEM('NDR_OPENDB',
)


bld.SAMBA_SUBSYSTEM('NDR_NOTIFY',
source='gen_ndr/ndr_s4_notify.c',
public_deps='ndr NDR_SERVER_ID'
)


bld.SAMBA_SUBSYSTEM('NDR_NTP_SIGND',
source='gen_ndr/ndr_ntp_signd.c',
public_deps='ndr'
Expand All @@ -69,7 +63,7 @@ bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
# create a grouping library to consolidate our samba4 specific NDR code
bld.SAMBA_LIBRARY('ndr-samba4',
source=[],
deps='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB NDR_NOTIFY ndr-table',
deps='NDR_WINBIND NDR_IRPC NDR_NFS4ACL NDR_OPENDB ndr-table',
private_library=True,
grouping_library=True
)
Expand Down
2 changes: 1 addition & 1 deletion source4/ntvfs/common/notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "messaging/messaging.h"
#include "lib/util/tdb_wrap.h"
#include "lib/messaging/irpc.h"
#include "librpc/gen_ndr/ndr_s4_notify.h"
#include "librpc/gen_ndr/ndr_notify.h"
#include "../lib/util/dlinklist.h"
#include "ntvfs/common/ntvfs_common.h"
#include "ntvfs/sysdep/sys_notify.h"
Expand Down
2 changes: 1 addition & 1 deletion source4/ntvfs/ntvfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ struct ntvfs_critical_sizes {

struct imessaging_context;
#include "librpc/gen_ndr/security.h"
#include "librpc/gen_ndr/s4_notify.h"
#include "librpc/gen_ndr/notify.h"
#include "ntvfs/ntvfs_proto.h"

#endif /* _NTVFS_H_ */
2 changes: 1 addition & 1 deletion source4/ntvfs/sysdep/sys_notify.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "librpc/gen_ndr/s4_notify.h"
#include "librpc/gen_ndr/notify.h"
#include "param/share.h"

struct sys_notify_context;
Expand Down

0 comments on commit a772797

Please sign in to comment.