libndr: add ndr_push_relative_ptr2_start and ndr_push_relative_ptr2_end.
[abartlet/samba.git/.git] / librpc / ndr / ndr.c
index a151994b6af64c6d25b907ac8194a76880eb4cfc..fb1e5671fe067d28a2c69e6a9c0170f1b76947e5 100644 (file)
@@ -1144,6 +1144,30 @@ _PUBLIC_ enum ndr_err_code ndr_push_short_relative_ptr2(struct ndr_push *ndr, co
        return NDR_ERR_SUCCESS;
 }
 
+/*
+  push a relative object - stage2 start
+  this is called during buffers processing
+*/
+_PUBLIC_ enum ndr_err_code ndr_push_relative_ptr2_start(struct ndr_push *ndr, const void *p)
+{
+       if (p == NULL) {
+               return NDR_ERR_SUCCESS;
+       }
+       return ndr_push_relative_ptr2(ndr, p);
+}
+
+/*
+  push a relative object - stage2 end
+  this is called during buffers processing
+*/
+_PUBLIC_ enum ndr_err_code ndr_push_relative_ptr2_end(struct ndr_push *ndr, const void *p)
+{
+       if (p == NULL) {
+               return NDR_ERR_SUCCESS;
+       }
+       return NDR_ERR_SUCCESS;
+}
+
 /*
   get the current base for relative pointers for the pull
 */