r18229: regenerated unixinfo files and add a few header stubs. Almost autogenerated now
authorGerald Carter <jerry@samba.org>
Thu, 7 Sep 2006 20:09:15 +0000 (20:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:51:16 +0000 (11:51 -0500)
source/librpc/gen_ndr/ndr_misc.h [new file with mode: 0644]
source/librpc/gen_ndr/ndr_security.h [new file with mode: 0644]
source/librpc/gen_ndr/ndr_unixinfo.c
source/librpc/gen_ndr/ndr_unixinfo.h
source/librpc/gen_ndr/security.h [new file with mode: 0644]
source/librpc/gen_ndr/unixinfo.h
source/script/build_idl.sh

diff --git a/source/librpc/gen_ndr/ndr_misc.h b/source/librpc/gen_ndr/ndr_misc.h
new file mode 100644 (file)
index 0000000..d43a7d8
--- /dev/null
@@ -0,0 +1 @@
+#include "ndr/ndr_misc.h"
diff --git a/source/librpc/gen_ndr/ndr_security.h b/source/librpc/gen_ndr/ndr_security.h
new file mode 100644 (file)
index 0000000..e69de29
index d2ad824e0aa2781a1ac514b65bc903cf9d43c65d..b26cc339bbf29a196e15af1aa1700ff7013c99d3 100644 (file)
@@ -6,15 +6,16 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+
 #include <stdarg.h>
 #include <string.h>
 #include <core/nterr.h>
-#include <ndr/ndr_misc.h>
-#include <ndr/ndr_dcerpc.h>
-#include "gen_ndr/ndr_unixinfo.h"
+#include <gen_ndr/ndr_misc.h>
+#include <gen_ndr/ndr_dcerpc.h>
+#include "librpc/gen_ndr/ndr_unixinfo.h"
 #include <dcerpc.h>
 
-#include <ndr/ndr_security.h>
+#include <gen_ndr/ndr_security.h>
 NTSTATUS ndr_push_unixinfo_GetPWUidInfo(struct ndr_push *ndr, int ndr_flags, const struct unixinfo_GetPWUidInfo *r)
 {
        if (ndr_flags & NDR_SCALARS) {
@@ -514,4 +515,3 @@ void ndr_print_unixinfo_GetPWUid(struct ndr_print *ndr, const char *name, int fl
        ndr->depth--;
 }
 
-
index 899a903e08651abb36e38f3901ad059cf87760fa..d98ff9f15da2c16ede8e4d5daff8008aacb5d9f9 100644 (file)
@@ -1,6 +1,6 @@
 /* header auto-generated by pidl */
 
-#include "gen_ndr/unixinfo.h"
+#include "librpc/gen_ndr/unixinfo.h"
 
 #ifndef _HEADER_NDR_unixinfo
 #define _HEADER_NDR_unixinfo
diff --git a/source/librpc/gen_ndr/security.h b/source/librpc/gen_ndr/security.h
new file mode 100644 (file)
index 0000000..1c51af5
--- /dev/null
@@ -0,0 +1 @@
+#include "ndr/security.h"
index 73e1c8fd6cf271f914086fdc6f3f5b8b7db23db5..e5a0471ad5538435e3d503b7376c6870ff019bfd 100644 (file)
@@ -5,7 +5,7 @@
 #ifndef _HEADER_unixinfo
 #define _HEADER_unixinfo
 
-#include "librpc/ndr/security.h"
+#include "librpc/gen_ndr/security.h"
 struct unixinfo_GetPWUidInfo {
        NTSTATUS status;/* [keepref] */
        const char *homedir;/* [unique,keepref,charset(UTF8)] */
index 62941f4bc535de5597988c2943f15d7f2c76c646..aeea78be36f6d18068952554240f16ed71b6e1a9 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-PIDL_ARGS="--outputdir ${srcdir}/librpc/gen_ndr --header --ndr-parser --"
+PIDL_ARGS="--outputdir librpc/gen_ndr --header --ndr-parser --"
 PIDL_EXTRA_ARGS="$*"
 
 oldpwd=`pwd`
@@ -10,12 +10,16 @@ cd ${srcdir}
 
 PIDL="$PERL pidl/pidl ${PIDL_ARGS} ${PIDL_EXTRA_ARGS}"
 
+##
+## Find newer files rather than rebuild all of them
+##
+
 list=""
 for f in ${IDL_FILES}; do
        basename=`basename $f .idl`
        ndr="librpc/gen_ndr/ndr_$basename.c"
 
-       if [ -f $ndr ]; then
+       if [ -f $ndr && 0 ]; then
                if [ "x`find librpc/idl/$f -newer $ndr -print`" = "xlibrpc/idl/$f" ]; then
                        list="$list librpc/idl/$f"
                fi
@@ -24,12 +28,24 @@ for f in ${IDL_FILES}; do
        fi
 done
 
+##
+## generate the ndr stubs
+##
+
 if [ "x$list" != x ]; then
+       echo "${PIDL} ${list}"
        $PIDL $list || exit 1
 fi
 
+##
+## Do miscellaneous cleanup
+##
+
 for f in librpc/gen_ndr/ndr_*.c; do
-       cat $f | sed 's/^static //g' | sed 's/^_PUBLIC_ //g' > $f.new
+       cat $f | sed -e 's/^static //g' \
+               -e 's/^_PUBLIC_ //g' \
+               -e 's/#include <stdint.h>//g' \
+               -e 's/#include <stdbool.h>//g' > $f.new
        /bin/mv -f $f.new $f
 done
 
@@ -38,3 +54,4 @@ touch librpc/gen_ndr/ndr_dcerpc.h
 cd ${oldpwd}
 
 exit 0
+