echo.idl frstrans examples
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Oct 2010 18:54:10 +0000 (20:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 11:15:20 +0000 (13:15 +0200)
librpc/idl/echo.idl

index 6418f3e3d89e9e7a9b2381eb1b705cd0d486a782..a89d70ef5d02ccd2b5bc1b3231f24c2f51c9b876 100644 (file)
@@ -132,3 +132,71 @@ interface rpcecho
                [in,ref] echo_BytePipe *p
        );
 }
+#if 0
+       struct frstrans_BytePipe_chunk {
+               uint32_t count;
+               uint8_t *array;
+       };
+
+       struct frstrans_RdcGetFileDataAsync r;
+       struct frstrans_BytePipe_chunk chunk;
+       struct frstrans_BytePipe *p;
+
+       p = dcerpc_frstrans_BytePipe_create()..;
+
+       r.out.byte_pipe = p;
+
+       subreq = dceprc_frstrans_RdcGetFileDataAsync_send(..., r);
+
+       while (true) {
+               subreq2 = dcerpc_frstrans_BytePipe_read_chunk_send(..., r.out.byte_pipe)
+
+               dcerpc_frstrans_BytePipe_read_chunk_recv(subreq2, mem_ctx, &chunk);
+
+               if (chunk.count == 0) {
+                       break;
+               }
+       }
+       subreq = dceprc_frstrans_RdcGetFileDataAsync_recv(subreq);
+
+// frstrans_metzeSomeStructExample
+
+       typedef struct {
+               uint16 fixed[16];
+               hyper bla;
+               uint8 dummy;
+               uint32 foo_bug[45];
+       } frstrans_Struct;
+       typedef pipe frstrans_Struct *frstrans_StructPipe;
+
+       WERROR frstrans_metzeSomeStructExample(
+               [in,ref] policy_handle *server_context,
+               [out,ref] frstrans_StructPipe *struct_pipe
+               );
+
+       struct frstrans_StructPipe_chunk {
+               uint32_t count;
+               struct frstrans_Struct *array;
+       };
+
+       struct frstrans_metzeSomeStructExample r;
+       struct frstrans_StructPipe_chunk chunk;
+       struct frstrans_StructPipe *p;
+
+       p = dcerpc_frstrans_StructPipe_create()..;
+
+       r.out.byte_pipe = p;
+
+       subreq = dceprc_frstrans_metzeSomeStructExample_send(..., r);
+
+       while (true) {
+               subreq2 = dcerpc_frstrans_StructPipe_read_chunk_send(..., r.out.byte_pipe)
+
+               dcerpc_frstrans_StructPipe_read_chunk_recv(subreq2, mem_ctx, &chunk);
+
+               if (chunk.count == 0) {
+                       break;
+               }
+       }
+       subreq = dceprc_frstrans_metzeSomeStructExample_recv(subreq);
+#endif