1 /* 2 * Please do not edit this file. 3 * It was generated using ndrgen. 4 */ 5 6 #include <strings.h> 7 #include <smbsrv/ndr.h> 8 #include <smbsrv/ndl/msgsvc.ndl> 9 10 extern struct ndr_typeinfo ndt__char; 11 extern struct ndr_typeinfo ndt_s_char; 12 extern struct ndr_typeinfo ndt__uchar; 13 extern struct ndr_typeinfo ndt_s_uchar; 14 extern struct ndr_typeinfo ndt__wchar; 15 extern struct ndr_typeinfo ndt_s_wchar; 16 extern struct ndr_typeinfo ndt__short; 17 extern struct ndr_typeinfo ndt_s_short; 18 extern struct ndr_typeinfo ndt__ushort; 19 extern struct ndr_typeinfo ndt_s_ushort; 20 extern struct ndr_typeinfo ndt__long; 21 extern struct ndr_typeinfo ndt_s_long; 22 extern struct ndr_typeinfo ndt__ulong; 23 extern struct ndr_typeinfo ndt_s_ulong; 24 25 26 27 int ndr__msgsvc_uuid (struct ndr_reference *encl_ref); 28 struct ndr_typeinfo ndt__msgsvc_uuid = { 29 1, /* NDR version */ 30 3, /* alignment */ 31 NDR_F_STRUCT, /* flags */ 32 ndr__msgsvc_uuid, /* ndr_func */ 33 16, /* pdu_size_fixed_part */ 34 0, /* pdu_size_variable_part */ 35 16, /* c_size_fixed_part */ 36 0, /* c_size_variable_part */ 37 }; 38 39 40 /* 41 * */ 42 int 43 ndr__msgsvc_uuid (struct ndr_reference *encl_ref) 44 { 45 struct msgsvc_uuid *val = (struct msgsvc_uuid *) encl_ref->datum; 46 struct ndr_reference myref; 47 48 (void) bzero(&myref, sizeof (myref)); 49 myref.enclosing = encl_ref; 50 myref.stream = encl_ref->stream; 51 52 /* do all basic elements first */ 53 NDR_MEMBER (_ulong, data1, 0UL); 54 NDR_MEMBER (_ushort, data2, 4UL); 55 NDR_MEMBER (_ushort, data3, 6UL); 56 57 /* do all constructed elements w/o pointers */ 58 NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, data4, 8UL, 59 8); 60 61 /* do members with pointers in order */ 62 63 return 1; 64 } 65 66 67 68 int ndr__msgsvcsend_NetrSendMessage (struct ndr_reference *encl_ref); 69 struct ndr_typeinfo ndt__msgsvcsend_NetrSendMessage = { 70 1, /* NDR version */ 71 3, /* alignment */ 72 NDR_F_OPERATION, /* flags */ 73 ndr__msgsvcsend_NetrSendMessage, /* ndr_func */ 74 32, /* pdu_size_fixed_part */ 75 0, /* pdu_size_variable_part */ 76 32, /* c_size_fixed_part */ 77 0, /* c_size_variable_part */ 78 }; 79 80 81 /* 82 * [operation(0)] 83 */ 84 int 85 ndr__msgsvcsend_NetrSendMessage (struct ndr_reference *encl_ref) 86 { 87 struct msgsvcsend_NetrSendMessage *val = (struct msgsvcsend_NetrSendMessage *) encl_ref->datum; 88 struct ndr_reference myref; 89 90 (void) bzero(&myref, sizeof (myref)); 91 myref.enclosing = encl_ref; 92 myref.stream = encl_ref->stream; 93 94 /* do all members in order */ 95 if (NDR_DIR_IS_IN) { 96 NDR_TOPMOST_MEMBER (_msgsvc_uuid, handle); 97 } 98 if (NDR_DIR_IS_IN) { 99 NDR_TOPMOST_MEMBER_PTR (s_wchar, from); 100 } 101 if (NDR_DIR_IS_IN) { 102 NDR_TOPMOST_MEMBER_PTR (s_wchar, to); 103 } 104 if (NDR_DIR_IS_IN) { 105 NDR_TOPMOST_MEMBER_PTR (s_wchar, text); 106 } 107 if (NDR_DIR_IS_OUT) { 108 NDR_TOPMOST_MEMBER (_ulong, status); 109 } 110 111 return 1; 112 } 113 114 115 116 int ndr__msgsvcsend_interface (struct ndr_reference *encl_ref); 117 struct ndr_typeinfo ndt__msgsvcsend_interface = { 118 1, /* NDR version */ 119 3, /* alignment */ 120 NDR_F_INTERFACE, /* flags */ 121 ndr__msgsvcsend_interface, /* ndr_func */ 122 32, /* pdu_size_fixed_part */ 123 0, /* pdu_size_variable_part */ 124 32, /* c_size_fixed_part */ 125 0, /* c_size_variable_part */ 126 }; 127 128 129 /* 130 * [interface(0)] 131 */ 132 int 133 ndr__msgsvcsend_interface (struct ndr_reference *encl_ref) 134 { 135 union msgsvcsend_interface *val = (union msgsvcsend_interface *) encl_ref->datum; 136 struct ndr_reference myref; 137 138 (void) bzero(&myref, sizeof (myref)); 139 myref.enclosing = encl_ref; 140 myref.stream = encl_ref->stream; 141 142 switch (encl_ref->switch_is) { 143 case 0: 144 NDR_PARAMS_MEMBER (_msgsvcsend_NetrSendMessage, NetrSendMessage); 145 break; 146 147 default: 148 NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); 149 return 0; 150 break; 151 } 152 153 154 return 1; 155 } 156