+static enum ndr_err_code ndr_push_echo_TestBytePipeOut(struct ndr_push *ndr, int flags, const struct echo_TestBytePipeOut *r)
+{
+ NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
+ if (flags & NDR_IN) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_chunks));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.chunk_size));
+ }
+ if (flags & NDR_OUT) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_echo_TestBytePipeOut(struct ndr_pull *ndr, int flags, struct echo_TestBytePipeOut *r)
+{
+ NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
+ if (flags & NDR_IN) {
+ ZERO_STRUCT(r->out);
+
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_chunks));
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.chunk_size));
+ }
+ if (flags & NDR_OUT) {
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_echo_TestBytePipeOut(struct ndr_print *ndr, const char *name, int flags, const struct echo_TestBytePipeOut *r)
+{
+ ndr_print_struct(ndr, name, "echo_TestBytePipeOut");
+ if (r == NULL) { ndr_print_null(ndr); return; }
+ ndr->depth++;
+ if (flags & NDR_SET_VALUES) {
+ ndr->flags |= LIBNDR_PRINT_SET_VALUES;
+ }
+ if (flags & NDR_IN) {
+ ndr_print_struct(ndr, "in", "echo_TestBytePipeOut");
+ ndr->depth++;
+ ndr_print_uint32(ndr, "num_chunks", r->in.num_chunks);
+ ndr_print_uint32(ndr, "chunk_size", r->in.chunk_size);
+ ndr->depth--;
+ }
+ if (flags & NDR_OUT) {
+ ndr_print_struct(ndr, "out", "echo_TestBytePipeOut");
+ ndr->depth++;
+ ndr_print_ptr(ndr, "out_pipe", r->out.out_pipe);
+ ndr->depth++;
+ ndr->depth--;
+ ndr_print_uint32(ndr, "result", r->out.result);
+ ndr->depth--;
+ }
+ ndr->depth--;
+}
+
+static enum ndr_err_code ndr_push_echo_TestBytePipeInOut(struct ndr_push *ndr, int flags, const struct echo_TestBytePipeInOut *r)
+{
+ NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
+ if (flags & NDR_IN) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_chunks));
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.chunk_size));
+ }
+ if (flags & NDR_OUT) {
+ NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->out.result));
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+static enum ndr_err_code ndr_pull_echo_TestBytePipeInOut(struct ndr_pull *ndr, int flags, struct echo_TestBytePipeInOut *r)
+{
+ NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
+ if (flags & NDR_IN) {
+ ZERO_STRUCT(r->out);
+
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_chunks));
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.chunk_size));
+ }
+ if (flags & NDR_OUT) {
+ NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->out.result));
+ }
+ return NDR_ERR_SUCCESS;
+}
+
+_PUBLIC_ void ndr_print_echo_TestBytePipeInOut(struct ndr_print *ndr, const char *name, int flags, const struct echo_TestBytePipeInOut *r)
+{
+ ndr_print_struct(ndr, name, "echo_TestBytePipeInOut");
+ if (r == NULL) { ndr_print_null(ndr); return; }
+ ndr->depth++;
+ if (flags & NDR_SET_VALUES) {
+ ndr->flags |= LIBNDR_PRINT_SET_VALUES;
+ }
+ if (flags & NDR_IN) {
+ ndr_print_struct(ndr, "in", "echo_TestBytePipeInOut");
+ ndr->depth++;
+ ndr_print_uint32(ndr, "num_chunks", r->in.num_chunks);
+ ndr_print_uint32(ndr, "chunk_size", r->in.chunk_size);
+ ndr_print_ptr(ndr, "out_pipe", r->in.out_pipe);
+ ndr->depth++;
+ ndr->depth--;
+ ndr->depth--;
+ }
+ if (flags & NDR_OUT) {
+ ndr_print_struct(ndr, "out", "echo_TestBytePipeInOut");
+ ndr->depth++;
+ ndr_print_ptr(ndr, "out_pipe", r->out.out_pipe);
+ ndr->depth++;
+ ndr->depth--;
+ ndr_print_uint32(ndr, "result", r->out.result);
+ ndr->depth--;
+ }
+ ndr->depth--;
+}
+
+static const struct ndr_interface_call_pipe echo_TestBytePipeIn_in_pipes[] = {
+ {
+ "in.in_pipe",
+ "echo_BytePipe_chunk",
+ sizeof(struct echo_BytePipe_chunk),
+ (ndr_push_flags_fn_t) ndr_push_echo_BytePipe_chunk,
+ (ndr_pull_flags_fn_t) ndr_pull_echo_BytePipe_chunk,
+ (ndr_print_fn_t) ndr_print_echo_BytePipe_chunk,
+ },
+ { NULL, NULL, 0, NULL, NULL, NULL }
+};
+
+static const struct ndr_interface_call_pipe echo_TestBytePipeOut_out_pipes[] = {
+ {
+ "out.out_pipe",
+ "echo_BytePipe_chunk",
+ sizeof(struct echo_BytePipe_chunk),
+ (ndr_push_flags_fn_t) ndr_push_echo_BytePipe_chunk,
+ (ndr_pull_flags_fn_t) ndr_pull_echo_BytePipe_chunk,
+ (ndr_print_fn_t) ndr_print_echo_BytePipe_chunk,
+ },
+ { NULL, NULL, 0, NULL, NULL, NULL }
+};
+
+static const struct ndr_interface_call_pipe echo_TestBytePipeInOut_in_pipes[] = {