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/netdfs.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__netdfs_uuid (struct ndr_reference *encl_ref); 28 struct ndr_typeinfo ndt__netdfs_uuid = { 29 1, /* NDR version */ 30 3, /* alignment */ 31 NDR_F_STRUCT, /* flags */ 32 ndr__netdfs_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__netdfs_uuid (struct ndr_reference *encl_ref) 44 { 45 struct netdfs_uuid *val = (struct netdfs_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__netdfs_storage_info (struct ndr_reference *encl_ref); 69 struct ndr_typeinfo ndt__netdfs_storage_info = { 70 1, /* NDR version */ 71 3, /* alignment */ 72 NDR_F_STRUCT, /* flags */ 73 ndr__netdfs_storage_info, /* ndr_func */ 74 12, /* pdu_size_fixed_part */ 75 0, /* pdu_size_variable_part */ 76 12, /* c_size_fixed_part */ 77 0, /* c_size_variable_part */ 78 }; 79 80 81 /* 82 * */ 83 int 84 ndr__netdfs_storage_info (struct ndr_reference *encl_ref) 85 { 86 struct netdfs_storage_info *val = (struct netdfs_storage_info *) encl_ref->datum; 87 struct ndr_reference myref; 88 89 (void) bzero(&myref, sizeof (myref)); 90 myref.enclosing = encl_ref; 91 myref.stream = encl_ref->stream; 92 93 /* do all basic elements first */ 94 NDR_MEMBER (_ulong, state, 0UL); 95 96 /* do all constructed elements w/o pointers */ 97 98 /* do members with pointers in order */ 99 NDR_MEMBER_PTR (s_wchar, server, 4UL); 100 NDR_MEMBER_PTR (s_wchar, share, 8UL); 101 102 return 1; 103 } 104 105 106 107 int ndr__netdfs_storage_info1 (struct ndr_reference *encl_ref); 108 struct ndr_typeinfo ndt__netdfs_storage_info1 = { 109 1, /* NDR version */ 110 3, /* alignment */ 111 NDR_F_STRUCT, /* flags */ 112 ndr__netdfs_storage_info1, /* ndr_func */ 113 20, /* pdu_size_fixed_part */ 114 0, /* pdu_size_variable_part */ 115 20, /* c_size_fixed_part */ 116 0, /* c_size_variable_part */ 117 }; 118 119 120 /* 121 * */ 122 int 123 ndr__netdfs_storage_info1 (struct ndr_reference *encl_ref) 124 { 125 struct netdfs_storage_info1 *val = (struct netdfs_storage_info1 *) encl_ref->datum; 126 struct ndr_reference myref; 127 128 (void) bzero(&myref, sizeof (myref)); 129 myref.enclosing = encl_ref; 130 myref.stream = encl_ref->stream; 131 132 /* do all basic elements first */ 133 NDR_MEMBER (_ulong, state, 0UL); 134 NDR_MEMBER (_ulong, p_class, 12UL); 135 NDR_MEMBER (_ushort, p_rank, 16UL); 136 NDR_MEMBER (_ushort, p_reserved, 18UL); 137 138 /* do all constructed elements w/o pointers */ 139 140 /* do members with pointers in order */ 141 NDR_MEMBER_PTR (s_wchar, server, 4UL); 142 NDR_MEMBER_PTR (s_wchar, share, 8UL); 143 144 return 1; 145 } 146 147 148 149 int ndr__netdfs_info1 (struct ndr_reference *encl_ref); 150 struct ndr_typeinfo ndt__netdfs_info1 = { 151 1, /* NDR version */ 152 3, /* alignment */ 153 NDR_F_STRUCT, /* flags */ 154 ndr__netdfs_info1, /* ndr_func */ 155 4, /* pdu_size_fixed_part */ 156 0, /* pdu_size_variable_part */ 157 4, /* c_size_fixed_part */ 158 0, /* c_size_variable_part */ 159 }; 160 161 162 /* 163 * */ 164 int 165 ndr__netdfs_info1 (struct ndr_reference *encl_ref) 166 { 167 struct netdfs_info1 *val = (struct netdfs_info1 *) encl_ref->datum; 168 struct ndr_reference myref; 169 170 (void) bzero(&myref, sizeof (myref)); 171 myref.enclosing = encl_ref; 172 myref.stream = encl_ref->stream; 173 174 /* do all basic elements first */ 175 176 /* do all constructed elements w/o pointers */ 177 178 /* do members with pointers in order */ 179 NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); 180 181 return 1; 182 } 183 184 185 186 int ndr__netdfs_info2 (struct ndr_reference *encl_ref); 187 struct ndr_typeinfo ndt__netdfs_info2 = { 188 1, /* NDR version */ 189 3, /* alignment */ 190 NDR_F_STRUCT, /* flags */ 191 ndr__netdfs_info2, /* ndr_func */ 192 16, /* pdu_size_fixed_part */ 193 0, /* pdu_size_variable_part */ 194 16, /* c_size_fixed_part */ 195 0, /* c_size_variable_part */ 196 }; 197 198 199 /* 200 * */ 201 int 202 ndr__netdfs_info2 (struct ndr_reference *encl_ref) 203 { 204 struct netdfs_info2 *val = (struct netdfs_info2 *) encl_ref->datum; 205 struct ndr_reference myref; 206 207 (void) bzero(&myref, sizeof (myref)); 208 myref.enclosing = encl_ref; 209 myref.stream = encl_ref->stream; 210 211 /* do all basic elements first */ 212 NDR_MEMBER (_ulong, state, 8UL); 213 NDR_MEMBER (_ulong, n_store, 12UL); 214 215 /* do all constructed elements w/o pointers */ 216 217 /* do members with pointers in order */ 218 NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); 219 NDR_MEMBER_PTR (s_wchar, comment, 4UL); 220 221 return 1; 222 } 223 224 225 226 int ndr__netdfs_info3 (struct ndr_reference *encl_ref); 227 struct ndr_typeinfo ndt__netdfs_info3 = { 228 1, /* NDR version */ 229 3, /* alignment */ 230 NDR_F_STRUCT, /* flags */ 231 ndr__netdfs_info3, /* ndr_func */ 232 20, /* pdu_size_fixed_part */ 233 0, /* pdu_size_variable_part */ 234 20, /* c_size_fixed_part */ 235 0, /* c_size_variable_part */ 236 }; 237 238 239 /* 240 * */ 241 int 242 ndr__netdfs_info3 (struct ndr_reference *encl_ref) 243 { 244 struct netdfs_info3 *val = (struct netdfs_info3 *) encl_ref->datum; 245 struct ndr_reference myref; 246 247 (void) bzero(&myref, sizeof (myref)); 248 myref.enclosing = encl_ref; 249 myref.stream = encl_ref->stream; 250 251 /* do all basic elements first */ 252 NDR_MEMBER (_ulong, state, 8UL); 253 NDR_MEMBER (_ulong, n_store, 12UL); 254 255 /* do all constructed elements w/o pointers */ 256 257 /* do members with pointers in order */ 258 NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); 259 NDR_MEMBER_PTR (s_wchar, comment, 4UL); 260 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_storage_info, si, 16UL, 261 val->n_store); 262 263 return 1; 264 } 265 266 267 268 int ndr__netdfs_info4 (struct ndr_reference *encl_ref); 269 struct ndr_typeinfo ndt__netdfs_info4 = { 270 1, /* NDR version */ 271 3, /* alignment */ 272 NDR_F_STRUCT, /* flags */ 273 ndr__netdfs_info4, /* ndr_func */ 274 40, /* pdu_size_fixed_part */ 275 0, /* pdu_size_variable_part */ 276 40, /* c_size_fixed_part */ 277 0, /* c_size_variable_part */ 278 }; 279 280 281 /* 282 * */ 283 int 284 ndr__netdfs_info4 (struct ndr_reference *encl_ref) 285 { 286 struct netdfs_info4 *val = (struct netdfs_info4 *) encl_ref->datum; 287 struct ndr_reference myref; 288 289 (void) bzero(&myref, sizeof (myref)); 290 myref.enclosing = encl_ref; 291 myref.stream = encl_ref->stream; 292 293 /* do all basic elements first */ 294 NDR_MEMBER (_ulong, state, 8UL); 295 NDR_MEMBER (_ulong, timeout, 12UL); 296 NDR_MEMBER (_ulong, n_store, 32UL); 297 298 /* do all constructed elements w/o pointers */ 299 NDR_MEMBER (_netdfs_uuid, guid, 16UL); 300 301 /* do members with pointers in order */ 302 NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); 303 NDR_MEMBER_PTR (s_wchar, comment, 4UL); 304 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_storage_info, si, 36UL, 305 val->n_store); 306 307 return 1; 308 } 309 310 311 312 int ndr__netdfs_info5 (struct ndr_reference *encl_ref); 313 struct ndr_typeinfo ndt__netdfs_info5 = { 314 1, /* NDR version */ 315 3, /* alignment */ 316 NDR_F_STRUCT, /* flags */ 317 ndr__netdfs_info5, /* ndr_func */ 318 44, /* pdu_size_fixed_part */ 319 0, /* pdu_size_variable_part */ 320 44, /* c_size_fixed_part */ 321 0, /* c_size_variable_part */ 322 }; 323 324 325 /* 326 * */ 327 int 328 ndr__netdfs_info5 (struct ndr_reference *encl_ref) 329 { 330 struct netdfs_info5 *val = (struct netdfs_info5 *) encl_ref->datum; 331 struct ndr_reference myref; 332 333 (void) bzero(&myref, sizeof (myref)); 334 myref.enclosing = encl_ref; 335 myref.stream = encl_ref->stream; 336 337 /* do all basic elements first */ 338 NDR_MEMBER (_ulong, state, 8UL); 339 NDR_MEMBER (_ulong, timeout, 12UL); 340 NDR_MEMBER (_ulong, flags, 32UL); 341 NDR_MEMBER (_ulong, metadata_sz, 36UL); 342 NDR_MEMBER (_ulong, n_store, 40UL); 343 344 /* do all constructed elements w/o pointers */ 345 NDR_MEMBER (_netdfs_uuid, guid, 16UL); 346 347 /* do members with pointers in order */ 348 NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); 349 NDR_MEMBER_PTR (s_wchar, comment, 4UL); 350 351 return 1; 352 } 353 354 355 356 int ndr__netdfs_info6 (struct ndr_reference *encl_ref); 357 struct ndr_typeinfo ndt__netdfs_info6 = { 358 1, /* NDR version */ 359 3, /* alignment */ 360 NDR_F_STRUCT, /* flags */ 361 ndr__netdfs_info6, /* ndr_func */ 362 48, /* pdu_size_fixed_part */ 363 0, /* pdu_size_variable_part */ 364 48, /* c_size_fixed_part */ 365 0, /* c_size_variable_part */ 366 }; 367 368 369 /* 370 * */ 371 int 372 ndr__netdfs_info6 (struct ndr_reference *encl_ref) 373 { 374 struct netdfs_info6 *val = (struct netdfs_info6 *) encl_ref->datum; 375 struct ndr_reference myref; 376 377 (void) bzero(&myref, sizeof (myref)); 378 myref.enclosing = encl_ref; 379 myref.stream = encl_ref->stream; 380 381 /* do all basic elements first */ 382 NDR_MEMBER (_ulong, state, 8UL); 383 NDR_MEMBER (_ulong, timeout, 12UL); 384 NDR_MEMBER (_ulong, flags, 32UL); 385 NDR_MEMBER (_ulong, metadata_sz, 36UL); 386 NDR_MEMBER (_ulong, n_store, 40UL); 387 388 /* do all constructed elements w/o pointers */ 389 NDR_MEMBER (_netdfs_uuid, guid, 16UL); 390 391 /* do members with pointers in order */ 392 NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); 393 NDR_MEMBER_PTR (s_wchar, comment, 4UL); 394 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_storage_info1, si, 44UL, 395 val->n_store); 396 397 return 1; 398 } 399 400 401 402 int ndr__netdfs_info100 (struct ndr_reference *encl_ref); 403 struct ndr_typeinfo ndt__netdfs_info100 = { 404 1, /* NDR version */ 405 3, /* alignment */ 406 NDR_F_STRUCT, /* flags */ 407 ndr__netdfs_info100, /* ndr_func */ 408 4, /* pdu_size_fixed_part */ 409 0, /* pdu_size_variable_part */ 410 4, /* c_size_fixed_part */ 411 0, /* c_size_variable_part */ 412 }; 413 414 415 /* 416 * */ 417 int 418 ndr__netdfs_info100 (struct ndr_reference *encl_ref) 419 { 420 struct netdfs_info100 *val = (struct netdfs_info100 *) encl_ref->datum; 421 struct ndr_reference myref; 422 423 (void) bzero(&myref, sizeof (myref)); 424 myref.enclosing = encl_ref; 425 myref.stream = encl_ref->stream; 426 427 /* do all basic elements first */ 428 429 /* do all constructed elements w/o pointers */ 430 431 /* do members with pointers in order */ 432 NDR_MEMBER_PTR (s_wchar, comment, 0UL); 433 434 return 1; 435 } 436 437 438 439 int ndr__netdfs_info101 (struct ndr_reference *encl_ref); 440 struct ndr_typeinfo ndt__netdfs_info101 = { 441 1, /* NDR version */ 442 3, /* alignment */ 443 NDR_F_STRUCT, /* flags */ 444 ndr__netdfs_info101, /* ndr_func */ 445 4, /* pdu_size_fixed_part */ 446 0, /* pdu_size_variable_part */ 447 4, /* c_size_fixed_part */ 448 0, /* c_size_variable_part */ 449 }; 450 451 452 /* 453 * */ 454 int 455 ndr__netdfs_info101 (struct ndr_reference *encl_ref) 456 { 457 struct netdfs_info101 *val = (struct netdfs_info101 *) encl_ref->datum; 458 struct ndr_reference myref; 459 460 (void) bzero(&myref, sizeof (myref)); 461 myref.enclosing = encl_ref; 462 myref.stream = encl_ref->stream; 463 464 /* do all basic elements first */ 465 NDR_MEMBER (_ulong, state, 0UL); 466 467 /* do all constructed elements w/o pointers */ 468 469 /* do members with pointers in order */ 470 471 return 1; 472 } 473 474 475 476 int ndr__netdfs_info102 (struct ndr_reference *encl_ref); 477 struct ndr_typeinfo ndt__netdfs_info102 = { 478 1, /* NDR version */ 479 3, /* alignment */ 480 NDR_F_STRUCT, /* flags */ 481 ndr__netdfs_info102, /* ndr_func */ 482 4, /* pdu_size_fixed_part */ 483 0, /* pdu_size_variable_part */ 484 4, /* c_size_fixed_part */ 485 0, /* c_size_variable_part */ 486 }; 487 488 489 /* 490 * */ 491 int 492 ndr__netdfs_info102 (struct ndr_reference *encl_ref) 493 { 494 struct netdfs_info102 *val = (struct netdfs_info102 *) encl_ref->datum; 495 struct ndr_reference myref; 496 497 (void) bzero(&myref, sizeof (myref)); 498 myref.enclosing = encl_ref; 499 myref.stream = encl_ref->stream; 500 501 /* do all basic elements first */ 502 NDR_MEMBER (_ulong, timeout, 0UL); 503 504 /* do all constructed elements w/o pointers */ 505 506 /* do members with pointers in order */ 507 508 return 1; 509 } 510 511 512 513 int ndr__netdfs_info103 (struct ndr_reference *encl_ref); 514 struct ndr_typeinfo ndt__netdfs_info103 = { 515 1, /* NDR version */ 516 3, /* alignment */ 517 NDR_F_STRUCT, /* flags */ 518 ndr__netdfs_info103, /* ndr_func */ 519 8, /* pdu_size_fixed_part */ 520 0, /* pdu_size_variable_part */ 521 8, /* c_size_fixed_part */ 522 0, /* c_size_variable_part */ 523 }; 524 525 526 /* 527 * */ 528 int 529 ndr__netdfs_info103 (struct ndr_reference *encl_ref) 530 { 531 struct netdfs_info103 *val = (struct netdfs_info103 *) encl_ref->datum; 532 struct ndr_reference myref; 533 534 (void) bzero(&myref, sizeof (myref)); 535 myref.enclosing = encl_ref; 536 myref.stream = encl_ref->stream; 537 538 /* do all basic elements first */ 539 NDR_MEMBER (_ulong, property_flag_mask, 0UL); 540 NDR_MEMBER (_ulong, property_flags, 4UL); 541 542 /* do all constructed elements w/o pointers */ 543 544 /* do members with pointers in order */ 545 546 return 1; 547 } 548 549 550 551 int ndr__netdfs_info104 (struct ndr_reference *encl_ref); 552 struct ndr_typeinfo ndt__netdfs_info104 = { 553 1, /* NDR version */ 554 3, /* alignment */ 555 NDR_F_STRUCT, /* flags */ 556 ndr__netdfs_info104, /* ndr_func */ 557 8, /* pdu_size_fixed_part */ 558 0, /* pdu_size_variable_part */ 559 8, /* c_size_fixed_part */ 560 0, /* c_size_variable_part */ 561 }; 562 563 564 /* 565 * */ 566 int 567 ndr__netdfs_info104 (struct ndr_reference *encl_ref) 568 { 569 struct netdfs_info104 *val = (struct netdfs_info104 *) encl_ref->datum; 570 struct ndr_reference myref; 571 572 (void) bzero(&myref, sizeof (myref)); 573 myref.enclosing = encl_ref; 574 myref.stream = encl_ref->stream; 575 576 /* do all basic elements first */ 577 NDR_MEMBER (_ulong, priority_class, 0UL); 578 NDR_MEMBER (_ushort, priority_rank, 4UL); 579 NDR_MEMBER (_ushort, reserved, 6UL); 580 581 /* do all constructed elements w/o pointers */ 582 583 /* do members with pointers in order */ 584 585 return 1; 586 } 587 588 589 590 int ndr__netdfs_info105 (struct ndr_reference *encl_ref); 591 struct ndr_typeinfo ndt__netdfs_info105 = { 592 1, /* NDR version */ 593 3, /* alignment */ 594 NDR_F_STRUCT, /* flags */ 595 ndr__netdfs_info105, /* ndr_func */ 596 20, /* pdu_size_fixed_part */ 597 0, /* pdu_size_variable_part */ 598 20, /* c_size_fixed_part */ 599 0, /* c_size_variable_part */ 600 }; 601 602 603 /* 604 * */ 605 int 606 ndr__netdfs_info105 (struct ndr_reference *encl_ref) 607 { 608 struct netdfs_info105 *val = (struct netdfs_info105 *) encl_ref->datum; 609 struct ndr_reference myref; 610 611 (void) bzero(&myref, sizeof (myref)); 612 myref.enclosing = encl_ref; 613 myref.stream = encl_ref->stream; 614 615 /* do all basic elements first */ 616 NDR_MEMBER (_ulong, state, 4UL); 617 NDR_MEMBER (_ulong, timeout, 8UL); 618 NDR_MEMBER (_ulong, property_flag_mask, 12UL); 619 NDR_MEMBER (_ulong, property_flags, 16UL); 620 621 /* do all constructed elements w/o pointers */ 622 623 /* do members with pointers in order */ 624 NDR_MEMBER_PTR (s_wchar, comment, 0UL); 625 626 return 1; 627 } 628 629 630 631 int ndr__netdfs_info106 (struct ndr_reference *encl_ref); 632 struct ndr_typeinfo ndt__netdfs_info106 = { 633 1, /* NDR version */ 634 3, /* alignment */ 635 NDR_F_STRUCT, /* flags */ 636 ndr__netdfs_info106, /* ndr_func */ 637 12, /* pdu_size_fixed_part */ 638 0, /* pdu_size_variable_part */ 639 12, /* c_size_fixed_part */ 640 0, /* c_size_variable_part */ 641 }; 642 643 644 /* 645 * */ 646 int 647 ndr__netdfs_info106 (struct ndr_reference *encl_ref) 648 { 649 struct netdfs_info106 *val = (struct netdfs_info106 *) encl_ref->datum; 650 struct ndr_reference myref; 651 652 (void) bzero(&myref, sizeof (myref)); 653 myref.enclosing = encl_ref; 654 myref.stream = encl_ref->stream; 655 656 /* do all basic elements first */ 657 NDR_MEMBER (_ulong, storage_state, 0UL); 658 NDR_MEMBER (_ulong, priority_class, 4UL); 659 NDR_MEMBER (_ulong, priority_rank, 8UL); 660 661 /* do all constructed elements w/o pointers */ 662 663 /* do members with pointers in order */ 664 665 return 1; 666 } 667 668 669 670 int ndr__netdfs_info200 (struct ndr_reference *encl_ref); 671 struct ndr_typeinfo ndt__netdfs_info200 = { 672 1, /* NDR version */ 673 3, /* alignment */ 674 NDR_F_STRUCT, /* flags */ 675 ndr__netdfs_info200, /* ndr_func */ 676 4, /* pdu_size_fixed_part */ 677 0, /* pdu_size_variable_part */ 678 4, /* c_size_fixed_part */ 679 0, /* c_size_variable_part */ 680 }; 681 682 683 /* 684 * */ 685 int 686 ndr__netdfs_info200 (struct ndr_reference *encl_ref) 687 { 688 struct netdfs_info200 *val = (struct netdfs_info200 *) encl_ref->datum; 689 struct ndr_reference myref; 690 691 (void) bzero(&myref, sizeof (myref)); 692 myref.enclosing = encl_ref; 693 myref.stream = encl_ref->stream; 694 695 /* do all basic elements first */ 696 697 /* do all constructed elements w/o pointers */ 698 699 /* do members with pointers in order */ 700 NDR_MEMBER_PTR (s_wchar, entry_path, 0UL); 701 702 return 1; 703 } 704 705 706 707 int ndr__netdfs_info300 (struct ndr_reference *encl_ref); 708 struct ndr_typeinfo ndt__netdfs_info300 = { 709 1, /* NDR version */ 710 3, /* alignment */ 711 NDR_F_STRUCT, /* flags */ 712 ndr__netdfs_info300, /* ndr_func */ 713 8, /* pdu_size_fixed_part */ 714 0, /* pdu_size_variable_part */ 715 8, /* c_size_fixed_part */ 716 0, /* c_size_variable_part */ 717 }; 718 719 720 /* 721 * */ 722 int 723 ndr__netdfs_info300 (struct ndr_reference *encl_ref) 724 { 725 struct netdfs_info300 *val = (struct netdfs_info300 *) encl_ref->datum; 726 struct ndr_reference myref; 727 728 (void) bzero(&myref, sizeof (myref)); 729 myref.enclosing = encl_ref; 730 myref.stream = encl_ref->stream; 731 732 /* do all basic elements first */ 733 NDR_MEMBER (_ulong, flavor, 0UL); 734 735 /* do all constructed elements w/o pointers */ 736 737 /* do members with pointers in order */ 738 NDR_MEMBER_PTR (s_wchar, dfsname, 4UL); 739 740 return 1; 741 } 742 743 744 745 int ndr__netdfs_info_u (struct ndr_reference *encl_ref); 746 struct ndr_typeinfo ndt__netdfs_info_u = { 747 1, /* NDR version */ 748 3, /* alignment */ 749 NDR_F_UNION, /* flags */ 750 ndr__netdfs_info_u, /* ndr_func */ 751 4, /* pdu_size_fixed_part */ 752 0, /* pdu_size_variable_part */ 753 4, /* c_size_fixed_part */ 754 0, /* c_size_variable_part */ 755 }; 756 757 758 /* 759 * */ 760 int 761 ndr__netdfs_info_u (struct ndr_reference *encl_ref) 762 { 763 union netdfs_info_u *val = (union netdfs_info_u *) encl_ref->datum; 764 struct ndr_reference myref; 765 766 (void) bzero(&myref, sizeof (myref)); 767 myref.enclosing = encl_ref; 768 myref.stream = encl_ref->stream; 769 770 switch (encl_ref->switch_is) { 771 case 1: 772 NDR_MEMBER_PTR (_netdfs_info1, info1, 0UL); 773 break; 774 775 case 2: 776 NDR_MEMBER_PTR (_netdfs_info2, info2, 0UL); 777 break; 778 779 case 3: 780 NDR_MEMBER_PTR (_netdfs_info3, info3, 0UL); 781 break; 782 783 case 4: 784 NDR_MEMBER_PTR (_netdfs_info4, info4, 0UL); 785 break; 786 787 case 5: 788 NDR_MEMBER_PTR (_netdfs_info5, info5, 0UL); 789 break; 790 791 case 6: 792 NDR_MEMBER_PTR (_netdfs_info6, info6, 0UL); 793 break; 794 795 case 100: 796 NDR_MEMBER_PTR (_netdfs_info100, info100, 0UL); 797 break; 798 799 case 101: 800 NDR_MEMBER_PTR (_netdfs_info101, info101, 0UL); 801 break; 802 803 case 102: 804 NDR_MEMBER_PTR (_netdfs_info102, info102, 0UL); 805 break; 806 807 case 103: 808 NDR_MEMBER_PTR (_netdfs_info103, info103, 0UL); 809 break; 810 811 case 104: 812 NDR_MEMBER_PTR (_netdfs_info104, info104, 0UL); 813 break; 814 815 case 105: 816 NDR_MEMBER_PTR (_netdfs_info105, info105, 0UL); 817 break; 818 819 case 106: 820 NDR_MEMBER_PTR (_netdfs_info106, info106, 0UL); 821 break; 822 823 default: 824 NDR_MEMBER_PTR (_char, nullptr, 0UL); 825 break; 826 827 } 828 829 830 return 1; 831 } 832 833 834 835 int ndr__netdfs_info (struct ndr_reference *encl_ref); 836 struct ndr_typeinfo ndt__netdfs_info = { 837 1, /* NDR version */ 838 3, /* alignment */ 839 NDR_F_STRUCT, /* flags */ 840 ndr__netdfs_info, /* ndr_func */ 841 8, /* pdu_size_fixed_part */ 842 0, /* pdu_size_variable_part */ 843 8, /* c_size_fixed_part */ 844 0, /* c_size_variable_part */ 845 }; 846 847 848 /* 849 * */ 850 int 851 ndr__netdfs_info (struct ndr_reference *encl_ref) 852 { 853 struct netdfs_info *val = (struct netdfs_info *) encl_ref->datum; 854 struct ndr_reference myref; 855 856 (void) bzero(&myref, sizeof (myref)); 857 myref.enclosing = encl_ref; 858 myref.stream = encl_ref->stream; 859 860 /* do all basic elements first */ 861 NDR_MEMBER (_ulong, level, 0UL); 862 863 /* do all constructed elements w/o pointers */ 864 865 /* do members with pointers in order */ 866 NDR_MEMBER_WITH_SWITCH_IS (_netdfs_info_u, iu, 4UL, 867 val->level); 868 869 return 1; 870 } 871 872 873 874 int ndr__netdfs_array1 (struct ndr_reference *encl_ref); 875 struct ndr_typeinfo ndt__netdfs_array1 = { 876 1, /* NDR version */ 877 3, /* alignment */ 878 NDR_F_STRUCT, /* flags */ 879 ndr__netdfs_array1, /* ndr_func */ 880 8, /* pdu_size_fixed_part */ 881 0, /* pdu_size_variable_part */ 882 8, /* c_size_fixed_part */ 883 0, /* c_size_variable_part */ 884 }; 885 886 887 /* 888 * */ 889 int 890 ndr__netdfs_array1 (struct ndr_reference *encl_ref) 891 { 892 struct netdfs_array1 *val = (struct netdfs_array1 *) encl_ref->datum; 893 struct ndr_reference myref; 894 895 (void) bzero(&myref, sizeof (myref)); 896 myref.enclosing = encl_ref; 897 myref.stream = encl_ref->stream; 898 899 /* do all basic elements first */ 900 NDR_MEMBER (_ulong, count, 0UL); 901 902 /* do all constructed elements w/o pointers */ 903 904 /* do members with pointers in order */ 905 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info1, info1, 4UL, 906 val->count); 907 908 return 1; 909 } 910 911 912 913 int ndr__netdfs_array2 (struct ndr_reference *encl_ref); 914 struct ndr_typeinfo ndt__netdfs_array2 = { 915 1, /* NDR version */ 916 3, /* alignment */ 917 NDR_F_STRUCT, /* flags */ 918 ndr__netdfs_array2, /* ndr_func */ 919 8, /* pdu_size_fixed_part */ 920 0, /* pdu_size_variable_part */ 921 8, /* c_size_fixed_part */ 922 0, /* c_size_variable_part */ 923 }; 924 925 926 /* 927 * */ 928 int 929 ndr__netdfs_array2 (struct ndr_reference *encl_ref) 930 { 931 struct netdfs_array2 *val = (struct netdfs_array2 *) encl_ref->datum; 932 struct ndr_reference myref; 933 934 (void) bzero(&myref, sizeof (myref)); 935 myref.enclosing = encl_ref; 936 myref.stream = encl_ref->stream; 937 938 /* do all basic elements first */ 939 NDR_MEMBER (_ulong, count, 0UL); 940 941 /* do all constructed elements w/o pointers */ 942 943 /* do members with pointers in order */ 944 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info2, info2, 4UL, 945 val->count); 946 947 return 1; 948 } 949 950 951 952 int ndr__netdfs_array3 (struct ndr_reference *encl_ref); 953 struct ndr_typeinfo ndt__netdfs_array3 = { 954 1, /* NDR version */ 955 3, /* alignment */ 956 NDR_F_STRUCT, /* flags */ 957 ndr__netdfs_array3, /* ndr_func */ 958 8, /* pdu_size_fixed_part */ 959 0, /* pdu_size_variable_part */ 960 8, /* c_size_fixed_part */ 961 0, /* c_size_variable_part */ 962 }; 963 964 965 /* 966 * */ 967 int 968 ndr__netdfs_array3 (struct ndr_reference *encl_ref) 969 { 970 struct netdfs_array3 *val = (struct netdfs_array3 *) encl_ref->datum; 971 struct ndr_reference myref; 972 973 (void) bzero(&myref, sizeof (myref)); 974 myref.enclosing = encl_ref; 975 myref.stream = encl_ref->stream; 976 977 /* do all basic elements first */ 978 NDR_MEMBER (_ulong, count, 0UL); 979 980 /* do all constructed elements w/o pointers */ 981 982 /* do members with pointers in order */ 983 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info3, info3, 4UL, 984 val->count); 985 986 return 1; 987 } 988 989 990 991 int ndr__netdfs_array4 (struct ndr_reference *encl_ref); 992 struct ndr_typeinfo ndt__netdfs_array4 = { 993 1, /* NDR version */ 994 3, /* alignment */ 995 NDR_F_STRUCT, /* flags */ 996 ndr__netdfs_array4, /* ndr_func */ 997 8, /* pdu_size_fixed_part */ 998 0, /* pdu_size_variable_part */ 999 8, /* c_size_fixed_part */ 1000 0, /* c_size_variable_part */ 1001 }; 1002 1003 1004 /* 1005 * */ 1006 int 1007 ndr__netdfs_array4 (struct ndr_reference *encl_ref) 1008 { 1009 struct netdfs_array4 *val = (struct netdfs_array4 *) encl_ref->datum; 1010 struct ndr_reference myref; 1011 1012 (void) bzero(&myref, sizeof (myref)); 1013 myref.enclosing = encl_ref; 1014 myref.stream = encl_ref->stream; 1015 1016 /* do all basic elements first */ 1017 NDR_MEMBER (_ulong, count, 0UL); 1018 1019 /* do all constructed elements w/o pointers */ 1020 1021 /* do members with pointers in order */ 1022 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info4, info4, 4UL, 1023 val->count); 1024 1025 return 1; 1026 } 1027 1028 1029 1030 int ndr__netdfs_array5 (struct ndr_reference *encl_ref); 1031 struct ndr_typeinfo ndt__netdfs_array5 = { 1032 1, /* NDR version */ 1033 3, /* alignment */ 1034 NDR_F_STRUCT, /* flags */ 1035 ndr__netdfs_array5, /* ndr_func */ 1036 8, /* pdu_size_fixed_part */ 1037 0, /* pdu_size_variable_part */ 1038 8, /* c_size_fixed_part */ 1039 0, /* c_size_variable_part */ 1040 }; 1041 1042 1043 /* 1044 * */ 1045 int 1046 ndr__netdfs_array5 (struct ndr_reference *encl_ref) 1047 { 1048 struct netdfs_array5 *val = (struct netdfs_array5 *) encl_ref->datum; 1049 struct ndr_reference myref; 1050 1051 (void) bzero(&myref, sizeof (myref)); 1052 myref.enclosing = encl_ref; 1053 myref.stream = encl_ref->stream; 1054 1055 /* do all basic elements first */ 1056 NDR_MEMBER (_ulong, count, 0UL); 1057 1058 /* do all constructed elements w/o pointers */ 1059 1060 /* do members with pointers in order */ 1061 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info5, info5, 4UL, 1062 val->count); 1063 1064 return 1; 1065 } 1066 1067 1068 1069 int ndr__netdfs_array6 (struct ndr_reference *encl_ref); 1070 struct ndr_typeinfo ndt__netdfs_array6 = { 1071 1, /* NDR version */ 1072 3, /* alignment */ 1073 NDR_F_STRUCT, /* flags */ 1074 ndr__netdfs_array6, /* ndr_func */ 1075 8, /* pdu_size_fixed_part */ 1076 0, /* pdu_size_variable_part */ 1077 8, /* c_size_fixed_part */ 1078 0, /* c_size_variable_part */ 1079 }; 1080 1081 1082 /* 1083 * */ 1084 int 1085 ndr__netdfs_array6 (struct ndr_reference *encl_ref) 1086 { 1087 struct netdfs_array6 *val = (struct netdfs_array6 *) encl_ref->datum; 1088 struct ndr_reference myref; 1089 1090 (void) bzero(&myref, sizeof (myref)); 1091 myref.enclosing = encl_ref; 1092 myref.stream = encl_ref->stream; 1093 1094 /* do all basic elements first */ 1095 NDR_MEMBER (_ulong, count, 0UL); 1096 1097 /* do all constructed elements w/o pointers */ 1098 1099 /* do members with pointers in order */ 1100 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info6, info6, 4UL, 1101 val->count); 1102 1103 return 1; 1104 } 1105 1106 1107 1108 int ndr__netdfs_array200 (struct ndr_reference *encl_ref); 1109 struct ndr_typeinfo ndt__netdfs_array200 = { 1110 1, /* NDR version */ 1111 3, /* alignment */ 1112 NDR_F_STRUCT, /* flags */ 1113 ndr__netdfs_array200, /* ndr_func */ 1114 8, /* pdu_size_fixed_part */ 1115 0, /* pdu_size_variable_part */ 1116 8, /* c_size_fixed_part */ 1117 0, /* c_size_variable_part */ 1118 }; 1119 1120 1121 /* 1122 * */ 1123 int 1124 ndr__netdfs_array200 (struct ndr_reference *encl_ref) 1125 { 1126 struct netdfs_array200 *val = (struct netdfs_array200 *) encl_ref->datum; 1127 struct ndr_reference myref; 1128 1129 (void) bzero(&myref, sizeof (myref)); 1130 myref.enclosing = encl_ref; 1131 myref.stream = encl_ref->stream; 1132 1133 /* do all basic elements first */ 1134 NDR_MEMBER (_ulong, count, 0UL); 1135 1136 /* do all constructed elements w/o pointers */ 1137 1138 /* do members with pointers in order */ 1139 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info200, info200, 4UL, 1140 val->count); 1141 1142 return 1; 1143 } 1144 1145 1146 1147 int ndr__netdfs_array300 (struct ndr_reference *encl_ref); 1148 struct ndr_typeinfo ndt__netdfs_array300 = { 1149 1, /* NDR version */ 1150 3, /* alignment */ 1151 NDR_F_STRUCT, /* flags */ 1152 ndr__netdfs_array300, /* ndr_func */ 1153 8, /* pdu_size_fixed_part */ 1154 0, /* pdu_size_variable_part */ 1155 8, /* c_size_fixed_part */ 1156 0, /* c_size_variable_part */ 1157 }; 1158 1159 1160 /* 1161 * */ 1162 int 1163 ndr__netdfs_array300 (struct ndr_reference *encl_ref) 1164 { 1165 struct netdfs_array300 *val = (struct netdfs_array300 *) encl_ref->datum; 1166 struct ndr_reference myref; 1167 1168 (void) bzero(&myref, sizeof (myref)); 1169 myref.enclosing = encl_ref; 1170 myref.stream = encl_ref->stream; 1171 1172 /* do all basic elements first */ 1173 NDR_MEMBER (_ulong, count, 0UL); 1174 1175 /* do all constructed elements w/o pointers */ 1176 1177 /* do members with pointers in order */ 1178 NDR_MEMBER_PTR_WITH_SIZE_IS (_netdfs_info300, info300, 4UL, 1179 val->count); 1180 1181 return 1; 1182 } 1183 1184 1185 1186 int ndr__netdfs_enum_info_u (struct ndr_reference *encl_ref); 1187 struct ndr_typeinfo ndt__netdfs_enum_info_u = { 1188 1, /* NDR version */ 1189 3, /* alignment */ 1190 NDR_F_UNION, /* flags */ 1191 ndr__netdfs_enum_info_u, /* ndr_func */ 1192 4, /* pdu_size_fixed_part */ 1193 0, /* pdu_size_variable_part */ 1194 4, /* c_size_fixed_part */ 1195 0, /* c_size_variable_part */ 1196 }; 1197 1198 1199 /* 1200 * */ 1201 int 1202 ndr__netdfs_enum_info_u (struct ndr_reference *encl_ref) 1203 { 1204 union netdfs_enum_info_u *val = (union netdfs_enum_info_u *) encl_ref->datum; 1205 struct ndr_reference myref; 1206 1207 (void) bzero(&myref, sizeof (myref)); 1208 myref.enclosing = encl_ref; 1209 myref.stream = encl_ref->stream; 1210 1211 switch (encl_ref->switch_is) { 1212 case 1: 1213 NDR_MEMBER_PTR (_netdfs_array1, info1, 0UL); 1214 break; 1215 1216 case 2: 1217 NDR_MEMBER_PTR (_netdfs_array2, info2, 0UL); 1218 break; 1219 1220 case 3: 1221 NDR_MEMBER_PTR (_netdfs_array3, info3, 0UL); 1222 break; 1223 1224 case 4: 1225 NDR_MEMBER_PTR (_netdfs_array4, info4, 0UL); 1226 break; 1227 1228 case 5: 1229 NDR_MEMBER_PTR (_netdfs_array5, info5, 0UL); 1230 break; 1231 1232 case 6: 1233 NDR_MEMBER_PTR (_netdfs_array6, info6, 0UL); 1234 break; 1235 1236 case 200: 1237 NDR_MEMBER_PTR (_netdfs_array200, info200, 0UL); 1238 break; 1239 1240 case 300: 1241 NDR_MEMBER_PTR (_netdfs_array300, info300, 0UL); 1242 break; 1243 1244 default: 1245 NDR_MEMBER_PTR (_char, nullptr, 0UL); 1246 break; 1247 1248 } 1249 1250 1251 return 1; 1252 } 1253 1254 1255 1256 int ndr__netdfs_enum_info (struct ndr_reference *encl_ref); 1257 struct ndr_typeinfo ndt__netdfs_enum_info = { 1258 1, /* NDR version */ 1259 3, /* alignment */ 1260 NDR_F_STRUCT, /* flags */ 1261 ndr__netdfs_enum_info, /* ndr_func */ 1262 12, /* pdu_size_fixed_part */ 1263 0, /* pdu_size_variable_part */ 1264 12, /* c_size_fixed_part */ 1265 0, /* c_size_variable_part */ 1266 }; 1267 1268 1269 /* 1270 * */ 1271 int 1272 ndr__netdfs_enum_info (struct ndr_reference *encl_ref) 1273 { 1274 struct netdfs_enum_info *val = (struct netdfs_enum_info *) encl_ref->datum; 1275 struct ndr_reference myref; 1276 1277 (void) bzero(&myref, sizeof (myref)); 1278 myref.enclosing = encl_ref; 1279 myref.stream = encl_ref->stream; 1280 1281 /* do all basic elements first */ 1282 NDR_MEMBER (_ulong, level, 0UL); 1283 NDR_MEMBER (_ulong, switch_value, 4UL); 1284 1285 /* do all constructed elements w/o pointers */ 1286 1287 /* do members with pointers in order */ 1288 NDR_MEMBER_WITH_SWITCH_IS (_netdfs_enum_info_u, iu, 8UL, 1289 val->switch_value); 1290 1291 return 1; 1292 } 1293 1294 1295 1296 int ndr__netdfs_getver (struct ndr_reference *encl_ref); 1297 struct ndr_typeinfo ndt__netdfs_getver = { 1298 1, /* NDR version */ 1299 3, /* alignment */ 1300 NDR_F_OPERATION, /* flags */ 1301 ndr__netdfs_getver, /* ndr_func */ 1302 4, /* pdu_size_fixed_part */ 1303 0, /* pdu_size_variable_part */ 1304 4, /* c_size_fixed_part */ 1305 0, /* c_size_variable_part */ 1306 }; 1307 1308 1309 /* 1310 * [operation(0)] 1311 */ 1312 int 1313 ndr__netdfs_getver (struct ndr_reference *encl_ref) 1314 { 1315 struct netdfs_getver *val = (struct netdfs_getver *) encl_ref->datum; 1316 struct ndr_reference myref; 1317 1318 (void) bzero(&myref, sizeof (myref)); 1319 myref.enclosing = encl_ref; 1320 myref.stream = encl_ref->stream; 1321 1322 /* do all members in order */ 1323 if (NDR_DIR_IS_OUT) { 1324 NDR_TOPMOST_MEMBER (_ulong, version); 1325 } 1326 1327 return 1; 1328 } 1329 1330 1331 1332 int ndr__netdfs_add (struct ndr_reference *encl_ref); 1333 struct ndr_typeinfo ndt__netdfs_add = { 1334 1, /* NDR version */ 1335 3, /* alignment */ 1336 NDR_F_OPERATION, /* flags */ 1337 ndr__netdfs_add, /* ndr_func */ 1338 24, /* pdu_size_fixed_part */ 1339 0, /* pdu_size_variable_part */ 1340 24, /* c_size_fixed_part */ 1341 0, /* c_size_variable_part */ 1342 }; 1343 1344 1345 /* 1346 * [operation(1)] 1347 */ 1348 int 1349 ndr__netdfs_add (struct ndr_reference *encl_ref) 1350 { 1351 struct netdfs_add *val = (struct netdfs_add *) encl_ref->datum; 1352 struct ndr_reference myref; 1353 1354 (void) bzero(&myref, sizeof (myref)); 1355 myref.enclosing = encl_ref; 1356 myref.stream = encl_ref->stream; 1357 1358 /* do all members in order */ 1359 if (NDR_DIR_IS_IN) { 1360 NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); 1361 } 1362 if (NDR_DIR_IS_IN) { 1363 NDR_TOPMOST_MEMBER_REF (s_wchar, server); 1364 } 1365 if (NDR_DIR_IS_IN) { 1366 NDR_TOPMOST_MEMBER_PTR (s_wchar, share); 1367 } 1368 if (NDR_DIR_IS_IN) { 1369 NDR_TOPMOST_MEMBER_PTR (s_wchar, comment); 1370 } 1371 if (NDR_DIR_IS_IN) { 1372 NDR_TOPMOST_MEMBER (_ulong, flags); 1373 } 1374 if (NDR_DIR_IS_OUT) { 1375 NDR_TOPMOST_MEMBER (_ulong, status); 1376 } 1377 1378 return 1; 1379 } 1380 1381 1382 1383 int ndr__netdfs_remove (struct ndr_reference *encl_ref); 1384 struct ndr_typeinfo ndt__netdfs_remove = { 1385 1, /* NDR version */ 1386 3, /* alignment */ 1387 NDR_F_OPERATION, /* flags */ 1388 ndr__netdfs_remove, /* ndr_func */ 1389 16, /* pdu_size_fixed_part */ 1390 0, /* pdu_size_variable_part */ 1391 16, /* c_size_fixed_part */ 1392 0, /* c_size_variable_part */ 1393 }; 1394 1395 1396 /* 1397 * [operation(2)] 1398 */ 1399 int 1400 ndr__netdfs_remove (struct ndr_reference *encl_ref) 1401 { 1402 struct netdfs_remove *val = (struct netdfs_remove *) encl_ref->datum; 1403 struct ndr_reference myref; 1404 1405 (void) bzero(&myref, sizeof (myref)); 1406 myref.enclosing = encl_ref; 1407 myref.stream = encl_ref->stream; 1408 1409 /* do all members in order */ 1410 if (NDR_DIR_IS_IN) { 1411 NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); 1412 } 1413 if (NDR_DIR_IS_IN) { 1414 NDR_TOPMOST_MEMBER_PTR (s_wchar, server); 1415 } 1416 if (NDR_DIR_IS_IN) { 1417 NDR_TOPMOST_MEMBER_PTR (s_wchar, share); 1418 } 1419 if (NDR_DIR_IS_OUT) { 1420 NDR_TOPMOST_MEMBER (_ulong, status); 1421 } 1422 1423 return 1; 1424 } 1425 1426 1427 1428 int ndr__netdfs_setinfo (struct ndr_reference *encl_ref); 1429 struct ndr_typeinfo ndt__netdfs_setinfo = { 1430 1, /* NDR version */ 1431 3, /* alignment */ 1432 NDR_F_OPERATION, /* flags */ 1433 ndr__netdfs_setinfo, /* ndr_func */ 1434 28, /* pdu_size_fixed_part */ 1435 0, /* pdu_size_variable_part */ 1436 28, /* c_size_fixed_part */ 1437 0, /* c_size_variable_part */ 1438 }; 1439 1440 1441 /* 1442 * [operation(3)] 1443 */ 1444 int 1445 ndr__netdfs_setinfo (struct ndr_reference *encl_ref) 1446 { 1447 struct netdfs_setinfo *val = (struct netdfs_setinfo *) encl_ref->datum; 1448 struct ndr_reference myref; 1449 1450 (void) bzero(&myref, sizeof (myref)); 1451 myref.enclosing = encl_ref; 1452 myref.stream = encl_ref->stream; 1453 1454 /* do all members in order */ 1455 if (NDR_DIR_IS_IN) { 1456 NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); 1457 } 1458 if (NDR_DIR_IS_IN) { 1459 NDR_TOPMOST_MEMBER_PTR (s_wchar, server); 1460 } 1461 if (NDR_DIR_IS_IN) { 1462 NDR_TOPMOST_MEMBER_PTR (s_wchar, share); 1463 } 1464 if (NDR_DIR_IS_IN) { 1465 NDR_TOPMOST_MEMBER (_ulong, level); 1466 } 1467 if (NDR_DIR_IS_IN) { 1468 NDR_TOPMOST_MEMBER (_netdfs_info, info); 1469 } 1470 if (NDR_DIR_IS_OUT) { 1471 NDR_TOPMOST_MEMBER (_ulong, status); 1472 } 1473 1474 return 1; 1475 } 1476 1477 1478 1479 int ndr__netdfs_getinfo (struct ndr_reference *encl_ref); 1480 struct ndr_typeinfo ndt__netdfs_getinfo = { 1481 1, /* NDR version */ 1482 3, /* alignment */ 1483 NDR_F_OPERATION, /* flags */ 1484 ndr__netdfs_getinfo, /* ndr_func */ 1485 28, /* pdu_size_fixed_part */ 1486 0, /* pdu_size_variable_part */ 1487 28, /* c_size_fixed_part */ 1488 0, /* c_size_variable_part */ 1489 }; 1490 1491 1492 /* 1493 * [operation(4)] 1494 */ 1495 int 1496 ndr__netdfs_getinfo (struct ndr_reference *encl_ref) 1497 { 1498 struct netdfs_getinfo *val = (struct netdfs_getinfo *) encl_ref->datum; 1499 struct ndr_reference myref; 1500 1501 (void) bzero(&myref, sizeof (myref)); 1502 myref.enclosing = encl_ref; 1503 myref.stream = encl_ref->stream; 1504 1505 /* do all members in order */ 1506 if (NDR_DIR_IS_IN) { 1507 NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); 1508 } 1509 if (NDR_DIR_IS_IN) { 1510 NDR_TOPMOST_MEMBER_PTR (s_wchar, server); 1511 } 1512 if (NDR_DIR_IS_IN) { 1513 NDR_TOPMOST_MEMBER_PTR (s_wchar, share); 1514 } 1515 if (NDR_DIR_IS_IN) { 1516 NDR_TOPMOST_MEMBER (_ulong, level); 1517 } 1518 if (NDR_DIR_IS_OUT) { 1519 NDR_TOPMOST_MEMBER (_netdfs_info, info); 1520 } 1521 if (NDR_DIR_IS_OUT) { 1522 NDR_TOPMOST_MEMBER (_ulong, status); 1523 } 1524 1525 return 1; 1526 } 1527 1528 1529 1530 int ndr__netdfs_enum (struct ndr_reference *encl_ref); 1531 struct ndr_typeinfo ndt__netdfs_enum = { 1532 1, /* NDR version */ 1533 3, /* alignment */ 1534 NDR_F_OPERATION, /* flags */ 1535 ndr__netdfs_enum, /* ndr_func */ 1536 20, /* pdu_size_fixed_part */ 1537 0, /* pdu_size_variable_part */ 1538 20, /* c_size_fixed_part */ 1539 0, /* c_size_variable_part */ 1540 }; 1541 1542 1543 /* 1544 * [operation(5)] 1545 */ 1546 int 1547 ndr__netdfs_enum (struct ndr_reference *encl_ref) 1548 { 1549 struct netdfs_enum *val = (struct netdfs_enum *) encl_ref->datum; 1550 struct ndr_reference myref; 1551 1552 (void) bzero(&myref, sizeof (myref)); 1553 myref.enclosing = encl_ref; 1554 myref.stream = encl_ref->stream; 1555 1556 /* do all members in order */ 1557 if (NDR_DIR_IS_IN) { 1558 NDR_TOPMOST_MEMBER (_ulong, level); 1559 } 1560 if (NDR_DIR_IS_IN) { 1561 NDR_TOPMOST_MEMBER (_ulong, pref_max_len); 1562 } 1563 NDR_TOPMOST_MEMBER_PTR (_netdfs_enum_info, info); 1564 NDR_TOPMOST_MEMBER_PTR (_ulong, resume_handle); 1565 if (NDR_DIR_IS_OUT) { 1566 NDR_TOPMOST_MEMBER (_ulong, status); 1567 } 1568 1569 return 1; 1570 } 1571 1572 1573 1574 int ndr__netdfs_rename (struct ndr_reference *encl_ref); 1575 struct ndr_typeinfo ndt__netdfs_rename = { 1576 1, /* NDR version */ 1577 3, /* alignment */ 1578 NDR_F_OPERATION, /* flags */ 1579 ndr__netdfs_rename, /* ndr_func */ 1580 12, /* pdu_size_fixed_part */ 1581 0, /* pdu_size_variable_part */ 1582 12, /* c_size_fixed_part */ 1583 0, /* c_size_variable_part */ 1584 }; 1585 1586 1587 /* 1588 * [operation(7)] 1589 */ 1590 int 1591 ndr__netdfs_rename (struct ndr_reference *encl_ref) 1592 { 1593 struct netdfs_rename *val = (struct netdfs_rename *) encl_ref->datum; 1594 struct ndr_reference myref; 1595 1596 (void) bzero(&myref, sizeof (myref)); 1597 myref.enclosing = encl_ref; 1598 myref.stream = encl_ref->stream; 1599 1600 /* do all members in order */ 1601 if (NDR_DIR_IS_IN) { 1602 NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); 1603 } 1604 if (NDR_DIR_IS_IN) { 1605 NDR_TOPMOST_MEMBER_REF (s_wchar, new_path); 1606 } 1607 if (NDR_DIR_IS_OUT) { 1608 NDR_TOPMOST_MEMBER (_ulong, status); 1609 } 1610 1611 return 1; 1612 } 1613 1614 1615 1616 int ndr__netdfs_move (struct ndr_reference *encl_ref); 1617 struct ndr_typeinfo ndt__netdfs_move = { 1618 1, /* NDR version */ 1619 3, /* alignment */ 1620 NDR_F_OPERATION, /* flags */ 1621 ndr__netdfs_move, /* ndr_func */ 1622 16, /* pdu_size_fixed_part */ 1623 0, /* pdu_size_variable_part */ 1624 16, /* c_size_fixed_part */ 1625 0, /* c_size_variable_part */ 1626 }; 1627 1628 1629 /* 1630 * [operation(6)] 1631 */ 1632 int 1633 ndr__netdfs_move (struct ndr_reference *encl_ref) 1634 { 1635 struct netdfs_move *val = (struct netdfs_move *) encl_ref->datum; 1636 struct ndr_reference myref; 1637 1638 (void) bzero(&myref, sizeof (myref)); 1639 myref.enclosing = encl_ref; 1640 myref.stream = encl_ref->stream; 1641 1642 /* do all members in order */ 1643 if (NDR_DIR_IS_IN) { 1644 NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); 1645 } 1646 if (NDR_DIR_IS_IN) { 1647 NDR_TOPMOST_MEMBER_REF (s_wchar, new_path); 1648 } 1649 if (NDR_DIR_IS_IN) { 1650 NDR_TOPMOST_MEMBER (_ulong, flags); 1651 } 1652 if (NDR_DIR_IS_OUT) { 1653 NDR_TOPMOST_MEMBER (_ulong, status); 1654 } 1655 1656 return 1; 1657 } 1658 1659 1660 1661 int ndr__netdfs_addstdroot (struct ndr_reference *encl_ref); 1662 struct ndr_typeinfo ndt__netdfs_addstdroot = { 1663 1, /* NDR version */ 1664 3, /* alignment */ 1665 NDR_F_OPERATION, /* flags */ 1666 ndr__netdfs_addstdroot, /* ndr_func */ 1667 20, /* pdu_size_fixed_part */ 1668 0, /* pdu_size_variable_part */ 1669 20, /* c_size_fixed_part */ 1670 0, /* c_size_variable_part */ 1671 }; 1672 1673 1674 /* 1675 * [operation(12)] 1676 */ 1677 int 1678 ndr__netdfs_addstdroot (struct ndr_reference *encl_ref) 1679 { 1680 struct netdfs_addstdroot *val = (struct netdfs_addstdroot *) encl_ref->datum; 1681 struct ndr_reference myref; 1682 1683 (void) bzero(&myref, sizeof (myref)); 1684 myref.enclosing = encl_ref; 1685 myref.stream = encl_ref->stream; 1686 1687 /* do all members in order */ 1688 if (NDR_DIR_IS_IN) { 1689 NDR_TOPMOST_MEMBER_REF (s_wchar, server); 1690 } 1691 if (NDR_DIR_IS_IN) { 1692 NDR_TOPMOST_MEMBER_REF (s_wchar, share); 1693 } 1694 if (NDR_DIR_IS_IN) { 1695 NDR_TOPMOST_MEMBER_REF (s_wchar, comment); 1696 } 1697 if (NDR_DIR_IS_IN) { 1698 NDR_TOPMOST_MEMBER (_ulong, flags); 1699 } 1700 if (NDR_DIR_IS_OUT) { 1701 NDR_TOPMOST_MEMBER (_ulong, status); 1702 } 1703 1704 return 1; 1705 } 1706 1707 1708 1709 int ndr__netdfs_remstdroot (struct ndr_reference *encl_ref); 1710 struct ndr_typeinfo ndt__netdfs_remstdroot = { 1711 1, /* NDR version */ 1712 3, /* alignment */ 1713 NDR_F_OPERATION, /* flags */ 1714 ndr__netdfs_remstdroot, /* ndr_func */ 1715 16, /* pdu_size_fixed_part */ 1716 0, /* pdu_size_variable_part */ 1717 16, /* c_size_fixed_part */ 1718 0, /* c_size_variable_part */ 1719 }; 1720 1721 1722 /* 1723 * [operation(13)] 1724 */ 1725 int 1726 ndr__netdfs_remstdroot (struct ndr_reference *encl_ref) 1727 { 1728 struct netdfs_remstdroot *val = (struct netdfs_remstdroot *) encl_ref->datum; 1729 struct ndr_reference myref; 1730 1731 (void) bzero(&myref, sizeof (myref)); 1732 myref.enclosing = encl_ref; 1733 myref.stream = encl_ref->stream; 1734 1735 /* do all members in order */ 1736 if (NDR_DIR_IS_IN) { 1737 NDR_TOPMOST_MEMBER_REF (s_wchar, server); 1738 } 1739 if (NDR_DIR_IS_IN) { 1740 NDR_TOPMOST_MEMBER_REF (s_wchar, share); 1741 } 1742 if (NDR_DIR_IS_IN) { 1743 NDR_TOPMOST_MEMBER (_ulong, flags); 1744 } 1745 if (NDR_DIR_IS_OUT) { 1746 NDR_TOPMOST_MEMBER (_ulong, status); 1747 } 1748 1749 return 1; 1750 } 1751 1752 1753 1754 int ndr__netdfs_enumex (struct ndr_reference *encl_ref); 1755 struct ndr_typeinfo ndt__netdfs_enumex = { 1756 1, /* NDR version */ 1757 3, /* alignment */ 1758 NDR_F_OPERATION, /* flags */ 1759 ndr__netdfs_enumex, /* ndr_func */ 1760 24, /* pdu_size_fixed_part */ 1761 0, /* pdu_size_variable_part */ 1762 24, /* c_size_fixed_part */ 1763 0, /* c_size_variable_part */ 1764 }; 1765 1766 1767 /* 1768 * [operation(21)] 1769 */ 1770 int 1771 ndr__netdfs_enumex (struct ndr_reference *encl_ref) 1772 { 1773 struct netdfs_enumex *val = (struct netdfs_enumex *) encl_ref->datum; 1774 struct ndr_reference myref; 1775 1776 (void) bzero(&myref, sizeof (myref)); 1777 myref.enclosing = encl_ref; 1778 myref.stream = encl_ref->stream; 1779 1780 /* do all members in order */ 1781 if (NDR_DIR_IS_IN) { 1782 NDR_TOPMOST_MEMBER_REF (s_wchar, dfs_path); 1783 } 1784 if (NDR_DIR_IS_IN) { 1785 NDR_TOPMOST_MEMBER (_ulong, level); 1786 } 1787 if (NDR_DIR_IS_IN) { 1788 NDR_TOPMOST_MEMBER (_ulong, pref_max_len); 1789 } 1790 NDR_TOPMOST_MEMBER_PTR (_netdfs_enum_info, info); 1791 NDR_TOPMOST_MEMBER_PTR (_ulong, resume_handle); 1792 if (NDR_DIR_IS_OUT) { 1793 NDR_TOPMOST_MEMBER (_ulong, status); 1794 } 1795 1796 return 1; 1797 } 1798 1799 1800 1801 int ndr__netdfs_interface (struct ndr_reference *encl_ref); 1802 struct ndr_typeinfo ndt__netdfs_interface = { 1803 1, /* NDR version */ 1804 3, /* alignment */ 1805 NDR_F_INTERFACE, /* flags */ 1806 ndr__netdfs_interface, /* ndr_func */ 1807 28, /* pdu_size_fixed_part */ 1808 0, /* pdu_size_variable_part */ 1809 28, /* c_size_fixed_part */ 1810 0, /* c_size_variable_part */ 1811 }; 1812 1813 1814 /* 1815 * [interface(0)] 1816 */ 1817 int 1818 ndr__netdfs_interface (struct ndr_reference *encl_ref) 1819 { 1820 union netdfs_interface *val = (union netdfs_interface *) encl_ref->datum; 1821 struct ndr_reference myref; 1822 1823 (void) bzero(&myref, sizeof (myref)); 1824 myref.enclosing = encl_ref; 1825 myref.stream = encl_ref->stream; 1826 1827 switch (encl_ref->switch_is) { 1828 case 0: 1829 NDR_PARAMS_MEMBER (_netdfs_getver, netdfs_getver); 1830 break; 1831 1832 case 1: 1833 NDR_PARAMS_MEMBER (_netdfs_add, netdfs_add); 1834 break; 1835 1836 case 2: 1837 NDR_PARAMS_MEMBER (_netdfs_remove, netdfs_remove); 1838 break; 1839 1840 case 3: 1841 NDR_PARAMS_MEMBER (_netdfs_setinfo, netdfs_setinfo); 1842 break; 1843 1844 case 4: 1845 NDR_PARAMS_MEMBER (_netdfs_getinfo, netdfs_getinfo); 1846 break; 1847 1848 case 5: 1849 NDR_PARAMS_MEMBER (_netdfs_enum, netdfs_enum); 1850 break; 1851 1852 case 6: 1853 NDR_PARAMS_MEMBER (_netdfs_move, netdfs_move); 1854 break; 1855 1856 case 7: 1857 NDR_PARAMS_MEMBER (_netdfs_rename, netdfs_rename); 1858 break; 1859 1860 case 12: 1861 NDR_PARAMS_MEMBER (_netdfs_addstdroot, netdfs_addstdroot); 1862 break; 1863 1864 case 13: 1865 NDR_PARAMS_MEMBER (_netdfs_remstdroot, netdfs_remstdroot); 1866 break; 1867 1868 case 21: 1869 NDR_PARAMS_MEMBER (_netdfs_enumex, netdfs_enumex); 1870 break; 1871 1872 default: 1873 NDR_SET_ERROR(encl_ref, NDR_ERR_SWITCH_VALUE_INVALID); 1874 return 0; 1875 break; 1876 } 1877 1878 1879 return 1; 1880 } 1881