/* * Please do not edit this file. * It was generated using ndrgen. */ #include #include #include extern struct ndr_typeinfo ndt__char; extern struct ndr_typeinfo ndt_s_char; extern struct ndr_typeinfo ndt__uchar; extern struct ndr_typeinfo ndt_s_uchar; extern struct ndr_typeinfo ndt__wchar; extern struct ndr_typeinfo ndt_s_wchar; extern struct ndr_typeinfo ndt__short; extern struct ndr_typeinfo ndt_s_short; extern struct ndr_typeinfo ndt__ushort; extern struct ndr_typeinfo ndt_s_ushort; extern struct ndr_typeinfo ndt__long; extern struct ndr_typeinfo ndt_s_long; extern struct ndr_typeinfo ndt__ulong; extern struct ndr_typeinfo ndt_s_ulong; int ndr__netdfs_uuid (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_uuid = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_uuid, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_uuid (struct ndr_reference *encl_ref) { struct netdfs_uuid *val = (struct netdfs_uuid *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, data1, 0UL); NDR_MEMBER (_ushort, data2, 4UL); NDR_MEMBER (_ushort, data3, 6UL); /* do all constructed elements w/o pointers */ NDR_MEMBER_ARR_WITH_DIMENSION (_uchar, data4, 8UL, 8); /* do members with pointers in order */ return 1; } int ndr__netdfs_storage_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_storage_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_storage_info, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_storage_info (struct ndr_reference *encl_ref) { struct netdfs_storage_info *val = (struct netdfs_storage_info *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, server, 4UL); NDR_MEMBER_PTR (s_wchar, share, 8UL); return 1; } int ndr__netdfs_storage_info1 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_storage_info1 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_storage_info1, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_storage_info1 (struct ndr_reference *encl_ref) { struct netdfs_storage_info1 *val = (struct netdfs_storage_info1 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 0UL); NDR_MEMBER (_ulong, p_class, 12UL); NDR_MEMBER (_ushort, p_rank, 16UL); NDR_MEMBER (_ushort, p_reserved, 18UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, server, 4UL); NDR_MEMBER_PTR (s_wchar, share, 8UL); return 1; } int ndr__netdfs_info1 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info1 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info1, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info1 (struct ndr_reference *encl_ref) { struct netdfs_info1 *val = (struct netdfs_info1 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); return 1; } int ndr__netdfs_info2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info2, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info2 (struct ndr_reference *encl_ref) { struct netdfs_info2 *val = (struct netdfs_info2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 8UL); NDR_MEMBER (_ulong, n_store, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); NDR_MEMBER_PTR (s_wchar, comment, 4UL); return 1; } int ndr__netdfs_info3 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info3 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info3, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info3 (struct ndr_reference *encl_ref) { struct netdfs_info3 *val = (struct netdfs_info3 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 8UL); NDR_MEMBER (_ulong, n_store, 12UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); NDR_MEMBER_PTR (s_wchar, comment, 4UL); NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_storage_info, si, 16UL, val->n_store); return 1; } int ndr__netdfs_info4 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info4 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info4, /* ndr_func */ 40, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 40, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info4 (struct ndr_reference *encl_ref) { struct netdfs_info4 *val = (struct netdfs_info4 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 8UL); NDR_MEMBER (_ulong, timeout, 12UL); NDR_MEMBER (_ulong, n_store, 32UL); /* do all constructed elements w/o pointers */ NDR_MEMBER (_netdfs_uuid, guid, 16UL); /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); NDR_MEMBER_PTR (s_wchar, comment, 4UL); NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_storage_info, si, 36UL, val->n_store); return 1; } int ndr__netdfs_info5 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info5 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info5, /* ndr_func */ 44, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 44, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info5 (struct ndr_reference *encl_ref) { struct netdfs_info5 *val = (struct netdfs_info5 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 8UL); NDR_MEMBER (_ulong, timeout, 12UL); NDR_MEMBER (_ulong, flags, 32UL); NDR_MEMBER (_ulong, metadata_sz, 36UL); NDR_MEMBER (_ulong, n_store, 40UL); /* do all constructed elements w/o pointers */ NDR_MEMBER (_netdfs_uuid, guid, 16UL); /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); NDR_MEMBER_PTR (s_wchar, comment, 4UL); return 1; } int ndr__netdfs_info6 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info6 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info6, /* ndr_func */ 48, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 48, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info6 (struct ndr_reference *encl_ref) { struct netdfs_info6 *val = (struct netdfs_info6 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 8UL); NDR_MEMBER (_ulong, timeout, 12UL); NDR_MEMBER (_ulong, flags, 32UL); NDR_MEMBER (_ulong, metadata_sz, 36UL); NDR_MEMBER (_ulong, n_store, 40UL); /* do all constructed elements w/o pointers */ NDR_MEMBER (_netdfs_uuid, guid, 16UL); /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); NDR_MEMBER_PTR (s_wchar, comment, 4UL); NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_storage_info1, si, 44UL, val->n_store); return 1; } int ndr__netdfs_info100 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info100 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info100, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info100 (struct ndr_reference *encl_ref) { struct netdfs_info100 *val = (struct netdfs_info100 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, comment, 0UL); return 1; } int ndr__netdfs_info101 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info101 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info101, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info101 (struct ndr_reference *encl_ref) { struct netdfs_info101 *val = (struct netdfs_info101 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__netdfs_info102 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info102 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info102, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info102 (struct ndr_reference *encl_ref) { struct netdfs_info102 *val = (struct netdfs_info102 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, timeout, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__netdfs_info103 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info103 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info103, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info103 (struct ndr_reference *encl_ref) { struct netdfs_info103 *val = (struct netdfs_info103 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, property_flag_mask, 0UL); NDR_MEMBER (_ulong, property_flags, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__netdfs_info104 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info104 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info104, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info104 (struct ndr_reference *encl_ref) { struct netdfs_info104 *val = (struct netdfs_info104 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, priority_class, 0UL); NDR_MEMBER (_ushort, priority_rank, 4UL); NDR_MEMBER (_ushort, reserved, 6UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__netdfs_info105 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info105 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info105, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info105 (struct ndr_reference *encl_ref) { struct netdfs_info105 *val = (struct netdfs_info105 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, state, 4UL); NDR_MEMBER (_ulong, timeout, 8UL); NDR_MEMBER (_ulong, property_flag_mask, 12UL); NDR_MEMBER (_ulong, property_flags, 16UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, comment, 0UL); return 1; } int ndr__netdfs_info106 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info106 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info106, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info106 (struct ndr_reference *encl_ref) { struct netdfs_info106 *val = (struct netdfs_info106 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, storage_state, 0UL); NDR_MEMBER (_ulong, priority_class, 4UL); NDR_MEMBER (_ulong, priority_rank, 8UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ return 1; } int ndr__netdfs_info200 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info200 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info200, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info200 (struct ndr_reference *encl_ref) { struct netdfs_info200 *val = (struct netdfs_info200 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); return 1; } int ndr__netdfs_info300 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info300 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info300, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info300 (struct ndr_reference *encl_ref) { struct netdfs_info300 *val = (struct netdfs_info300 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, flavor, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR (s_wchar, dfsname, 4UL); return 1; } int ndr__netdfs_info_u (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info_u = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__netdfs_info_u, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info_u (struct ndr_reference *encl_ref) { union netdfs_info_u *val = (union netdfs_info_u *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; switch (encl_ref->switch_is) { case 1: NDR_MEMBER_PTR (_netdfs_info1, info1, 0UL); break; case 2: NDR_MEMBER_PTR (_netdfs_info2, info2, 0UL); break; case 3: NDR_MEMBER_PTR (_netdfs_info3, info3, 0UL); break; case 4: NDR_MEMBER_PTR (_netdfs_info4, info4, 0UL); break; case 5: NDR_MEMBER_PTR (_netdfs_info5, info5, 0UL); break; case 6: NDR_MEMBER_PTR (_netdfs_info6, info6, 0UL); break; case 100: NDR_MEMBER_PTR (_netdfs_info100, info100, 0UL); break; case 101: NDR_MEMBER_PTR (_netdfs_info101, info101, 0UL); break; case 102: NDR_MEMBER_PTR (_netdfs_info102, info102, 0UL); break; case 103: NDR_MEMBER_PTR (_netdfs_info103, info103, 0UL); break; case 104: NDR_MEMBER_PTR (_netdfs_info104, info104, 0UL); break; case 105: NDR_MEMBER_PTR (_netdfs_info105, info105, 0UL); break; case 106: NDR_MEMBER_PTR (_netdfs_info106, info106, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__netdfs_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_info, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_info (struct ndr_reference *encl_ref) { struct netdfs_info *val = (struct netdfs_info *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, level, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_WITH_SWITCH_IS (_netdfs_info_u, iu, 4UL, val->level); return 1; } int ndr__netdfs_array1 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_array1 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_array1, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_array1 (struct ndr_reference *encl_ref) { struct netdfs_array1 *val = (struct netdfs_array1 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info1, info1, 4UL, val->count); return 1; } int ndr__netdfs_array2 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_array2 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_array2, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_array2 (struct ndr_reference *encl_ref) { struct netdfs_array2 *val = (struct netdfs_array2 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info2, info2, 4UL, val->count); return 1; } int ndr__netdfs_array3 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_array3 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_array3, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_array3 (struct ndr_reference *encl_ref) { struct netdfs_array3 *val = (struct netdfs_array3 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info3, info3, 4UL, val->count); return 1; } int ndr__netdfs_array4 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_array4 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_array4, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_array4 (struct ndr_reference *encl_ref) { struct netdfs_array4 *val = (struct netdfs_array4 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info4, info4, 4UL, val->count); return 1; } int ndr__netdfs_array5 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_array5 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_array5, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_array5 (struct ndr_reference *encl_ref) { struct netdfs_array5 *val = (struct netdfs_array5 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info5, info5, 4UL, val->count); return 1; } int ndr__netdfs_array6 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_array6 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_array6, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_array6 (struct ndr_reference *encl_ref) { struct netdfs_array6 *val = (struct netdfs_array6 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info6, info6, 4UL, val->count); return 1; } int ndr__netdfs_array200 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_array200 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_array200, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_array200 (struct ndr_reference *encl_ref) { struct netdfs_array200 *val = (struct netdfs_array200 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info200, info200, 4UL, val->count); return 1; } int ndr__netdfs_array300 (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_array300 = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_array300, /* ndr_func */ 8, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 8, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_array300 (struct ndr_reference *encl_ref) { struct netdfs_array300 *val = (struct netdfs_array300 *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, count, 0UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info300, info300, 4UL, val->count); return 1; } int ndr__netdfs_enum_info_u (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_enum_info_u = { 1, /* NDR version */ 3, /* alignment */ NDR_F_UNION, /* flags */ ndr__netdfs_enum_info_u, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_enum_info_u (struct ndr_reference *encl_ref) { union netdfs_enum_info_u *val = (union netdfs_enum_info_u *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; switch (encl_ref->switch_is) { case 1: NDR_MEMBER_PTR (_netdfs_array1, info1, 0UL); break; case 2: NDR_MEMBER_PTR (_netdfs_array2, info2, 0UL); break; case 3: NDR_MEMBER_PTR (_netdfs_array3, info3, 0UL); break; case 4: NDR_MEMBER_PTR (_netdfs_array4, info4, 0UL); break; case 5: NDR_MEMBER_PTR (_netdfs_array5, info5, 0UL); break; case 6: NDR_MEMBER_PTR (_netdfs_array6, info6, 0UL); break; case 200: NDR_MEMBER_PTR (_netdfs_array200, info200, 0UL); break; case 300: NDR_MEMBER_PTR (_netdfs_array300, info300, 0UL); break; default: NDR_MEMBER_PTR (_char, nullptr, 0UL); break; } return 1; } int ndr__netdfs_enum_info (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_enum_info = { 1, /* NDR version */ 3, /* alignment */ NDR_F_STRUCT, /* flags */ ndr__netdfs_enum_info, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * */ int ndr__netdfs_enum_info (struct ndr_reference *encl_ref) { struct netdfs_enum_info *val = (struct netdfs_enum_info *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all basic elements first */ NDR_MEMBER (_ulong, level, 0UL); NDR_MEMBER (_ulong, switch_value, 4UL); /* do all constructed elements w/o pointers */ /* do members with pointers in order */ NDR_MEMBER_WITH_SWITCH_IS (_netdfs_enum_info_u, iu, 8UL, val->switch_value); return 1; } int ndr__netdfs_getver (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_getver = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_getver, /* ndr_func */ 4, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 4, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(0)] */ int ndr__netdfs_getver (struct ndr_reference *encl_ref) { struct netdfs_getver *val = (struct netdfs_getver *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, version); } return 1; } int ndr__netdfs_add (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_add = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_add, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(1)] */ int ndr__netdfs_add (struct ndr_reference *encl_ref) { struct netdfs_add *val = (struct netdfs_add *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, share); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, comment); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, flags); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_remove (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_remove = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_remove, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(2)] */ int ndr__netdfs_remove (struct ndr_reference *encl_ref) { struct netdfs_remove *val = (struct netdfs_remove *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, share); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_setinfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_setinfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_setinfo, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(3)] */ int ndr__netdfs_setinfo (struct ndr_reference *encl_ref) { struct netdfs_setinfo *val = (struct netdfs_setinfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, share); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_netdfs_info, info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_getinfo (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_getinfo = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_getinfo, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(4)] */ int ndr__netdfs_getinfo (struct ndr_reference *encl_ref) { struct netdfs_getinfo *val = (struct netdfs_getinfo *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_PTR (s_wchar, share); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_netdfs_info, info); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_enum (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_enum = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_enum, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(5)] */ int ndr__netdfs_enum (struct ndr_reference *encl_ref) { struct netdfs_enum *val = (struct netdfs_enum *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, pref_max_len); } NDR_TOPMOST_MEMBER_PTR (_netdfs_enum_info, info); NDR_TOPMOST_MEMBER_PTR (_ulong, resume_handle); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_rename (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_rename = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_rename, /* ndr_func */ 12, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 12, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(7)] */ int ndr__netdfs_rename (struct ndr_reference *encl_ref) { struct netdfs_rename *val = (struct netdfs_rename *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, new_path); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_move (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_move = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_move, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(6)] */ int ndr__netdfs_move (struct ndr_reference *encl_ref) { struct netdfs_move *val = (struct netdfs_move *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, new_path); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, flags); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_addstdroot (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_addstdroot = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_addstdroot, /* ndr_func */ 20, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 20, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(12)] */ int ndr__netdfs_addstdroot (struct ndr_reference *encl_ref) { struct netdfs_addstdroot *val = (struct netdfs_addstdroot *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, share); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, comment); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, flags); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_remstdroot (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_remstdroot = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_remstdroot, /* ndr_func */ 16, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 16, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(13)] */ int ndr__netdfs_remstdroot (struct ndr_reference *encl_ref) { struct netdfs_remstdroot *val = (struct netdfs_remstdroot *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, server); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, share); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, flags); } if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_enumex (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_enumex = { 1, /* NDR version */ 3, /* alignment */ NDR_F_OPERATION, /* flags */ ndr__netdfs_enumex, /* ndr_func */ 24, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 24, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [operation(21)] */ int ndr__netdfs_enumex (struct ndr_reference *encl_ref) { struct netdfs_enumex *val = (struct netdfs_enumex *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; /* do all members in order */ if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, level); } if (NDR_DIR_IS_IN) { NDR_TOPMOST_MEMBER (_ulong, pref_max_len); } NDR_TOPMOST_MEMBER_PTR (_netdfs_enum_info, info); NDR_TOPMOST_MEMBER_PTR (_ulong, resume_handle); if (NDR_DIR_IS_OUT) { NDR_TOPMOST_MEMBER (_ulong, status); } return 1; } int ndr__netdfs_interface (struct ndr_reference *encl_ref); struct ndr_typeinfo ndt__netdfs_interface = { 1, /* NDR version */ 3, /* alignment */ NDR_F_INTERFACE, /* flags */ ndr__netdfs_interface, /* ndr_func */ 28, /* pdu_size_fixed_part */ 0, /* pdu_size_variable_part */ 28, /* c_size_fixed_part */ 0, /* c_size_variable_part */ }; /* * [interface(0)] */ int ndr__netdfs_interface (struct ndr_reference *encl_ref) { union netdfs_interface *val = (union netdfs_interface *) encl_ref->datum; struct ndr_reference myref; (void) bzero(&myref, sizeof (myref)); myref.enclosing = encl_ref; myref.stream = encl_ref->stream; switch (encl_ref->switch_is) { case 0: NDR_PARAMS_MEMBER (_netdfs_getver, netdfs_getver); break; case 1: NDR_PARAMS_MEMBER (_netdfs_add, netdfs_add); break; case 2: NDR_PARAMS_MEMBER (_netdfs_remove, netdfs_remove); break; case 3: NDR_PARAMS_MEMBER (_netdfs_setinfo, netdfs_setinfo); break; case 4: NDR_PARAMS_MEMBER (_netdfs_getinfo, netdfs_getinfo); break; case 5: NDR_PARAMS_MEMBER (_netdfs_enum, netdfs_enum); break; case 6: NDR_PARAMS_MEMBER (_netdfs_move, netdfs_move); break; case 7: NDR_PARAMS_MEMBER (_netdfs_rename, netdfs_rename); break; case 12: NDR_PARAMS_MEMBER (_netdfs_addstdroot, netdfs_addstdroot); break; case 13: NDR_PARAMS_MEMBER (_netdfs_remstdroot, netdfs_remstdroot); break; case 21: NDR_PARAMS_MEMBER (_netdfs_enumex, netdfs_enumex); break; default: NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); return 0; break; } return 1; }