LCOV - code coverage report
Current view: top level - bin/default/source4/librpc/gen_ndr - ndr_winsif.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 0 2112 0.0 %
Date: 2024-04-21 15:09:00 Functions: 0 132 0.0 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/source4/librpc/gen_ndr/ndr_winsif.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_nbt.h"
       7           0 : static enum ndr_err_code ndr_push_winsif_Address(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_Address *r)
       8             : {
       9           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      10           0 :         if (ndr_flags & NDR_SCALARS) {
      11           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      12           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->type));
      13           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->length));
      14           0 :                 NDR_CHECK(ndr_push_ipv4address(ndr, NDR_SCALARS, r->addr));
      15           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      16             :         }
      17           0 :         if (ndr_flags & NDR_BUFFERS) {
      18           0 :         }
      19           0 :         return NDR_ERR_SUCCESS;
      20             : }
      21             : 
      22           0 : static enum ndr_err_code ndr_pull_winsif_Address(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_Address *r)
      23             : {
      24           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      25           0 :         if (ndr_flags & NDR_SCALARS) {
      26           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      27           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->type));
      28           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->length));
      29           0 :                 NDR_CHECK(ndr_pull_ipv4address(ndr, NDR_SCALARS, &r->addr));
      30           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      31             :         }
      32           0 :         if (ndr_flags & NDR_BUFFERS) {
      33           0 :         }
      34           0 :         return NDR_ERR_SUCCESS;
      35             : }
      36             : 
      37           0 : _PUBLIC_ void ndr_print_winsif_Address(struct ndr_print *ndr, const char *name, const struct winsif_Address *r)
      38             : {
      39           0 :         ndr_print_struct(ndr, name, "winsif_Address");
      40           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      41           0 :         ndr->depth++;
      42           0 :         ndr_print_uint8(ndr, "type", r->type);
      43           0 :         ndr_print_uint32(ndr, "length", r->length);
      44           0 :         ndr_print_ipv4address(ndr, "addr", r->addr);
      45           0 :         ndr->depth--;
      46             : }
      47             : 
      48           0 : static enum ndr_err_code ndr_push_winsif_Action(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum winsif_Action r)
      49             : {
      50           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
      51           0 :         return NDR_ERR_SUCCESS;
      52             : }
      53             : 
      54           0 : static enum ndr_err_code ndr_pull_winsif_Action(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum winsif_Action *r)
      55             : {
      56           0 :         uint16_t v;
      57           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
      58           0 :         *r = v;
      59           0 :         return NDR_ERR_SUCCESS;
      60             : }
      61             : 
      62           0 : _PUBLIC_ void ndr_print_winsif_Action(struct ndr_print *ndr, const char *name, enum winsif_Action r)
      63             : {
      64           0 :         const char *val = NULL;
      65             : 
      66           0 :         switch (r) {
      67           0 :                 case WINSIF_ACTION_INSERT: val = "WINSIF_ACTION_INSERT"; break;
      68           0 :                 case WINSIF_ACTION_DELETE: val = "WINSIF_ACTION_DELETE"; break;
      69           0 :                 case WINSIF_ACTION_RELEASE: val = "WINSIF_ACTION_RELEASE"; break;
      70           0 :                 case WINSIF_ACTION_MODIFY: val = "WINSIF_ACTION_MODIFY"; break;
      71           0 :                 case WINSIF_ACTION_QUERY: val = "WINSIF_ACTION_QUERY"; break;
      72             :         }
      73           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
      74           0 : }
      75             : 
      76           0 : static enum ndr_err_code ndr_push_winsif_RecordType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum winsif_RecordType r)
      77             : {
      78           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
      79           0 :         return NDR_ERR_SUCCESS;
      80             : }
      81             : 
      82           0 : static enum ndr_err_code ndr_pull_winsif_RecordType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum winsif_RecordType *r)
      83             : {
      84           0 :         uint16_t v;
      85           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
      86           0 :         *r = v;
      87           0 :         return NDR_ERR_SUCCESS;
      88             : }
      89             : 
      90           0 : _PUBLIC_ void ndr_print_winsif_RecordType(struct ndr_print *ndr, const char *name, enum winsif_RecordType r)
      91             : {
      92           0 :         const char *val = NULL;
      93             : 
      94           0 :         switch (r) {
      95           0 :                 case WINSIF_RECORD_UNIQUE_NAME: val = "WINSIF_RECORD_UNIQUE_NAME"; break;
      96           0 :                 case WINSIF_RECORD_GROUP_NAME: val = "WINSIF_RECORD_GROUP_NAME"; break;
      97           0 :                 case WINSIF_RECORD_SGROUP_NAME: val = "WINSIF_RECORD_SGROUP_NAME"; break;
      98           0 :                 case WINSIF_RECORD_MHOMED_NAME: val = "WINSIF_RECORD_MHOMED_NAME"; break;
      99             :         }
     100           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     101           0 : }
     102             : 
     103           0 : static enum ndr_err_code ndr_push_winsif_NodeType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum winsif_NodeType r)
     104             : {
     105           0 :         NDR_CHECK(ndr_push_enum_uint8(ndr, NDR_SCALARS, r));
     106           0 :         return NDR_ERR_SUCCESS;
     107             : }
     108             : 
     109           0 : static enum ndr_err_code ndr_pull_winsif_NodeType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum winsif_NodeType *r)
     110             : {
     111           0 :         uint8_t v;
     112           0 :         NDR_CHECK(ndr_pull_enum_uint8(ndr, NDR_SCALARS, &v));
     113           0 :         *r = v;
     114           0 :         return NDR_ERR_SUCCESS;
     115             : }
     116             : 
     117           0 : _PUBLIC_ void ndr_print_winsif_NodeType(struct ndr_print *ndr, const char *name, enum winsif_NodeType r)
     118             : {
     119           0 :         const char *val = NULL;
     120             : 
     121           0 :         switch (r) {
     122           0 :                 case WINSIF_NODE_B: val = "WINSIF_NODE_B"; break;
     123           0 :                 case WINSIF_NODE_P: val = "WINSIF_NODE_P"; break;
     124           0 :                 case WINSIF_NODE_H: val = "WINSIF_NODE_H"; break;
     125             :         }
     126           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     127           0 : }
     128             : 
     129           0 : static enum ndr_err_code ndr_push_winsif_RecordState(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum winsif_RecordState r)
     130             : {
     131           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     132           0 :         return NDR_ERR_SUCCESS;
     133             : }
     134             : 
     135           0 : static enum ndr_err_code ndr_pull_winsif_RecordState(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum winsif_RecordState *r)
     136             : {
     137           0 :         uint32_t v;
     138           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     139           0 :         *r = v;
     140           0 :         return NDR_ERR_SUCCESS;
     141             : }
     142             : 
     143           0 : _PUBLIC_ void ndr_print_winsif_RecordState(struct ndr_print *ndr, const char *name, enum winsif_RecordState r)
     144             : {
     145           0 :         const char *val = NULL;
     146             : 
     147           0 :         switch (r) {
     148           0 :                 case WINSIF_RECORD_ACTIVE: val = "WINSIF_RECORD_ACTIVE"; break;
     149           0 :                 case WINSIF_RECORD_RELEASED: val = "WINSIF_RECORD_RELEASED"; break;
     150           0 :                 case WINSIF_RECORD_TOMBSTONE: val = "WINSIF_RECORD_TOMBSTONE"; break;
     151           0 :                 case WINSIF_RECORD_DELETED: val = "WINSIF_RECORD_DELETED"; break;
     152             :         }
     153           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     154           0 : }
     155             : 
     156           0 : static enum ndr_err_code ndr_push_winsif_RecordAction(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_RecordAction *r)
     157             : {
     158           0 :         uint32_t cntr_addresses_1;
     159           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     160           0 :         if (ndr_flags & NDR_SCALARS) {
     161           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     162           0 :                 NDR_CHECK(ndr_push_winsif_Action(ndr, NDR_SCALARS, r->cmd));
     163           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->name));
     164           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->name?16:0));
     165           0 :                 NDR_CHECK(ndr_push_winsif_RecordType(ndr, NDR_SCALARS, r->record_type));
     166           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_of_addresses));
     167           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->addresses));
     168           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, &r->address));
     169           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->version_number));
     170           0 :                 NDR_CHECK(ndr_push_winsif_NodeType(ndr, NDR_SCALARS, r->node_type));
     171           0 :                 NDR_CHECK(ndr_push_ipv4address(ndr, NDR_SCALARS, r->owner_address));
     172           0 :                 NDR_CHECK(ndr_push_winsif_RecordState(ndr, NDR_SCALARS, r->record_state));
     173           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->is_static));
     174           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->expire_time));
     175           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     176             :         }
     177           0 :         if (ndr_flags & NDR_BUFFERS) {
     178           0 :                 if (r->name) {
     179           0 :                         NDR_CHECK(ndr_push_wrepl_nbt_name(ndr, NDR_SCALARS, r->name));
     180             :                 }
     181           0 :                 if (r->addresses) {
     182           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_of_addresses));
     183           0 :                         for (cntr_addresses_1 = 0; cntr_addresses_1 < (r->num_of_addresses); cntr_addresses_1++) {
     184           0 :                                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, &r->addresses[cntr_addresses_1]));
     185             :                         }
     186             :                 }
     187             :         }
     188           0 :         return NDR_ERR_SUCCESS;
     189             : }
     190             : 
     191           0 : static enum ndr_err_code ndr_pull_winsif_RecordAction(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_RecordAction *r)
     192             : {
     193           0 :         uint32_t _ptr_name;
     194           0 :         TALLOC_CTX *_mem_save_name_0 = NULL;
     195           0 :         uint32_t _ptr_addresses;
     196           0 :         uint32_t size_addresses_1 = 0;
     197           0 :         uint32_t cntr_addresses_1;
     198           0 :         TALLOC_CTX *_mem_save_addresses_0 = NULL;
     199           0 :         TALLOC_CTX *_mem_save_addresses_1 = NULL;
     200           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     201           0 :         if (ndr_flags & NDR_SCALARS) {
     202           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     203           0 :                 NDR_CHECK(ndr_pull_winsif_Action(ndr, NDR_SCALARS, &r->cmd));
     204           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_name));
     205           0 :                 if (_ptr_name) {
     206           0 :                         NDR_PULL_ALLOC(ndr, r->name);
     207             :                 } else {
     208           0 :                         r->name = NULL;
     209             :                 }
     210           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->name_len));
     211           0 :                 NDR_CHECK(ndr_pull_winsif_RecordType(ndr, NDR_SCALARS, &r->record_type));
     212           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_of_addresses));
     213           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_addresses));
     214           0 :                 if (_ptr_addresses) {
     215           0 :                         NDR_PULL_ALLOC(ndr, r->addresses);
     216             :                 } else {
     217           0 :                         r->addresses = NULL;
     218             :                 }
     219           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, &r->address));
     220           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->version_number));
     221           0 :                 NDR_CHECK(ndr_pull_winsif_NodeType(ndr, NDR_SCALARS, &r->node_type));
     222           0 :                 NDR_CHECK(ndr_pull_ipv4address(ndr, NDR_SCALARS, &r->owner_address));
     223           0 :                 NDR_CHECK(ndr_pull_winsif_RecordState(ndr, NDR_SCALARS, &r->record_state));
     224           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->is_static));
     225           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->expire_time));
     226           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     227             :         }
     228           0 :         if (ndr_flags & NDR_BUFFERS) {
     229           0 :                 if (r->name) {
     230           0 :                         _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
     231           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->name, 0);
     232           0 :                         NDR_CHECK(ndr_pull_wrepl_nbt_name(ndr, NDR_SCALARS, &r->name));
     233           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, 0);
     234             :                 }
     235           0 :                 if (r->addresses) {
     236           0 :                         _mem_save_addresses_0 = NDR_PULL_GET_MEM_CTX(ndr);
     237           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->addresses, 0);
     238           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->addresses));
     239           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->addresses, &size_addresses_1));
     240           0 :                         NDR_PULL_ALLOC_N(ndr, r->addresses, size_addresses_1);
     241           0 :                         _mem_save_addresses_1 = NDR_PULL_GET_MEM_CTX(ndr);
     242           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->addresses, 0);
     243           0 :                         for (cntr_addresses_1 = 0; cntr_addresses_1 < (size_addresses_1); cntr_addresses_1++) {
     244           0 :                                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, &r->addresses[cntr_addresses_1]));
     245             :                         }
     246           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_addresses_1, 0);
     247           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_addresses_0, 0);
     248             :                 }
     249           0 :                 if (r->addresses) {
     250           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->addresses, r->num_of_addresses));
     251             :                 }
     252             :         }
     253           0 :         return NDR_ERR_SUCCESS;
     254             : }
     255             : 
     256           0 : _PUBLIC_ void ndr_print_winsif_RecordAction(struct ndr_print *ndr, const char *name, const struct winsif_RecordAction *r)
     257             : {
     258           0 :         uint32_t cntr_addresses_1;
     259           0 :         ndr_print_struct(ndr, name, "winsif_RecordAction");
     260           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     261           0 :         ndr->depth++;
     262           0 :         ndr_print_winsif_Action(ndr, "cmd", r->cmd);
     263           0 :         ndr_print_ptr(ndr, "name", r->name);
     264           0 :         ndr->depth++;
     265           0 :         if (r->name) {
     266           0 :                 ndr_print_wrepl_nbt_name(ndr, "name", r->name);
     267             :         }
     268           0 :         ndr->depth--;
     269           0 :         ndr_print_uint32(ndr, "name_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?r->name?16:0:r->name_len);
     270           0 :         ndr_print_winsif_RecordType(ndr, "record_type", r->record_type);
     271           0 :         ndr_print_uint32(ndr, "num_of_addresses", r->num_of_addresses);
     272           0 :         ndr_print_ptr(ndr, "addresses", r->addresses);
     273           0 :         ndr->depth++;
     274           0 :         if (r->addresses) {
     275           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "addresses", (uint32_t)(r->num_of_addresses));
     276           0 :                 ndr->depth++;
     277           0 :                 for (cntr_addresses_1 = 0; cntr_addresses_1 < (r->num_of_addresses); cntr_addresses_1++) {
     278           0 :                         ndr_print_winsif_Address(ndr, "addresses", &r->addresses[cntr_addresses_1]);
     279             :                 }
     280           0 :                 ndr->depth--;
     281             :         }
     282           0 :         ndr->depth--;
     283           0 :         ndr_print_winsif_Address(ndr, "address", &r->address);
     284           0 :         ndr_print_hyper(ndr, "version_number", r->version_number);
     285           0 :         ndr_print_winsif_NodeType(ndr, "node_type", r->node_type);
     286           0 :         ndr_print_ipv4address(ndr, "owner_address", r->owner_address);
     287           0 :         ndr_print_winsif_RecordState(ndr, "record_state", r->record_state);
     288           0 :         ndr_print_uint32(ndr, "is_static", r->is_static);
     289           0 :         ndr_print_time_t(ndr, "expire_time", r->expire_time);
     290           0 :         ndr->depth--;
     291             : }
     292             : 
     293           0 : static enum ndr_err_code ndr_push_winsif_AddressVersionMap(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_AddressVersionMap *r)
     294             : {
     295           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     296           0 :         if (ndr_flags & NDR_SCALARS) {
     297           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     298           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, &r->address));
     299           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->version_number));
     300           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     301             :         }
     302           0 :         if (ndr_flags & NDR_BUFFERS) {
     303           0 :         }
     304           0 :         return NDR_ERR_SUCCESS;
     305             : }
     306             : 
     307           0 : static enum ndr_err_code ndr_pull_winsif_AddressVersionMap(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_AddressVersionMap *r)
     308             : {
     309           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     310           0 :         if (ndr_flags & NDR_SCALARS) {
     311           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     312           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, &r->address));
     313           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->version_number));
     314           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     315             :         }
     316           0 :         if (ndr_flags & NDR_BUFFERS) {
     317           0 :         }
     318           0 :         return NDR_ERR_SUCCESS;
     319             : }
     320             : 
     321           0 : _PUBLIC_ void ndr_print_winsif_AddressVersionMap(struct ndr_print *ndr, const char *name, const struct winsif_AddressVersionMap *r)
     322             : {
     323           0 :         ndr_print_struct(ndr, name, "winsif_AddressVersionMap");
     324           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     325           0 :         ndr->depth++;
     326           0 :         ndr_print_winsif_Address(ndr, "address", &r->address);
     327           0 :         ndr_print_hyper(ndr, "version_number", r->version_number);
     328           0 :         ndr->depth--;
     329             : }
     330             : 
     331           0 : static enum ndr_err_code ndr_push_winsif_PriorityClass(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum winsif_PriorityClass r)
     332             : {
     333           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
     334           0 :         return NDR_ERR_SUCCESS;
     335             : }
     336             : 
     337           0 : static enum ndr_err_code ndr_pull_winsif_PriorityClass(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum winsif_PriorityClass *r)
     338             : {
     339           0 :         uint16_t v;
     340           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
     341           0 :         *r = v;
     342           0 :         return NDR_ERR_SUCCESS;
     343             : }
     344             : 
     345           0 : _PUBLIC_ void ndr_print_winsif_PriorityClass(struct ndr_print *ndr, const char *name, enum winsif_PriorityClass r)
     346             : {
     347           0 :         const char *val = NULL;
     348             : 
     349           0 :         switch (r) {
     350           0 :                 case WINSIF_PRIORITY_NORMAL: val = "WINSIF_PRIORITY_NORMAL"; break;
     351           0 :                 case WINSIF_PRIORITY_HIGH: val = "WINSIF_PRIORITY_HIGH"; break;
     352             :         }
     353           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     354           0 : }
     355             : 
     356           0 : static enum ndr_err_code ndr_push_winsif_ReplCounter(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_ReplCounter *r)
     357             : {
     358           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     359           0 :         if (ndr_flags & NDR_SCALARS) {
     360           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     361           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, &r->address));
     362           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_replications));
     363           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_communication_failures));
     364           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     365             :         }
     366           0 :         if (ndr_flags & NDR_BUFFERS) {
     367           0 :         }
     368           0 :         return NDR_ERR_SUCCESS;
     369             : }
     370             : 
     371           0 : static enum ndr_err_code ndr_pull_winsif_ReplCounter(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_ReplCounter *r)
     372             : {
     373           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     374           0 :         if (ndr_flags & NDR_SCALARS) {
     375           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     376           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, &r->address));
     377           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_replications));
     378           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_communication_failures));
     379           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     380             :         }
     381           0 :         if (ndr_flags & NDR_BUFFERS) {
     382           0 :         }
     383           0 :         return NDR_ERR_SUCCESS;
     384             : }
     385             : 
     386           0 : _PUBLIC_ void ndr_print_winsif_ReplCounter(struct ndr_print *ndr, const char *name, const struct winsif_ReplCounter *r)
     387             : {
     388           0 :         ndr_print_struct(ndr, name, "winsif_ReplCounter");
     389           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     390           0 :         ndr->depth++;
     391           0 :         ndr_print_winsif_Address(ndr, "address", &r->address);
     392           0 :         ndr_print_uint32(ndr, "num_replications", r->num_replications);
     393           0 :         ndr_print_uint32(ndr, "num_communication_failures", r->num_communication_failures);
     394           0 :         ndr->depth--;
     395             : }
     396             : 
     397           0 : static enum ndr_err_code ndr_push_winsif_StatCounters(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_StatCounters *r)
     398             : {
     399           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     400           0 :         if (ndr_flags & NDR_SCALARS) {
     401           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     402           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_unique_registrations));
     403           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_group_registrations));
     404           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_queries));
     405           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_successful_queries));
     406           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_failed_queries));
     407           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_unique_refreshes));
     408           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_group_refreshes));
     409           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_releases));
     410           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_successful_releases));
     411           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_failed_releases));
     412           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_unique_conflicts));
     413           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_group_conflicts));
     414           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     415             :         }
     416           0 :         if (ndr_flags & NDR_BUFFERS) {
     417           0 :         }
     418           0 :         return NDR_ERR_SUCCESS;
     419             : }
     420             : 
     421           0 : static enum ndr_err_code ndr_pull_winsif_StatCounters(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_StatCounters *r)
     422             : {
     423           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     424           0 :         if (ndr_flags & NDR_SCALARS) {
     425           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     426           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_unique_registrations));
     427           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_group_registrations));
     428           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_queries));
     429           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_successful_queries));
     430           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_failed_queries));
     431           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_unique_refreshes));
     432           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_group_refreshes));
     433           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_releases));
     434           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_successful_releases));
     435           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_failed_releases));
     436           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_unique_conflicts));
     437           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_group_conflicts));
     438           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     439             :         }
     440           0 :         if (ndr_flags & NDR_BUFFERS) {
     441           0 :         }
     442           0 :         return NDR_ERR_SUCCESS;
     443             : }
     444             : 
     445           0 : _PUBLIC_ void ndr_print_winsif_StatCounters(struct ndr_print *ndr, const char *name, const struct winsif_StatCounters *r)
     446             : {
     447           0 :         ndr_print_struct(ndr, name, "winsif_StatCounters");
     448           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     449           0 :         ndr->depth++;
     450           0 :         ndr_print_uint32(ndr, "num_unique_registrations", r->num_unique_registrations);
     451           0 :         ndr_print_uint32(ndr, "num_group_registrations", r->num_group_registrations);
     452           0 :         ndr_print_uint32(ndr, "num_queries", r->num_queries);
     453           0 :         ndr_print_uint32(ndr, "num_successful_queries", r->num_successful_queries);
     454           0 :         ndr_print_uint32(ndr, "num_failed_queries", r->num_failed_queries);
     455           0 :         ndr_print_uint32(ndr, "num_unique_refreshes", r->num_unique_refreshes);
     456           0 :         ndr_print_uint32(ndr, "num_group_refreshes", r->num_group_refreshes);
     457           0 :         ndr_print_uint32(ndr, "num_releases", r->num_releases);
     458           0 :         ndr_print_uint32(ndr, "num_successful_releases", r->num_successful_releases);
     459           0 :         ndr_print_uint32(ndr, "num_failed_releases", r->num_failed_releases);
     460           0 :         ndr_print_uint32(ndr, "num_unique_conflicts", r->num_unique_conflicts);
     461           0 :         ndr_print_uint32(ndr, "num_group_conflicts", r->num_group_conflicts);
     462           0 :         ndr->depth--;
     463             : }
     464             : 
     465           0 : static enum ndr_err_code ndr_push_winsif_StatTimeStamps(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_StatTimeStamps *r)
     466             : {
     467           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     468           0 :         if (ndr_flags & NDR_SCALARS) {
     469           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     470           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->wins_start_time));
     471           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->last_periodic_scavenging));
     472           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->last_triggered_scavenging));
     473           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->last_tombstone_scavenging));
     474           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->last_verification_scavenging));
     475           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->last_periodic_pull_replication));
     476           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->last_triggered_pull_replication));
     477           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->ignore_last_ntrepl));
     478           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->ignore_last_actrepl));
     479           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->last_init_db));
     480           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->counter_reset));
     481           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     482             :         }
     483           0 :         if (ndr_flags & NDR_BUFFERS) {
     484           0 :         }
     485           0 :         return NDR_ERR_SUCCESS;
     486             : }
     487             : 
     488           0 : static enum ndr_err_code ndr_pull_winsif_StatTimeStamps(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_StatTimeStamps *r)
     489             : {
     490           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     491           0 :         if (ndr_flags & NDR_SCALARS) {
     492           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     493           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->wins_start_time));
     494           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->last_periodic_scavenging));
     495           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->last_triggered_scavenging));
     496           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->last_tombstone_scavenging));
     497           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->last_verification_scavenging));
     498           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->last_periodic_pull_replication));
     499           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->last_triggered_pull_replication));
     500           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->ignore_last_ntrepl));
     501           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->ignore_last_actrepl));
     502           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->last_init_db));
     503           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->counter_reset));
     504           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     505             :         }
     506           0 :         if (ndr_flags & NDR_BUFFERS) {
     507           0 :         }
     508           0 :         return NDR_ERR_SUCCESS;
     509             : }
     510             : 
     511           0 : _PUBLIC_ void ndr_print_winsif_StatTimeStamps(struct ndr_print *ndr, const char *name, const struct winsif_StatTimeStamps *r)
     512             : {
     513           0 :         ndr_print_struct(ndr, name, "winsif_StatTimeStamps");
     514           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     515           0 :         ndr->depth++;
     516           0 :         ndr_print_time_t(ndr, "wins_start_time", r->wins_start_time);
     517           0 :         ndr_print_time_t(ndr, "last_periodic_scavenging", r->last_periodic_scavenging);
     518           0 :         ndr_print_time_t(ndr, "last_triggered_scavenging", r->last_triggered_scavenging);
     519           0 :         ndr_print_time_t(ndr, "last_tombstone_scavenging", r->last_tombstone_scavenging);
     520           0 :         ndr_print_time_t(ndr, "last_verification_scavenging", r->last_verification_scavenging);
     521           0 :         ndr_print_time_t(ndr, "last_periodic_pull_replication", r->last_periodic_pull_replication);
     522           0 :         ndr_print_time_t(ndr, "last_triggered_pull_replication", r->last_triggered_pull_replication);
     523           0 :         ndr_print_time_t(ndr, "ignore_last_ntrepl", r->ignore_last_ntrepl);
     524           0 :         ndr_print_time_t(ndr, "ignore_last_actrepl", r->ignore_last_actrepl);
     525           0 :         ndr_print_time_t(ndr, "last_init_db", r->last_init_db);
     526           0 :         ndr_print_time_t(ndr, "counter_reset", r->counter_reset);
     527           0 :         ndr->depth--;
     528             : }
     529             : 
     530           0 : static enum ndr_err_code ndr_push_winsif_Stat(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_Stat *r)
     531             : {
     532           0 :         uint32_t cntr_partners_1;
     533           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     534           0 :         if (ndr_flags & NDR_SCALARS) {
     535           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     536           0 :                 NDR_CHECK(ndr_push_winsif_StatCounters(ndr, NDR_SCALARS, &r->counters));
     537           0 :                 NDR_CHECK(ndr_push_winsif_StatTimeStamps(ndr, NDR_SCALARS, &r->time_stamps));
     538           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_partners));
     539           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->partners));
     540           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     541             :         }
     542           0 :         if (ndr_flags & NDR_BUFFERS) {
     543           0 :                 if (r->partners) {
     544           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_partners));
     545           0 :                         for (cntr_partners_1 = 0; cntr_partners_1 < (r->num_partners); cntr_partners_1++) {
     546           0 :                                 NDR_CHECK(ndr_push_winsif_ReplCounter(ndr, NDR_SCALARS, &r->partners[cntr_partners_1]));
     547             :                         }
     548             :                 }
     549             :         }
     550           0 :         return NDR_ERR_SUCCESS;
     551             : }
     552             : 
     553           0 : static enum ndr_err_code ndr_pull_winsif_Stat(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_Stat *r)
     554             : {
     555           0 :         uint32_t _ptr_partners;
     556           0 :         uint32_t size_partners_1 = 0;
     557           0 :         uint32_t cntr_partners_1;
     558           0 :         TALLOC_CTX *_mem_save_partners_0 = NULL;
     559           0 :         TALLOC_CTX *_mem_save_partners_1 = NULL;
     560           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     561           0 :         if (ndr_flags & NDR_SCALARS) {
     562           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     563           0 :                 NDR_CHECK(ndr_pull_winsif_StatCounters(ndr, NDR_SCALARS, &r->counters));
     564           0 :                 NDR_CHECK(ndr_pull_winsif_StatTimeStamps(ndr, NDR_SCALARS, &r->time_stamps));
     565           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_partners));
     566           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_partners));
     567           0 :                 if (_ptr_partners) {
     568           0 :                         NDR_PULL_ALLOC(ndr, r->partners);
     569             :                 } else {
     570           0 :                         r->partners = NULL;
     571             :                 }
     572           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     573             :         }
     574           0 :         if (ndr_flags & NDR_BUFFERS) {
     575           0 :                 if (r->partners) {
     576           0 :                         _mem_save_partners_0 = NDR_PULL_GET_MEM_CTX(ndr);
     577           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->partners, 0);
     578           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->partners));
     579           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->partners, &size_partners_1));
     580           0 :                         NDR_PULL_ALLOC_N(ndr, r->partners, size_partners_1);
     581           0 :                         _mem_save_partners_1 = NDR_PULL_GET_MEM_CTX(ndr);
     582           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->partners, 0);
     583           0 :                         for (cntr_partners_1 = 0; cntr_partners_1 < (size_partners_1); cntr_partners_1++) {
     584           0 :                                 NDR_CHECK(ndr_pull_winsif_ReplCounter(ndr, NDR_SCALARS, &r->partners[cntr_partners_1]));
     585             :                         }
     586           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_partners_1, 0);
     587           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_partners_0, 0);
     588             :                 }
     589           0 :                 if (r->partners) {
     590           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->partners, r->num_partners));
     591             :                 }
     592             :         }
     593           0 :         return NDR_ERR_SUCCESS;
     594             : }
     595             : 
     596           0 : _PUBLIC_ void ndr_print_winsif_Stat(struct ndr_print *ndr, const char *name, const struct winsif_Stat *r)
     597             : {
     598           0 :         uint32_t cntr_partners_1;
     599           0 :         ndr_print_struct(ndr, name, "winsif_Stat");
     600           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     601           0 :         ndr->depth++;
     602           0 :         ndr_print_winsif_StatCounters(ndr, "counters", &r->counters);
     603           0 :         ndr_print_winsif_StatTimeStamps(ndr, "time_stamps", &r->time_stamps);
     604           0 :         ndr_print_uint32(ndr, "num_partners", r->num_partners);
     605           0 :         ndr_print_ptr(ndr, "partners", r->partners);
     606           0 :         ndr->depth++;
     607           0 :         if (r->partners) {
     608           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "partners", (uint32_t)(r->num_partners));
     609           0 :                 ndr->depth++;
     610           0 :                 for (cntr_partners_1 = 0; cntr_partners_1 < (r->num_partners); cntr_partners_1++) {
     611           0 :                         ndr_print_winsif_ReplCounter(ndr, "partners", &r->partners[cntr_partners_1]);
     612             :                 }
     613           0 :                 ndr->depth--;
     614             :         }
     615           0 :         ndr->depth--;
     616           0 :         ndr->depth--;
     617             : }
     618             : 
     619           0 : static enum ndr_err_code ndr_push_winsif_Results(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_Results *r)
     620             : {
     621           0 :         uint32_t cntr_address_version_maps_0;
     622           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     623           0 :         if (ndr_flags & NDR_SCALARS) {
     624           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     625           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_owners));
     626           0 :                 for (cntr_address_version_maps_0 = 0; cntr_address_version_maps_0 < (25); cntr_address_version_maps_0++) {
     627           0 :                         NDR_CHECK(ndr_push_winsif_AddressVersionMap(ndr, NDR_SCALARS, &r->address_version_maps[cntr_address_version_maps_0]));
     628             :                 }
     629           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->my_max_version_number));
     630           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->refresh_interval));
     631           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->tombstone_interval));
     632           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->tombstone_timeout));
     633           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->verify_interval));
     634           0 :                 NDR_CHECK(ndr_push_winsif_PriorityClass(ndr, NDR_SCALARS, r->prioritiy_class));
     635           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_worker_threads));
     636           0 :                 NDR_CHECK(ndr_push_winsif_Stat(ndr, NDR_SCALARS, &r->wstat));
     637           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     638             :         }
     639           0 :         if (ndr_flags & NDR_BUFFERS) {
     640           0 :                 NDR_CHECK(ndr_push_winsif_Stat(ndr, NDR_BUFFERS, &r->wstat));
     641             :         }
     642           0 :         return NDR_ERR_SUCCESS;
     643             : }
     644             : 
     645           0 : static enum ndr_err_code ndr_pull_winsif_Results(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_Results *r)
     646             : {
     647           0 :         uint32_t size_address_version_maps_0 = 0;
     648           0 :         uint32_t cntr_address_version_maps_0;
     649           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     650           0 :         if (ndr_flags & NDR_SCALARS) {
     651           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     652           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_owners));
     653           0 :                 size_address_version_maps_0 = 25;
     654           0 :                 for (cntr_address_version_maps_0 = 0; cntr_address_version_maps_0 < (size_address_version_maps_0); cntr_address_version_maps_0++) {
     655           0 :                         NDR_CHECK(ndr_pull_winsif_AddressVersionMap(ndr, NDR_SCALARS, &r->address_version_maps[cntr_address_version_maps_0]));
     656             :                 }
     657           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->my_max_version_number));
     658           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->refresh_interval));
     659           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->tombstone_interval));
     660           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->tombstone_timeout));
     661           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->verify_interval));
     662           0 :                 NDR_CHECK(ndr_pull_winsif_PriorityClass(ndr, NDR_SCALARS, &r->prioritiy_class));
     663           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_worker_threads));
     664           0 :                 NDR_CHECK(ndr_pull_winsif_Stat(ndr, NDR_SCALARS, &r->wstat));
     665           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     666             :         }
     667           0 :         if (ndr_flags & NDR_BUFFERS) {
     668           0 :                 NDR_CHECK(ndr_pull_winsif_Stat(ndr, NDR_BUFFERS, &r->wstat));
     669             :         }
     670           0 :         return NDR_ERR_SUCCESS;
     671             : }
     672             : 
     673           0 : _PUBLIC_ void ndr_print_winsif_Results(struct ndr_print *ndr, const char *name, const struct winsif_Results *r)
     674             : {
     675           0 :         uint32_t cntr_address_version_maps_0;
     676           0 :         ndr_print_struct(ndr, name, "winsif_Results");
     677           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     678           0 :         ndr->depth++;
     679           0 :         ndr_print_uint32(ndr, "num_owners", r->num_owners);
     680           0 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "address_version_maps", (uint32_t)(25));
     681           0 :         ndr->depth++;
     682           0 :         for (cntr_address_version_maps_0 = 0; cntr_address_version_maps_0 < (25); cntr_address_version_maps_0++) {
     683           0 :                 ndr_print_winsif_AddressVersionMap(ndr, "address_version_maps", &r->address_version_maps[cntr_address_version_maps_0]);
     684             :         }
     685           0 :         ndr->depth--;
     686           0 :         ndr_print_hyper(ndr, "my_max_version_number", r->my_max_version_number);
     687           0 :         ndr_print_uint32(ndr, "refresh_interval", r->refresh_interval);
     688           0 :         ndr_print_uint32(ndr, "tombstone_interval", r->tombstone_interval);
     689           0 :         ndr_print_uint32(ndr, "tombstone_timeout", r->tombstone_timeout);
     690           0 :         ndr_print_uint32(ndr, "verify_interval", r->verify_interval);
     691           0 :         ndr_print_winsif_PriorityClass(ndr, "prioritiy_class", r->prioritiy_class);
     692           0 :         ndr_print_uint32(ndr, "num_worker_threads", r->num_worker_threads);
     693           0 :         ndr_print_winsif_Stat(ndr, "wstat", &r->wstat);
     694           0 :         ndr->depth--;
     695             : }
     696             : 
     697           0 : static enum ndr_err_code ndr_push_winsif_StatusCmd(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum winsif_StatusCmd r)
     698             : {
     699           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
     700           0 :         return NDR_ERR_SUCCESS;
     701             : }
     702             : 
     703           0 : static enum ndr_err_code ndr_pull_winsif_StatusCmd(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum winsif_StatusCmd *r)
     704             : {
     705           0 :         uint16_t v;
     706           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
     707           0 :         *r = v;
     708           0 :         return NDR_ERR_SUCCESS;
     709             : }
     710             : 
     711           0 : _PUBLIC_ void ndr_print_winsif_StatusCmd(struct ndr_print *ndr, const char *name, enum winsif_StatusCmd r)
     712             : {
     713           0 :         const char *val = NULL;
     714             : 
     715           0 :         switch (r) {
     716           0 :                 case WINSIF_STATUS_CMD_ADDRESS_VERSION_MAP: val = "WINSIF_STATUS_CMD_ADDRESS_VERSION_MAP"; break;
     717           0 :                 case WINSIF_STATUS_CMD_CONFIG: val = "WINSIF_STATUS_CMD_CONFIG"; break;
     718           0 :                 case WINSIF_STATUS_CMD_STAT: val = "WINSIF_STATUS_CMD_STAT"; break;
     719           0 :                 case WINSIF_STATUS_CMD_ALL_MAPS: val = "WINSIF_STATUS_CMD_ALL_MAPS"; break;
     720             :         }
     721           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     722           0 : }
     723             : 
     724           0 : static enum ndr_err_code ndr_push_winsif_TriggerType(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum winsif_TriggerType r)
     725             : {
     726           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
     727           0 :         return NDR_ERR_SUCCESS;
     728             : }
     729             : 
     730           0 : static enum ndr_err_code ndr_pull_winsif_TriggerType(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum winsif_TriggerType *r)
     731             : {
     732           0 :         uint16_t v;
     733           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
     734           0 :         *r = v;
     735           0 :         return NDR_ERR_SUCCESS;
     736             : }
     737             : 
     738           0 : _PUBLIC_ void ndr_print_winsif_TriggerType(struct ndr_print *ndr, const char *name, enum winsif_TriggerType r)
     739             : {
     740           0 :         const char *val = NULL;
     741             : 
     742           0 :         switch (r) {
     743           0 :                 case WINSIF_TRIGGER_PULL: val = "WINSIF_TRIGGER_PULL"; break;
     744           0 :                 case WINSIF_TRIGGER_PUSH: val = "WINSIF_TRIGGER_PUSH"; break;
     745           0 :                 case WINSIF_TRIGGER_PUSH_PROP: val = "WINSIF_TRIGGER_PUSH_PROP"; break;
     746             :         }
     747           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     748           0 : }
     749             : 
     750           0 : static enum ndr_err_code ndr_push_winsif_Records(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_Records *r)
     751             : {
     752           0 :         uint32_t cntr_row_1;
     753           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     754           0 :         if (ndr_flags & NDR_SCALARS) {
     755           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     756           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->buffer_size));
     757           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->row));
     758           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_records));
     759           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->total_num_records));
     760           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     761             :         }
     762           0 :         if (ndr_flags & NDR_BUFFERS) {
     763           0 :                 if (r->row) {
     764           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_records));
     765           0 :                         for (cntr_row_1 = 0; cntr_row_1 < (r->num_records); cntr_row_1++) {
     766           0 :                                 NDR_CHECK(ndr_push_winsif_RecordAction(ndr, NDR_SCALARS, &r->row[cntr_row_1]));
     767             :                         }
     768           0 :                         for (cntr_row_1 = 0; cntr_row_1 < (r->num_records); cntr_row_1++) {
     769           0 :                                 NDR_CHECK(ndr_push_winsif_RecordAction(ndr, NDR_BUFFERS, &r->row[cntr_row_1]));
     770             :                         }
     771             :                 }
     772             :         }
     773           0 :         return NDR_ERR_SUCCESS;
     774             : }
     775             : 
     776           0 : static enum ndr_err_code ndr_pull_winsif_Records(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_Records *r)
     777             : {
     778           0 :         uint32_t _ptr_row;
     779           0 :         uint32_t size_row_1 = 0;
     780           0 :         uint32_t cntr_row_1;
     781           0 :         TALLOC_CTX *_mem_save_row_0 = NULL;
     782           0 :         TALLOC_CTX *_mem_save_row_1 = NULL;
     783           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     784           0 :         if (ndr_flags & NDR_SCALARS) {
     785           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     786           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->buffer_size));
     787           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_row));
     788           0 :                 if (_ptr_row) {
     789           0 :                         NDR_PULL_ALLOC(ndr, r->row);
     790             :                 } else {
     791           0 :                         r->row = NULL;
     792             :                 }
     793           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_records));
     794           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->total_num_records));
     795           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     796             :         }
     797           0 :         if (ndr_flags & NDR_BUFFERS) {
     798           0 :                 if (r->row) {
     799           0 :                         _mem_save_row_0 = NDR_PULL_GET_MEM_CTX(ndr);
     800           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->row, 0);
     801           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->row));
     802           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->row, &size_row_1));
     803           0 :                         NDR_PULL_ALLOC_N(ndr, r->row, size_row_1);
     804           0 :                         _mem_save_row_1 = NDR_PULL_GET_MEM_CTX(ndr);
     805           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->row, 0);
     806           0 :                         for (cntr_row_1 = 0; cntr_row_1 < (size_row_1); cntr_row_1++) {
     807           0 :                                 NDR_CHECK(ndr_pull_winsif_RecordAction(ndr, NDR_SCALARS, &r->row[cntr_row_1]));
     808             :                         }
     809           0 :                         for (cntr_row_1 = 0; cntr_row_1 < (size_row_1); cntr_row_1++) {
     810           0 :                                 NDR_CHECK(ndr_pull_winsif_RecordAction(ndr, NDR_BUFFERS, &r->row[cntr_row_1]));
     811             :                         }
     812           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_row_1, 0);
     813           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_row_0, 0);
     814             :                 }
     815           0 :                 if (r->row) {
     816           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->row, r->num_records));
     817             :                 }
     818           0 :                 for (cntr_row_1 = 0; cntr_row_1 < (size_row_1); cntr_row_1++) {
     819           0 :                 }
     820             :         }
     821           0 :         return NDR_ERR_SUCCESS;
     822             : }
     823             : 
     824           0 : _PUBLIC_ void ndr_print_winsif_Records(struct ndr_print *ndr, const char *name, const struct winsif_Records *r)
     825             : {
     826           0 :         uint32_t cntr_row_1;
     827           0 :         ndr_print_struct(ndr, name, "winsif_Records");
     828           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     829           0 :         ndr->depth++;
     830           0 :         ndr_print_uint32(ndr, "buffer_size", r->buffer_size);
     831           0 :         ndr_print_ptr(ndr, "row", r->row);
     832           0 :         ndr->depth++;
     833           0 :         if (r->row) {
     834           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "row", (uint32_t)(r->num_records));
     835           0 :                 ndr->depth++;
     836           0 :                 for (cntr_row_1 = 0; cntr_row_1 < (r->num_records); cntr_row_1++) {
     837           0 :                         ndr_print_winsif_RecordAction(ndr, "row", &r->row[cntr_row_1]);
     838             :                 }
     839           0 :                 ndr->depth--;
     840             :         }
     841           0 :         ndr->depth--;
     842           0 :         ndr_print_uint32(ndr, "num_records", r->num_records);
     843           0 :         ndr_print_uint32(ndr, "total_num_records", r->total_num_records);
     844           0 :         ndr->depth--;
     845             : }
     846             : 
     847           0 : static enum ndr_err_code ndr_push_winsif_BrowserInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_BrowserInfo *r)
     848             : {
     849           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     850           0 :         if (ndr_flags & NDR_SCALARS) {
     851           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     852           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->name_len));
     853           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->name));
     854           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     855             :         }
     856           0 :         if (ndr_flags & NDR_BUFFERS) {
     857           0 :                 if (r->name) {
     858           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->name, CH_DOS)));
     859           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     860           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->name, CH_DOS)));
     861           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->name, ndr_charset_length(r->name, CH_DOS), sizeof(uint8_t), CH_DOS));
     862             :                 }
     863             :         }
     864           0 :         return NDR_ERR_SUCCESS;
     865             : }
     866             : 
     867           0 : static enum ndr_err_code ndr_pull_winsif_BrowserInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_BrowserInfo *r)
     868             : {
     869           0 :         uint32_t _ptr_name;
     870           0 :         uint32_t size_name_1 = 0;
     871           0 :         uint32_t length_name_1 = 0;
     872           0 :         TALLOC_CTX *_mem_save_name_0 = NULL;
     873           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     874           0 :         if (ndr_flags & NDR_SCALARS) {
     875           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     876           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->name_len));
     877           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_name));
     878           0 :                 if (_ptr_name) {
     879           0 :                         NDR_PULL_ALLOC(ndr, r->name);
     880             :                 } else {
     881           0 :                         r->name = NULL;
     882             :                 }
     883           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     884             :         }
     885           0 :         if (ndr_flags & NDR_BUFFERS) {
     886           0 :                 if (r->name) {
     887           0 :                         _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
     888           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->name, 0);
     889           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->name));
     890           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->name));
     891           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->name, &size_name_1));
     892           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->name, &length_name_1));
     893           0 :                         if (length_name_1 > size_name_1) {
     894           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_name_1, length_name_1);
     895             :                         }
     896           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_name_1, sizeof(uint8_t)));
     897           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->name, length_name_1, sizeof(uint8_t), CH_DOS));
     898           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, 0);
     899             :                 }
     900             :         }
     901           0 :         return NDR_ERR_SUCCESS;
     902             : }
     903             : 
     904           0 : _PUBLIC_ void ndr_print_winsif_BrowserInfo(struct ndr_print *ndr, const char *name, const struct winsif_BrowserInfo *r)
     905             : {
     906           0 :         ndr_print_struct(ndr, name, "winsif_BrowserInfo");
     907           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     908           0 :         ndr->depth++;
     909           0 :         ndr_print_uint32(ndr, "name_len", r->name_len);
     910           0 :         ndr_print_ptr(ndr, "name", r->name);
     911           0 :         ndr->depth++;
     912           0 :         if (r->name) {
     913           0 :                 ndr_print_string(ndr, "name", r->name);
     914             :         }
     915           0 :         ndr->depth--;
     916           0 :         ndr->depth--;
     917             : }
     918             : 
     919           0 : static enum ndr_err_code ndr_push_winsif_BrowserNames(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_BrowserNames *r)
     920             : {
     921           0 :         uint32_t cntr_info_1;
     922           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     923           0 :         if (ndr_flags & NDR_SCALARS) {
     924           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     925           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_entries));
     926           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->info));
     927           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     928             :         }
     929           0 :         if (ndr_flags & NDR_BUFFERS) {
     930           0 :                 if (r->info) {
     931           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_entries));
     932           0 :                         for (cntr_info_1 = 0; cntr_info_1 < (r->num_entries); cntr_info_1++) {
     933           0 :                                 NDR_CHECK(ndr_push_winsif_BrowserInfo(ndr, NDR_SCALARS, &r->info[cntr_info_1]));
     934             :                         }
     935           0 :                         for (cntr_info_1 = 0; cntr_info_1 < (r->num_entries); cntr_info_1++) {
     936           0 :                                 NDR_CHECK(ndr_push_winsif_BrowserInfo(ndr, NDR_BUFFERS, &r->info[cntr_info_1]));
     937             :                         }
     938             :                 }
     939             :         }
     940           0 :         return NDR_ERR_SUCCESS;
     941             : }
     942             : 
     943           0 : static enum ndr_err_code ndr_pull_winsif_BrowserNames(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_BrowserNames *r)
     944             : {
     945           0 :         uint32_t _ptr_info;
     946           0 :         uint32_t size_info_1 = 0;
     947           0 :         uint32_t cntr_info_1;
     948           0 :         TALLOC_CTX *_mem_save_info_0 = NULL;
     949           0 :         TALLOC_CTX *_mem_save_info_1 = NULL;
     950           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     951           0 :         if (ndr_flags & NDR_SCALARS) {
     952           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     953           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_entries));
     954           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info));
     955           0 :                 if (_ptr_info) {
     956           0 :                         NDR_PULL_ALLOC(ndr, r->info);
     957             :                 } else {
     958           0 :                         r->info = NULL;
     959             :                 }
     960           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     961             :         }
     962           0 :         if (ndr_flags & NDR_BUFFERS) {
     963           0 :                 if (r->info) {
     964           0 :                         _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
     965           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->info, 0);
     966           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->info));
     967           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->info, &size_info_1));
     968           0 :                         NDR_PULL_ALLOC_N(ndr, r->info, size_info_1);
     969           0 :                         _mem_save_info_1 = NDR_PULL_GET_MEM_CTX(ndr);
     970           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->info, 0);
     971           0 :                         for (cntr_info_1 = 0; cntr_info_1 < (size_info_1); cntr_info_1++) {
     972           0 :                                 NDR_CHECK(ndr_pull_winsif_BrowserInfo(ndr, NDR_SCALARS, &r->info[cntr_info_1]));
     973             :                         }
     974           0 :                         for (cntr_info_1 = 0; cntr_info_1 < (size_info_1); cntr_info_1++) {
     975           0 :                                 NDR_CHECK(ndr_pull_winsif_BrowserInfo(ndr, NDR_BUFFERS, &r->info[cntr_info_1]));
     976             :                         }
     977           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_1, 0);
     978           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
     979             :                 }
     980           0 :                 if (r->info) {
     981           0 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->info, r->num_entries));
     982             :                 }
     983           0 :                 for (cntr_info_1 = 0; cntr_info_1 < (size_info_1); cntr_info_1++) {
     984           0 :                 }
     985             :         }
     986           0 :         return NDR_ERR_SUCCESS;
     987             : }
     988             : 
     989           0 : _PUBLIC_ void ndr_print_winsif_BrowserNames(struct ndr_print *ndr, const char *name, const struct winsif_BrowserNames *r)
     990             : {
     991           0 :         uint32_t cntr_info_1;
     992           0 :         ndr_print_struct(ndr, name, "winsif_BrowserNames");
     993           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     994           0 :         ndr->depth++;
     995           0 :         ndr_print_uint32(ndr, "num_entries", r->num_entries);
     996           0 :         ndr_print_ptr(ndr, "info", r->info);
     997           0 :         ndr->depth++;
     998           0 :         if (r->info) {
     999           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "info", (uint32_t)(r->num_entries));
    1000           0 :                 ndr->depth++;
    1001           0 :                 for (cntr_info_1 = 0; cntr_info_1 < (r->num_entries); cntr_info_1++) {
    1002           0 :                         ndr_print_winsif_BrowserInfo(ndr, "info", &r->info[cntr_info_1]);
    1003             :                 }
    1004           0 :                 ndr->depth--;
    1005             :         }
    1006           0 :         ndr->depth--;
    1007           0 :         ndr->depth--;
    1008             : }
    1009             : 
    1010           0 : static enum ndr_err_code ndr_push_winsif_BindData(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_BindData *r)
    1011             : {
    1012           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1013           0 :         if (ndr_flags & NDR_SCALARS) {
    1014           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    1015           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->tcp_ip));
    1016           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->server_address));
    1017           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->pipe_name));
    1018           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    1019             :         }
    1020           0 :         if (ndr_flags & NDR_BUFFERS) {
    1021           0 :                 if (r->server_address) {
    1022           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->server_address, CH_DOS)));
    1023           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    1024           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->server_address, CH_DOS)));
    1025           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->server_address, ndr_charset_length(r->server_address, CH_DOS), sizeof(uint8_t), CH_DOS));
    1026             :                 }
    1027           0 :                 if (r->pipe_name) {
    1028           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->pipe_name, CH_DOS)));
    1029           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    1030           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->pipe_name, CH_DOS)));
    1031           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->pipe_name, ndr_charset_length(r->pipe_name, CH_DOS), sizeof(uint8_t), CH_DOS));
    1032             :                 }
    1033             :         }
    1034           0 :         return NDR_ERR_SUCCESS;
    1035             : }
    1036             : 
    1037           0 : static enum ndr_err_code ndr_pull_winsif_BindData(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_BindData *r)
    1038             : {
    1039           0 :         uint32_t _ptr_server_address;
    1040           0 :         uint32_t size_server_address_1 = 0;
    1041           0 :         uint32_t length_server_address_1 = 0;
    1042           0 :         TALLOC_CTX *_mem_save_server_address_0 = NULL;
    1043           0 :         uint32_t _ptr_pipe_name;
    1044           0 :         uint32_t size_pipe_name_1 = 0;
    1045           0 :         uint32_t length_pipe_name_1 = 0;
    1046           0 :         TALLOC_CTX *_mem_save_pipe_name_0 = NULL;
    1047           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1048           0 :         if (ndr_flags & NDR_SCALARS) {
    1049           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    1050           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->tcp_ip));
    1051           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_server_address));
    1052           0 :                 if (_ptr_server_address) {
    1053           0 :                         NDR_PULL_ALLOC(ndr, r->server_address);
    1054             :                 } else {
    1055           0 :                         r->server_address = NULL;
    1056             :                 }
    1057           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_pipe_name));
    1058           0 :                 if (_ptr_pipe_name) {
    1059           0 :                         NDR_PULL_ALLOC(ndr, r->pipe_name);
    1060             :                 } else {
    1061           0 :                         r->pipe_name = NULL;
    1062             :                 }
    1063           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    1064             :         }
    1065           0 :         if (ndr_flags & NDR_BUFFERS) {
    1066           0 :                 if (r->server_address) {
    1067           0 :                         _mem_save_server_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1068           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->server_address, 0);
    1069           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->server_address));
    1070           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->server_address));
    1071           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->server_address, &size_server_address_1));
    1072           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->server_address, &length_server_address_1));
    1073           0 :                         if (length_server_address_1 > size_server_address_1) {
    1074           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_server_address_1, length_server_address_1);
    1075             :                         }
    1076           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_server_address_1, sizeof(uint8_t)));
    1077           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->server_address, length_server_address_1, sizeof(uint8_t), CH_DOS));
    1078           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_address_0, 0);
    1079             :                 }
    1080           0 :                 if (r->pipe_name) {
    1081           0 :                         _mem_save_pipe_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1082           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->pipe_name, 0);
    1083           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->pipe_name));
    1084           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->pipe_name));
    1085           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->pipe_name, &size_pipe_name_1));
    1086           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->pipe_name, &length_pipe_name_1));
    1087           0 :                         if (length_pipe_name_1 > size_pipe_name_1) {
    1088           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_pipe_name_1, length_pipe_name_1);
    1089             :                         }
    1090           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_pipe_name_1, sizeof(uint8_t)));
    1091           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->pipe_name, length_pipe_name_1, sizeof(uint8_t), CH_DOS));
    1092           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pipe_name_0, 0);
    1093             :                 }
    1094             :         }
    1095           0 :         return NDR_ERR_SUCCESS;
    1096             : }
    1097             : 
    1098           0 : _PUBLIC_ void ndr_print_winsif_BindData(struct ndr_print *ndr, const char *name, const struct winsif_BindData *r)
    1099             : {
    1100           0 :         ndr_print_struct(ndr, name, "winsif_BindData");
    1101           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1102           0 :         ndr->depth++;
    1103           0 :         ndr_print_uint32(ndr, "tcp_ip", r->tcp_ip);
    1104           0 :         ndr_print_ptr(ndr, "server_address", r->server_address);
    1105           0 :         ndr->depth++;
    1106           0 :         if (r->server_address) {
    1107           0 :                 ndr_print_string(ndr, "server_address", r->server_address);
    1108             :         }
    1109           0 :         ndr->depth--;
    1110           0 :         ndr_print_ptr(ndr, "pipe_name", r->pipe_name);
    1111           0 :         ndr->depth++;
    1112           0 :         if (r->pipe_name) {
    1113           0 :                 ndr_print_string(ndr, "pipe_name", r->pipe_name);
    1114             :         }
    1115           0 :         ndr->depth--;
    1116           0 :         ndr->depth--;
    1117             : }
    1118             : 
    1119           0 : static enum ndr_err_code ndr_push_winsif_ResultsNew(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_ResultsNew *r)
    1120             : {
    1121           0 :         uint32_t cntr_address_version_maps_1;
    1122           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1123           0 :         if (ndr_flags & NDR_SCALARS) {
    1124           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
    1125           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_owners));
    1126           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->address_version_maps));
    1127           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->my_max_version_number));
    1128           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->refresh_interval));
    1129           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->tombstone_interval));
    1130           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->tombstone_timeout));
    1131           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->verify_interval));
    1132           0 :                 NDR_CHECK(ndr_push_winsif_PriorityClass(ndr, NDR_SCALARS, r->prioritiy_class));
    1133           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_worker_threads));
    1134           0 :                 NDR_CHECK(ndr_push_winsif_Stat(ndr, NDR_SCALARS, &r->wstat));
    1135           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
    1136             :         }
    1137           0 :         if (ndr_flags & NDR_BUFFERS) {
    1138           0 :                 if (r->address_version_maps) {
    1139           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_owners));
    1140           0 :                         for (cntr_address_version_maps_1 = 0; cntr_address_version_maps_1 < (r->num_owners); cntr_address_version_maps_1++) {
    1141           0 :                                 NDR_CHECK(ndr_push_winsif_AddressVersionMap(ndr, NDR_SCALARS, &r->address_version_maps[cntr_address_version_maps_1]));
    1142             :                         }
    1143             :                 }
    1144           0 :                 NDR_CHECK(ndr_push_winsif_Stat(ndr, NDR_BUFFERS, &r->wstat));
    1145             :         }
    1146           0 :         return NDR_ERR_SUCCESS;
    1147             : }
    1148             : 
    1149           0 : static enum ndr_err_code ndr_pull_winsif_ResultsNew(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_ResultsNew *r)
    1150             : {
    1151           0 :         uint32_t _ptr_address_version_maps;
    1152           0 :         uint32_t size_address_version_maps_1 = 0;
    1153           0 :         uint32_t cntr_address_version_maps_1;
    1154           0 :         TALLOC_CTX *_mem_save_address_version_maps_0 = NULL;
    1155           0 :         TALLOC_CTX *_mem_save_address_version_maps_1 = NULL;
    1156           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1157           0 :         if (ndr_flags & NDR_SCALARS) {
    1158           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
    1159           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_owners));
    1160           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_address_version_maps));
    1161           0 :                 if (_ptr_address_version_maps) {
    1162           0 :                         NDR_PULL_ALLOC(ndr, r->address_version_maps);
    1163             :                 } else {
    1164           0 :                         r->address_version_maps = NULL;
    1165             :                 }
    1166           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->my_max_version_number));
    1167           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->refresh_interval));
    1168           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->tombstone_interval));
    1169           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->tombstone_timeout));
    1170           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->verify_interval));
    1171           0 :                 NDR_CHECK(ndr_pull_winsif_PriorityClass(ndr, NDR_SCALARS, &r->prioritiy_class));
    1172           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_worker_threads));
    1173           0 :                 NDR_CHECK(ndr_pull_winsif_Stat(ndr, NDR_SCALARS, &r->wstat));
    1174           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
    1175             :         }
    1176           0 :         if (ndr_flags & NDR_BUFFERS) {
    1177           0 :                 if (r->address_version_maps) {
    1178           0 :                         _mem_save_address_version_maps_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1179           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->address_version_maps, 0);
    1180           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->address_version_maps));
    1181           0 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->address_version_maps, &size_address_version_maps_1));
    1182           0 :                         NDR_PULL_ALLOC_N(ndr, r->address_version_maps, size_address_version_maps_1);
    1183           0 :                         _mem_save_address_version_maps_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1184           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->address_version_maps, 0);
    1185           0 :                         for (cntr_address_version_maps_1 = 0; cntr_address_version_maps_1 < (size_address_version_maps_1); cntr_address_version_maps_1++) {
    1186           0 :                                 NDR_CHECK(ndr_pull_winsif_AddressVersionMap(ndr, NDR_SCALARS, &r->address_version_maps[cntr_address_version_maps_1]));
    1187             :                         }
    1188           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_address_version_maps_1, 0);
    1189           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_address_version_maps_0, 0);
    1190             :                 }
    1191           0 :                 NDR_CHECK(ndr_pull_winsif_Stat(ndr, NDR_BUFFERS, &r->wstat));
    1192           0 :                 if (r->address_version_maps) {
    1193           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->address_version_maps, r->num_owners));
    1194             :                 }
    1195             :         }
    1196           0 :         return NDR_ERR_SUCCESS;
    1197             : }
    1198             : 
    1199           0 : _PUBLIC_ void ndr_print_winsif_ResultsNew(struct ndr_print *ndr, const char *name, const struct winsif_ResultsNew *r)
    1200             : {
    1201           0 :         uint32_t cntr_address_version_maps_1;
    1202           0 :         ndr_print_struct(ndr, name, "winsif_ResultsNew");
    1203           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1204           0 :         ndr->depth++;
    1205           0 :         ndr_print_uint32(ndr, "num_owners", r->num_owners);
    1206           0 :         ndr_print_ptr(ndr, "address_version_maps", r->address_version_maps);
    1207           0 :         ndr->depth++;
    1208           0 :         if (r->address_version_maps) {
    1209           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "address_version_maps", (uint32_t)(r->num_owners));
    1210           0 :                 ndr->depth++;
    1211           0 :                 for (cntr_address_version_maps_1 = 0; cntr_address_version_maps_1 < (r->num_owners); cntr_address_version_maps_1++) {
    1212           0 :                         ndr_print_winsif_AddressVersionMap(ndr, "address_version_maps", &r->address_version_maps[cntr_address_version_maps_1]);
    1213             :                 }
    1214           0 :                 ndr->depth--;
    1215             :         }
    1216           0 :         ndr->depth--;
    1217           0 :         ndr_print_hyper(ndr, "my_max_version_number", r->my_max_version_number);
    1218           0 :         ndr_print_uint32(ndr, "refresh_interval", r->refresh_interval);
    1219           0 :         ndr_print_uint32(ndr, "tombstone_interval", r->tombstone_interval);
    1220           0 :         ndr_print_uint32(ndr, "tombstone_timeout", r->tombstone_timeout);
    1221           0 :         ndr_print_uint32(ndr, "verify_interval", r->verify_interval);
    1222           0 :         ndr_print_winsif_PriorityClass(ndr, "prioritiy_class", r->prioritiy_class);
    1223           0 :         ndr_print_uint32(ndr, "num_worker_threads", r->num_worker_threads);
    1224           0 :         ndr_print_winsif_Stat(ndr, "wstat", &r->wstat);
    1225           0 :         ndr->depth--;
    1226             : }
    1227             : 
    1228           0 : static enum ndr_err_code ndr_push_winsif_ScavengingOpcode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum winsif_ScavengingOpcode r)
    1229             : {
    1230           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
    1231           0 :         return NDR_ERR_SUCCESS;
    1232             : }
    1233             : 
    1234           0 : static enum ndr_err_code ndr_pull_winsif_ScavengingOpcode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum winsif_ScavengingOpcode *r)
    1235             : {
    1236           0 :         uint16_t v;
    1237           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
    1238           0 :         *r = v;
    1239           0 :         return NDR_ERR_SUCCESS;
    1240             : }
    1241             : 
    1242           0 : _PUBLIC_ void ndr_print_winsif_ScavengingOpcode(struct ndr_print *ndr, const char *name, enum winsif_ScavengingOpcode r)
    1243             : {
    1244           0 :         const char *val = NULL;
    1245             : 
    1246           0 :         switch (r) {
    1247           0 :                 case WINSIF_SCAVENGING_GENERAL: val = "WINSIF_SCAVENGING_GENERAL"; break;
    1248           0 :                 case WINSIF_SCAVENGING_VERIFY: val = "WINSIF_SCAVENGING_VERIFY"; break;
    1249             :         }
    1250           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    1251           0 : }
    1252             : 
    1253           0 : static enum ndr_err_code ndr_push_winsif_ScavengingRequest(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct winsif_ScavengingRequest *r)
    1254             : {
    1255           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1256           0 :         if (ndr_flags & NDR_SCALARS) {
    1257           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    1258           0 :                 NDR_CHECK(ndr_push_winsif_ScavengingOpcode(ndr, NDR_SCALARS, r->opcode));
    1259           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->age));
    1260           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->force));
    1261           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    1262             :         }
    1263           0 :         if (ndr_flags & NDR_BUFFERS) {
    1264           0 :         }
    1265           0 :         return NDR_ERR_SUCCESS;
    1266             : }
    1267             : 
    1268           0 : static enum ndr_err_code ndr_pull_winsif_ScavengingRequest(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct winsif_ScavengingRequest *r)
    1269             : {
    1270           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1271           0 :         if (ndr_flags & NDR_SCALARS) {
    1272           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    1273           0 :                 NDR_CHECK(ndr_pull_winsif_ScavengingOpcode(ndr, NDR_SCALARS, &r->opcode));
    1274           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->age));
    1275           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->force));
    1276           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    1277             :         }
    1278           0 :         if (ndr_flags & NDR_BUFFERS) {
    1279           0 :         }
    1280           0 :         return NDR_ERR_SUCCESS;
    1281             : }
    1282             : 
    1283           0 : _PUBLIC_ void ndr_print_winsif_ScavengingRequest(struct ndr_print *ndr, const char *name, const struct winsif_ScavengingRequest *r)
    1284             : {
    1285           0 :         ndr_print_struct(ndr, name, "winsif_ScavengingRequest");
    1286           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1287           0 :         ndr->depth++;
    1288           0 :         ndr_print_winsif_ScavengingOpcode(ndr, "opcode", r->opcode);
    1289           0 :         ndr_print_uint32(ndr, "age", r->age);
    1290           0 :         ndr_print_uint32(ndr, "force", r->force);
    1291           0 :         ndr->depth--;
    1292             : }
    1293             : 
    1294           0 : static enum ndr_err_code ndr_push_winsif_WinsRecordAction(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsRecordAction *r)
    1295             : {
    1296           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1297           0 :         if (flags & NDR_IN) {
    1298           0 :                 if (r->in.record_action == NULL) {
    1299           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1300             :                 }
    1301           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->in.record_action));
    1302           0 :                 if (*r->in.record_action) {
    1303           0 :                         NDR_CHECK(ndr_push_winsif_RecordAction(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.record_action));
    1304             :                 }
    1305             :         }
    1306           0 :         if (flags & NDR_OUT) {
    1307           0 :                 if (r->out.record_action == NULL) {
    1308           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1309             :                 }
    1310           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, *r->out.record_action));
    1311           0 :                 if (*r->out.record_action) {
    1312           0 :                         NDR_CHECK(ndr_push_winsif_RecordAction(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.record_action));
    1313             :                 }
    1314           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1315             :         }
    1316           0 :         return NDR_ERR_SUCCESS;
    1317             : }
    1318             : 
    1319           0 : static enum ndr_err_code ndr_pull_winsif_WinsRecordAction(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsRecordAction *r)
    1320             : {
    1321           0 :         uint32_t _ptr_record_action;
    1322           0 :         TALLOC_CTX *_mem_save_record_action_0 = NULL;
    1323           0 :         TALLOC_CTX *_mem_save_record_action_1 = NULL;
    1324           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1325           0 :         if (flags & NDR_IN) {
    1326           0 :                 NDR_ZERO_STRUCT(r->out);
    1327             : 
    1328           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1329           0 :                         NDR_PULL_ALLOC(ndr, r->in.record_action);
    1330             :                 }
    1331           0 :                 _mem_save_record_action_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1332           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.record_action, LIBNDR_FLAG_REF_ALLOC);
    1333           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_record_action));
    1334           0 :                 if (_ptr_record_action) {
    1335           0 :                         NDR_PULL_ALLOC(ndr, *r->in.record_action);
    1336             :                 } else {
    1337           0 :                         *r->in.record_action = NULL;
    1338             :                 }
    1339           0 :                 if (*r->in.record_action) {
    1340           0 :                         _mem_save_record_action_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1341           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->in.record_action, 0);
    1342           0 :                         NDR_CHECK(ndr_pull_winsif_RecordAction(ndr, NDR_SCALARS|NDR_BUFFERS, *r->in.record_action));
    1343           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_record_action_1, 0);
    1344             :                 }
    1345           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_record_action_0, LIBNDR_FLAG_REF_ALLOC);
    1346           0 :                 NDR_PULL_ALLOC(ndr, r->out.record_action);
    1347           0 :                 *r->out.record_action = *r->in.record_action;
    1348             :         }
    1349           0 :         if (flags & NDR_OUT) {
    1350             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1351             :                 if (r->in.record_action == NULL) {
    1352             :                         NDR_PULL_ALLOC(ndr, r->in.record_action);
    1353             :                         NDR_ZERO_STRUCTP(r->in.record_action);
    1354             :                 }
    1355             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1356           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1357           0 :                         NDR_PULL_ALLOC(ndr, r->out.record_action);
    1358             :                 }
    1359           0 :                 _mem_save_record_action_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1360           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.record_action, LIBNDR_FLAG_REF_ALLOC);
    1361           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_record_action));
    1362           0 :                 if (_ptr_record_action) {
    1363           0 :                         NDR_PULL_ALLOC(ndr, *r->out.record_action);
    1364             :                 } else {
    1365           0 :                         *r->out.record_action = NULL;
    1366             :                 }
    1367           0 :                 if (*r->out.record_action) {
    1368           0 :                         _mem_save_record_action_1 = NDR_PULL_GET_MEM_CTX(ndr);
    1369           0 :                         NDR_PULL_SET_MEM_CTX(ndr, *r->out.record_action, 0);
    1370           0 :                         NDR_CHECK(ndr_pull_winsif_RecordAction(ndr, NDR_SCALARS|NDR_BUFFERS, *r->out.record_action));
    1371           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_record_action_1, 0);
    1372             :                 }
    1373           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_record_action_0, LIBNDR_FLAG_REF_ALLOC);
    1374           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1375             :         }
    1376           0 :         return NDR_ERR_SUCCESS;
    1377             : }
    1378             : 
    1379           0 : _PUBLIC_ void ndr_print_winsif_WinsRecordAction(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsRecordAction *r)
    1380             : {
    1381           0 :         ndr_print_struct(ndr, name, "winsif_WinsRecordAction");
    1382           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1383           0 :         ndr->depth++;
    1384           0 :         if (flags & NDR_SET_VALUES) {
    1385           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1386             :         }
    1387           0 :         if (flags & NDR_IN) {
    1388           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsRecordAction");
    1389           0 :                 ndr->depth++;
    1390           0 :                 ndr_print_ptr(ndr, "record_action", r->in.record_action);
    1391           0 :                 ndr->depth++;
    1392           0 :                 ndr_print_ptr(ndr, "record_action", *r->in.record_action);
    1393           0 :                 ndr->depth++;
    1394           0 :                 if (*r->in.record_action) {
    1395           0 :                         ndr_print_winsif_RecordAction(ndr, "record_action", *r->in.record_action);
    1396             :                 }
    1397           0 :                 ndr->depth--;
    1398           0 :                 ndr->depth--;
    1399           0 :                 ndr->depth--;
    1400             :         }
    1401           0 :         if (flags & NDR_OUT) {
    1402           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsRecordAction");
    1403           0 :                 ndr->depth++;
    1404           0 :                 ndr_print_ptr(ndr, "record_action", r->out.record_action);
    1405           0 :                 ndr->depth++;
    1406           0 :                 ndr_print_ptr(ndr, "record_action", *r->out.record_action);
    1407           0 :                 ndr->depth++;
    1408           0 :                 if (*r->out.record_action) {
    1409           0 :                         ndr_print_winsif_RecordAction(ndr, "record_action", *r->out.record_action);
    1410             :                 }
    1411           0 :                 ndr->depth--;
    1412           0 :                 ndr->depth--;
    1413           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1414           0 :                 ndr->depth--;
    1415             :         }
    1416           0 :         ndr->depth--;
    1417             : }
    1418             : 
    1419           0 : static enum ndr_err_code ndr_push_winsif_WinsStatus(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsStatus *r)
    1420             : {
    1421           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1422           0 :         if (flags & NDR_IN) {
    1423           0 :                 if (r->in.results == NULL) {
    1424           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1425             :                 }
    1426           0 :                 NDR_CHECK(ndr_push_winsif_StatusCmd(ndr, NDR_SCALARS, r->in.cmd));
    1427           0 :                 NDR_CHECK(ndr_push_winsif_Results(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.results));
    1428             :         }
    1429           0 :         if (flags & NDR_OUT) {
    1430           0 :                 if (r->out.results == NULL) {
    1431           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1432             :                 }
    1433           0 :                 NDR_CHECK(ndr_push_winsif_Results(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.results));
    1434           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1435             :         }
    1436           0 :         return NDR_ERR_SUCCESS;
    1437             : }
    1438             : 
    1439           0 : static enum ndr_err_code ndr_pull_winsif_WinsStatus(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsStatus *r)
    1440             : {
    1441           0 :         TALLOC_CTX *_mem_save_results_0 = NULL;
    1442           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1443           0 :         if (flags & NDR_IN) {
    1444           0 :                 NDR_ZERO_STRUCT(r->out);
    1445             : 
    1446           0 :                 NDR_CHECK(ndr_pull_winsif_StatusCmd(ndr, NDR_SCALARS, &r->in.cmd));
    1447           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1448           0 :                         NDR_PULL_ALLOC(ndr, r->in.results);
    1449             :                 }
    1450           0 :                 _mem_save_results_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1451           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.results, LIBNDR_FLAG_REF_ALLOC);
    1452           0 :                 NDR_CHECK(ndr_pull_winsif_Results(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.results));
    1453           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_results_0, LIBNDR_FLAG_REF_ALLOC);
    1454           0 :                 NDR_PULL_ALLOC(ndr, r->out.results);
    1455           0 :                 *r->out.results = *r->in.results;
    1456             :         }
    1457           0 :         if (flags & NDR_OUT) {
    1458             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1459             :                 if (r->in.results == NULL) {
    1460             :                         NDR_PULL_ALLOC(ndr, r->in.results);
    1461             :                         NDR_ZERO_STRUCTP(r->in.results);
    1462             :                 }
    1463             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1464           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1465           0 :                         NDR_PULL_ALLOC(ndr, r->out.results);
    1466             :                 }
    1467           0 :                 _mem_save_results_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1468           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.results, LIBNDR_FLAG_REF_ALLOC);
    1469           0 :                 NDR_CHECK(ndr_pull_winsif_Results(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.results));
    1470           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_results_0, LIBNDR_FLAG_REF_ALLOC);
    1471           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1472             :         }
    1473           0 :         return NDR_ERR_SUCCESS;
    1474             : }
    1475             : 
    1476           0 : _PUBLIC_ void ndr_print_winsif_WinsStatus(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsStatus *r)
    1477             : {
    1478           0 :         ndr_print_struct(ndr, name, "winsif_WinsStatus");
    1479           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1480           0 :         ndr->depth++;
    1481           0 :         if (flags & NDR_SET_VALUES) {
    1482           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1483             :         }
    1484           0 :         if (flags & NDR_IN) {
    1485           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsStatus");
    1486           0 :                 ndr->depth++;
    1487           0 :                 ndr_print_winsif_StatusCmd(ndr, "cmd", r->in.cmd);
    1488           0 :                 ndr_print_ptr(ndr, "results", r->in.results);
    1489           0 :                 ndr->depth++;
    1490           0 :                 ndr_print_winsif_Results(ndr, "results", r->in.results);
    1491           0 :                 ndr->depth--;
    1492           0 :                 ndr->depth--;
    1493             :         }
    1494           0 :         if (flags & NDR_OUT) {
    1495           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsStatus");
    1496           0 :                 ndr->depth++;
    1497           0 :                 ndr_print_ptr(ndr, "results", r->out.results);
    1498           0 :                 ndr->depth++;
    1499           0 :                 ndr_print_winsif_Results(ndr, "results", r->out.results);
    1500           0 :                 ndr->depth--;
    1501           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1502           0 :                 ndr->depth--;
    1503             :         }
    1504           0 :         ndr->depth--;
    1505             : }
    1506             : 
    1507           0 : static enum ndr_err_code ndr_push_winsif_WinsTrigger(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsTrigger *r)
    1508             : {
    1509           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1510           0 :         if (flags & NDR_IN) {
    1511           0 :                 if (r->in.owner_address == NULL) {
    1512           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1513             :                 }
    1514           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    1515           0 :                 NDR_CHECK(ndr_push_winsif_TriggerType(ndr, NDR_SCALARS, r->in.trigger_type));
    1516             :         }
    1517           0 :         if (flags & NDR_OUT) {
    1518           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1519             :         }
    1520           0 :         return NDR_ERR_SUCCESS;
    1521             : }
    1522             : 
    1523           0 : static enum ndr_err_code ndr_pull_winsif_WinsTrigger(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsTrigger *r)
    1524             : {
    1525           0 :         TALLOC_CTX *_mem_save_owner_address_0 = NULL;
    1526           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1527           0 :         if (flags & NDR_IN) {
    1528           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1529           0 :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    1530             :                 }
    1531           0 :                 _mem_save_owner_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1532           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.owner_address, LIBNDR_FLAG_REF_ALLOC);
    1533           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    1534           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_owner_address_0, LIBNDR_FLAG_REF_ALLOC);
    1535           0 :                 NDR_CHECK(ndr_pull_winsif_TriggerType(ndr, NDR_SCALARS, &r->in.trigger_type));
    1536             :         }
    1537           0 :         if (flags & NDR_OUT) {
    1538             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1539             :                 if (r->in.owner_address == NULL) {
    1540             :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    1541             :                         NDR_ZERO_STRUCTP(r->in.owner_address);
    1542             :                 }
    1543             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1544           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1545             :         }
    1546           0 :         return NDR_ERR_SUCCESS;
    1547             : }
    1548             : 
    1549           0 : _PUBLIC_ void ndr_print_winsif_WinsTrigger(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsTrigger *r)
    1550             : {
    1551           0 :         ndr_print_struct(ndr, name, "winsif_WinsTrigger");
    1552           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1553           0 :         ndr->depth++;
    1554           0 :         if (flags & NDR_SET_VALUES) {
    1555           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1556             :         }
    1557           0 :         if (flags & NDR_IN) {
    1558           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsTrigger");
    1559           0 :                 ndr->depth++;
    1560           0 :                 ndr_print_ptr(ndr, "owner_address", r->in.owner_address);
    1561           0 :                 ndr->depth++;
    1562           0 :                 ndr_print_winsif_Address(ndr, "owner_address", r->in.owner_address);
    1563           0 :                 ndr->depth--;
    1564           0 :                 ndr_print_winsif_TriggerType(ndr, "trigger_type", r->in.trigger_type);
    1565           0 :                 ndr->depth--;
    1566             :         }
    1567           0 :         if (flags & NDR_OUT) {
    1568           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsTrigger");
    1569           0 :                 ndr->depth++;
    1570           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1571           0 :                 ndr->depth--;
    1572             :         }
    1573           0 :         ndr->depth--;
    1574             : }
    1575             : 
    1576           0 : static enum ndr_err_code ndr_push_winsif_WinsDoStaticInit(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsDoStaticInit *r)
    1577             : {
    1578           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1579           0 :         if (flags & NDR_IN) {
    1580           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.data_file_path));
    1581           0 :                 if (r->in.data_file_path) {
    1582           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.data_file_path, CH_UTF16)));
    1583           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    1584           0 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.data_file_path, CH_UTF16)));
    1585           0 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.data_file_path, ndr_charset_length(r->in.data_file_path, CH_UTF16), sizeof(uint16_t), CH_UTF16));
    1586             :                 }
    1587           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.delete_file));
    1588             :         }
    1589           0 :         if (flags & NDR_OUT) {
    1590           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1591             :         }
    1592           0 :         return NDR_ERR_SUCCESS;
    1593             : }
    1594             : 
    1595           0 : static enum ndr_err_code ndr_pull_winsif_WinsDoStaticInit(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsDoStaticInit *r)
    1596             : {
    1597           0 :         uint32_t _ptr_data_file_path;
    1598           0 :         uint32_t size_data_file_path_1 = 0;
    1599           0 :         uint32_t length_data_file_path_1 = 0;
    1600           0 :         TALLOC_CTX *_mem_save_data_file_path_0 = NULL;
    1601           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1602           0 :         if (flags & NDR_IN) {
    1603           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_data_file_path));
    1604           0 :                 if (_ptr_data_file_path) {
    1605           0 :                         NDR_PULL_ALLOC(ndr, r->in.data_file_path);
    1606             :                 } else {
    1607           0 :                         r->in.data_file_path = NULL;
    1608             :                 }
    1609           0 :                 if (r->in.data_file_path) {
    1610           0 :                         _mem_save_data_file_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1611           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.data_file_path, 0);
    1612           0 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.data_file_path));
    1613           0 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.data_file_path));
    1614           0 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.data_file_path, &size_data_file_path_1));
    1615           0 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.data_file_path, &length_data_file_path_1));
    1616           0 :                         if (length_data_file_path_1 > size_data_file_path_1) {
    1617           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_data_file_path_1, length_data_file_path_1);
    1618             :                         }
    1619           0 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_data_file_path_1, sizeof(uint16_t)));
    1620           0 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.data_file_path, length_data_file_path_1, sizeof(uint16_t), CH_UTF16));
    1621           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_data_file_path_0, 0);
    1622             :                 }
    1623           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.delete_file));
    1624             :         }
    1625           0 :         if (flags & NDR_OUT) {
    1626             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1627             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1628           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1629             :         }
    1630           0 :         return NDR_ERR_SUCCESS;
    1631             : }
    1632             : 
    1633           0 : _PUBLIC_ void ndr_print_winsif_WinsDoStaticInit(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsDoStaticInit *r)
    1634             : {
    1635           0 :         ndr_print_struct(ndr, name, "winsif_WinsDoStaticInit");
    1636           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1637           0 :         ndr->depth++;
    1638           0 :         if (flags & NDR_SET_VALUES) {
    1639           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1640             :         }
    1641           0 :         if (flags & NDR_IN) {
    1642           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsDoStaticInit");
    1643           0 :                 ndr->depth++;
    1644           0 :                 ndr_print_ptr(ndr, "data_file_path", r->in.data_file_path);
    1645           0 :                 ndr->depth++;
    1646           0 :                 if (r->in.data_file_path) {
    1647           0 :                         ndr_print_string(ndr, "data_file_path", r->in.data_file_path);
    1648             :                 }
    1649           0 :                 ndr->depth--;
    1650           0 :                 ndr_print_uint32(ndr, "delete_file", r->in.delete_file);
    1651           0 :                 ndr->depth--;
    1652             :         }
    1653           0 :         if (flags & NDR_OUT) {
    1654           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsDoStaticInit");
    1655           0 :                 ndr->depth++;
    1656           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1657           0 :                 ndr->depth--;
    1658             :         }
    1659           0 :         ndr->depth--;
    1660             : }
    1661             : 
    1662           0 : static enum ndr_err_code ndr_push_winsif_WinsDoScavenging(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsDoScavenging *r)
    1663             : {
    1664           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1665           0 :         if (flags & NDR_IN) {
    1666           0 :         }
    1667           0 :         if (flags & NDR_OUT) {
    1668           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1669             :         }
    1670           0 :         return NDR_ERR_SUCCESS;
    1671             : }
    1672             : 
    1673           0 : static enum ndr_err_code ndr_pull_winsif_WinsDoScavenging(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsDoScavenging *r)
    1674             : {
    1675           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1676           0 :         if (flags & NDR_IN) {
    1677           0 :         }
    1678           0 :         if (flags & NDR_OUT) {
    1679             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1680             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1681           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1682             :         }
    1683           0 :         return NDR_ERR_SUCCESS;
    1684             : }
    1685             : 
    1686           0 : _PUBLIC_ void ndr_print_winsif_WinsDoScavenging(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsDoScavenging *r)
    1687             : {
    1688           0 :         ndr_print_struct(ndr, name, "winsif_WinsDoScavenging");
    1689           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1690           0 :         ndr->depth++;
    1691           0 :         if (flags & NDR_SET_VALUES) {
    1692           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1693             :         }
    1694           0 :         if (flags & NDR_IN) {
    1695           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsDoScavenging");
    1696           0 :                 ndr->depth++;
    1697           0 :                 ndr->depth--;
    1698             :         }
    1699           0 :         if (flags & NDR_OUT) {
    1700           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsDoScavenging");
    1701           0 :                 ndr->depth++;
    1702           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1703           0 :                 ndr->depth--;
    1704             :         }
    1705           0 :         ndr->depth--;
    1706             : }
    1707             : 
    1708           0 : static enum ndr_err_code ndr_push_winsif_WinsGetDbRecs(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsGetDbRecs *r)
    1709             : {
    1710           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1711           0 :         if (flags & NDR_IN) {
    1712           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.owner_address));
    1713           0 :                 if (r->in.owner_address) {
    1714           0 :                         NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    1715             :                 }
    1716           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.min_version_number));
    1717           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.max_version_number));
    1718             :         }
    1719           0 :         if (flags & NDR_OUT) {
    1720           0 :                 if (r->out.records == NULL) {
    1721           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1722             :                 }
    1723           0 :                 NDR_CHECK(ndr_push_winsif_Records(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.records));
    1724           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1725             :         }
    1726           0 :         return NDR_ERR_SUCCESS;
    1727             : }
    1728             : 
    1729           0 : static enum ndr_err_code ndr_pull_winsif_WinsGetDbRecs(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsGetDbRecs *r)
    1730             : {
    1731           0 :         uint32_t _ptr_owner_address;
    1732           0 :         TALLOC_CTX *_mem_save_owner_address_0 = NULL;
    1733           0 :         TALLOC_CTX *_mem_save_records_0 = NULL;
    1734           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1735           0 :         if (flags & NDR_IN) {
    1736           0 :                 NDR_ZERO_STRUCT(r->out);
    1737             : 
    1738           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_owner_address));
    1739           0 :                 if (_ptr_owner_address) {
    1740           0 :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    1741             :                 } else {
    1742           0 :                         r->in.owner_address = NULL;
    1743             :                 }
    1744           0 :                 if (r->in.owner_address) {
    1745           0 :                         _mem_save_owner_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1746           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.owner_address, 0);
    1747           0 :                         NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    1748           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_owner_address_0, 0);
    1749             :                 }
    1750           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.min_version_number));
    1751           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.max_version_number));
    1752           0 :                 NDR_PULL_ALLOC(ndr, r->out.records);
    1753           0 :                 NDR_ZERO_STRUCTP(r->out.records);
    1754             :         }
    1755           0 :         if (flags & NDR_OUT) {
    1756             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1757             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1758           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1759           0 :                         NDR_PULL_ALLOC(ndr, r->out.records);
    1760             :                 }
    1761           0 :                 _mem_save_records_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1762           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.records, LIBNDR_FLAG_REF_ALLOC);
    1763           0 :                 NDR_CHECK(ndr_pull_winsif_Records(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.records));
    1764           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_records_0, LIBNDR_FLAG_REF_ALLOC);
    1765           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1766             :         }
    1767           0 :         return NDR_ERR_SUCCESS;
    1768             : }
    1769             : 
    1770           0 : _PUBLIC_ void ndr_print_winsif_WinsGetDbRecs(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsGetDbRecs *r)
    1771             : {
    1772           0 :         ndr_print_struct(ndr, name, "winsif_WinsGetDbRecs");
    1773           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1774           0 :         ndr->depth++;
    1775           0 :         if (flags & NDR_SET_VALUES) {
    1776           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1777             :         }
    1778           0 :         if (flags & NDR_IN) {
    1779           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsGetDbRecs");
    1780           0 :                 ndr->depth++;
    1781           0 :                 ndr_print_ptr(ndr, "owner_address", r->in.owner_address);
    1782           0 :                 ndr->depth++;
    1783           0 :                 if (r->in.owner_address) {
    1784           0 :                         ndr_print_winsif_Address(ndr, "owner_address", r->in.owner_address);
    1785             :                 }
    1786           0 :                 ndr->depth--;
    1787           0 :                 ndr_print_hyper(ndr, "min_version_number", r->in.min_version_number);
    1788           0 :                 ndr_print_hyper(ndr, "max_version_number", r->in.max_version_number);
    1789           0 :                 ndr->depth--;
    1790             :         }
    1791           0 :         if (flags & NDR_OUT) {
    1792           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsGetDbRecs");
    1793           0 :                 ndr->depth++;
    1794           0 :                 ndr_print_ptr(ndr, "records", r->out.records);
    1795           0 :                 ndr->depth++;
    1796           0 :                 ndr_print_winsif_Records(ndr, "records", r->out.records);
    1797           0 :                 ndr->depth--;
    1798           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1799           0 :                 ndr->depth--;
    1800             :         }
    1801           0 :         ndr->depth--;
    1802             : }
    1803             : 
    1804           0 : static enum ndr_err_code ndr_push_winsif_WinsTerm(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsTerm *r)
    1805             : {
    1806           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1807           0 :         if (flags & NDR_IN) {
    1808           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.abrupt_termination));
    1809             :         }
    1810           0 :         if (flags & NDR_OUT) {
    1811           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1812             :         }
    1813           0 :         return NDR_ERR_SUCCESS;
    1814             : }
    1815             : 
    1816           0 : static enum ndr_err_code ndr_pull_winsif_WinsTerm(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsTerm *r)
    1817             : {
    1818           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1819           0 :         if (flags & NDR_IN) {
    1820           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.abrupt_termination));
    1821             :         }
    1822           0 :         if (flags & NDR_OUT) {
    1823             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1824             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1825           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1826             :         }
    1827           0 :         return NDR_ERR_SUCCESS;
    1828             : }
    1829             : 
    1830           0 : _PUBLIC_ void ndr_print_winsif_WinsTerm(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsTerm *r)
    1831             : {
    1832           0 :         ndr_print_struct(ndr, name, "winsif_WinsTerm");
    1833           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1834           0 :         ndr->depth++;
    1835           0 :         if (flags & NDR_SET_VALUES) {
    1836           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1837             :         }
    1838           0 :         if (flags & NDR_IN) {
    1839           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsTerm");
    1840           0 :                 ndr->depth++;
    1841           0 :                 ndr_print_uint16(ndr, "abrupt_termination", r->in.abrupt_termination);
    1842           0 :                 ndr->depth--;
    1843             :         }
    1844           0 :         if (flags & NDR_OUT) {
    1845           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsTerm");
    1846           0 :                 ndr->depth++;
    1847           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1848           0 :                 ndr->depth--;
    1849             :         }
    1850           0 :         ndr->depth--;
    1851             : }
    1852             : 
    1853           0 : static enum ndr_err_code ndr_push_winsif_WinsBackup(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsBackup *r)
    1854             : {
    1855           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1856           0 :         if (flags & NDR_IN) {
    1857           0 :                 if (r->in.backup_path == NULL) {
    1858           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1859             :                 }
    1860           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.backup_path, CH_DOS)));
    1861           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    1862           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.backup_path, CH_DOS)));
    1863           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.backup_path, ndr_charset_length(r->in.backup_path, CH_DOS), sizeof(uint8_t), CH_DOS));
    1864           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.incremental));
    1865             :         }
    1866           0 :         if (flags & NDR_OUT) {
    1867           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1868             :         }
    1869           0 :         return NDR_ERR_SUCCESS;
    1870             : }
    1871             : 
    1872           0 : static enum ndr_err_code ndr_pull_winsif_WinsBackup(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsBackup *r)
    1873             : {
    1874           0 :         uint32_t size_backup_path_1 = 0;
    1875           0 :         uint32_t length_backup_path_1 = 0;
    1876           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1877           0 :         if (flags & NDR_IN) {
    1878           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->in.backup_path));
    1879           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->in.backup_path));
    1880           0 :                 NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.backup_path, &size_backup_path_1));
    1881           0 :                 NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.backup_path, &length_backup_path_1));
    1882           0 :                 if (length_backup_path_1 > size_backup_path_1) {
    1883           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_backup_path_1, length_backup_path_1);
    1884             :                 }
    1885           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_backup_path_1, sizeof(uint8_t)));
    1886           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.backup_path, length_backup_path_1, sizeof(uint8_t), CH_DOS));
    1887           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.incremental));
    1888             :         }
    1889           0 :         if (flags & NDR_OUT) {
    1890             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1891             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1892           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1893             :         }
    1894           0 :         return NDR_ERR_SUCCESS;
    1895             : }
    1896             : 
    1897           0 : _PUBLIC_ void ndr_print_winsif_WinsBackup(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsBackup *r)
    1898             : {
    1899           0 :         ndr_print_struct(ndr, name, "winsif_WinsBackup");
    1900           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1901           0 :         ndr->depth++;
    1902           0 :         if (flags & NDR_SET_VALUES) {
    1903           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1904             :         }
    1905           0 :         if (flags & NDR_IN) {
    1906           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsBackup");
    1907           0 :                 ndr->depth++;
    1908           0 :                 ndr_print_ptr(ndr, "backup_path", r->in.backup_path);
    1909           0 :                 ndr->depth++;
    1910           0 :                 ndr_print_string(ndr, "backup_path", r->in.backup_path);
    1911           0 :                 ndr->depth--;
    1912           0 :                 ndr_print_uint16(ndr, "incremental", r->in.incremental);
    1913           0 :                 ndr->depth--;
    1914             :         }
    1915           0 :         if (flags & NDR_OUT) {
    1916           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsBackup");
    1917           0 :                 ndr->depth++;
    1918           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1919           0 :                 ndr->depth--;
    1920             :         }
    1921           0 :         ndr->depth--;
    1922             : }
    1923             : 
    1924           0 : static enum ndr_err_code ndr_push_winsif_WinsDelDbRecs(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsDelDbRecs *r)
    1925             : {
    1926           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1927           0 :         if (flags & NDR_IN) {
    1928           0 :                 if (r->in.owner_address == NULL) {
    1929           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    1930             :                 }
    1931           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    1932           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.min_version_number));
    1933           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.max_version_number));
    1934             :         }
    1935           0 :         if (flags & NDR_OUT) {
    1936           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    1937             :         }
    1938           0 :         return NDR_ERR_SUCCESS;
    1939             : }
    1940             : 
    1941           0 : static enum ndr_err_code ndr_pull_winsif_WinsDelDbRecs(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsDelDbRecs *r)
    1942             : {
    1943           0 :         TALLOC_CTX *_mem_save_owner_address_0 = NULL;
    1944           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    1945           0 :         if (flags & NDR_IN) {
    1946           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    1947           0 :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    1948             :                 }
    1949           0 :                 _mem_save_owner_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1950           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.owner_address, LIBNDR_FLAG_REF_ALLOC);
    1951           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    1952           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_owner_address_0, LIBNDR_FLAG_REF_ALLOC);
    1953           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.min_version_number));
    1954           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.max_version_number));
    1955             :         }
    1956           0 :         if (flags & NDR_OUT) {
    1957             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    1958             :                 if (r->in.owner_address == NULL) {
    1959             :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    1960             :                         NDR_ZERO_STRUCTP(r->in.owner_address);
    1961             :                 }
    1962             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    1963           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    1964             :         }
    1965           0 :         return NDR_ERR_SUCCESS;
    1966             : }
    1967             : 
    1968           0 : _PUBLIC_ void ndr_print_winsif_WinsDelDbRecs(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsDelDbRecs *r)
    1969             : {
    1970           0 :         ndr_print_struct(ndr, name, "winsif_WinsDelDbRecs");
    1971           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1972           0 :         ndr->depth++;
    1973           0 :         if (flags & NDR_SET_VALUES) {
    1974           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    1975             :         }
    1976           0 :         if (flags & NDR_IN) {
    1977           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsDelDbRecs");
    1978           0 :                 ndr->depth++;
    1979           0 :                 ndr_print_ptr(ndr, "owner_address", r->in.owner_address);
    1980           0 :                 ndr->depth++;
    1981           0 :                 ndr_print_winsif_Address(ndr, "owner_address", r->in.owner_address);
    1982           0 :                 ndr->depth--;
    1983           0 :                 ndr_print_hyper(ndr, "min_version_number", r->in.min_version_number);
    1984           0 :                 ndr_print_hyper(ndr, "max_version_number", r->in.max_version_number);
    1985           0 :                 ndr->depth--;
    1986             :         }
    1987           0 :         if (flags & NDR_OUT) {
    1988           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsDelDbRecs");
    1989           0 :                 ndr->depth++;
    1990           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    1991           0 :                 ndr->depth--;
    1992             :         }
    1993           0 :         ndr->depth--;
    1994             : }
    1995             : 
    1996           0 : static enum ndr_err_code ndr_push_winsif_WinsPullRange(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsPullRange *r)
    1997             : {
    1998           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    1999           0 :         if (flags & NDR_IN) {
    2000           0 :                 if (r->in.server_address == NULL) {
    2001           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2002             :                 }
    2003           0 :                 if (r->in.owner_address == NULL) {
    2004           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2005             :                 }
    2006           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, r->in.server_address));
    2007           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    2008           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.min_version_number));
    2009           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.max_version_number));
    2010             :         }
    2011           0 :         if (flags & NDR_OUT) {
    2012           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2013             :         }
    2014           0 :         return NDR_ERR_SUCCESS;
    2015             : }
    2016             : 
    2017           0 : static enum ndr_err_code ndr_pull_winsif_WinsPullRange(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsPullRange *r)
    2018             : {
    2019           0 :         TALLOC_CTX *_mem_save_server_address_0 = NULL;
    2020           0 :         TALLOC_CTX *_mem_save_owner_address_0 = NULL;
    2021           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2022           0 :         if (flags & NDR_IN) {
    2023           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2024           0 :                         NDR_PULL_ALLOC(ndr, r->in.server_address);
    2025             :                 }
    2026           0 :                 _mem_save_server_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2027           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.server_address, LIBNDR_FLAG_REF_ALLOC);
    2028           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, r->in.server_address));
    2029           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_address_0, LIBNDR_FLAG_REF_ALLOC);
    2030           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2031           0 :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    2032             :                 }
    2033           0 :                 _mem_save_owner_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2034           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.owner_address, LIBNDR_FLAG_REF_ALLOC);
    2035           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    2036           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_owner_address_0, LIBNDR_FLAG_REF_ALLOC);
    2037           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.min_version_number));
    2038           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.max_version_number));
    2039             :         }
    2040           0 :         if (flags & NDR_OUT) {
    2041             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2042             :                 if (r->in.server_address == NULL) {
    2043             :                         NDR_PULL_ALLOC(ndr, r->in.server_address);
    2044             :                         NDR_ZERO_STRUCTP(r->in.server_address);
    2045             :                 }
    2046             :                 if (r->in.owner_address == NULL) {
    2047             :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    2048             :                         NDR_ZERO_STRUCTP(r->in.owner_address);
    2049             :                 }
    2050             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2051           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2052             :         }
    2053           0 :         return NDR_ERR_SUCCESS;
    2054             : }
    2055             : 
    2056           0 : _PUBLIC_ void ndr_print_winsif_WinsPullRange(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsPullRange *r)
    2057             : {
    2058           0 :         ndr_print_struct(ndr, name, "winsif_WinsPullRange");
    2059           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2060           0 :         ndr->depth++;
    2061           0 :         if (flags & NDR_SET_VALUES) {
    2062           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2063             :         }
    2064           0 :         if (flags & NDR_IN) {
    2065           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsPullRange");
    2066           0 :                 ndr->depth++;
    2067           0 :                 ndr_print_ptr(ndr, "server_address", r->in.server_address);
    2068           0 :                 ndr->depth++;
    2069           0 :                 ndr_print_winsif_Address(ndr, "server_address", r->in.server_address);
    2070           0 :                 ndr->depth--;
    2071           0 :                 ndr_print_ptr(ndr, "owner_address", r->in.owner_address);
    2072           0 :                 ndr->depth++;
    2073           0 :                 ndr_print_winsif_Address(ndr, "owner_address", r->in.owner_address);
    2074           0 :                 ndr->depth--;
    2075           0 :                 ndr_print_hyper(ndr, "min_version_number", r->in.min_version_number);
    2076           0 :                 ndr_print_hyper(ndr, "max_version_number", r->in.max_version_number);
    2077           0 :                 ndr->depth--;
    2078             :         }
    2079           0 :         if (flags & NDR_OUT) {
    2080           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsPullRange");
    2081           0 :                 ndr->depth++;
    2082           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2083           0 :                 ndr->depth--;
    2084             :         }
    2085           0 :         ndr->depth--;
    2086             : }
    2087             : 
    2088           0 : static enum ndr_err_code ndr_push_winsif_WinsSetPriorityClass(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsSetPriorityClass *r)
    2089             : {
    2090           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2091           0 :         if (flags & NDR_IN) {
    2092           0 :                 NDR_CHECK(ndr_push_winsif_PriorityClass(ndr, NDR_SCALARS, r->in.prioritiy_class));
    2093             :         }
    2094           0 :         if (flags & NDR_OUT) {
    2095           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2096             :         }
    2097           0 :         return NDR_ERR_SUCCESS;
    2098             : }
    2099             : 
    2100           0 : static enum ndr_err_code ndr_pull_winsif_WinsSetPriorityClass(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsSetPriorityClass *r)
    2101             : {
    2102           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2103           0 :         if (flags & NDR_IN) {
    2104           0 :                 NDR_CHECK(ndr_pull_winsif_PriorityClass(ndr, NDR_SCALARS, &r->in.prioritiy_class));
    2105             :         }
    2106           0 :         if (flags & NDR_OUT) {
    2107             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2108             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2109           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2110             :         }
    2111           0 :         return NDR_ERR_SUCCESS;
    2112             : }
    2113             : 
    2114           0 : _PUBLIC_ void ndr_print_winsif_WinsSetPriorityClass(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsSetPriorityClass *r)
    2115             : {
    2116           0 :         ndr_print_struct(ndr, name, "winsif_WinsSetPriorityClass");
    2117           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2118           0 :         ndr->depth++;
    2119           0 :         if (flags & NDR_SET_VALUES) {
    2120           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2121             :         }
    2122           0 :         if (flags & NDR_IN) {
    2123           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsSetPriorityClass");
    2124           0 :                 ndr->depth++;
    2125           0 :                 ndr_print_winsif_PriorityClass(ndr, "prioritiy_class", r->in.prioritiy_class);
    2126           0 :                 ndr->depth--;
    2127             :         }
    2128           0 :         if (flags & NDR_OUT) {
    2129           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsSetPriorityClass");
    2130           0 :                 ndr->depth++;
    2131           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2132           0 :                 ndr->depth--;
    2133             :         }
    2134           0 :         ndr->depth--;
    2135             : }
    2136             : 
    2137           0 : static enum ndr_err_code ndr_push_winsif_WinsResetCounters(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsResetCounters *r)
    2138             : {
    2139           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2140           0 :         if (flags & NDR_IN) {
    2141           0 :         }
    2142           0 :         if (flags & NDR_OUT) {
    2143           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2144             :         }
    2145           0 :         return NDR_ERR_SUCCESS;
    2146             : }
    2147             : 
    2148           0 : static enum ndr_err_code ndr_pull_winsif_WinsResetCounters(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsResetCounters *r)
    2149             : {
    2150           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2151           0 :         if (flags & NDR_IN) {
    2152           0 :         }
    2153           0 :         if (flags & NDR_OUT) {
    2154             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2155             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2156           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2157             :         }
    2158           0 :         return NDR_ERR_SUCCESS;
    2159             : }
    2160             : 
    2161           0 : _PUBLIC_ void ndr_print_winsif_WinsResetCounters(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsResetCounters *r)
    2162             : {
    2163           0 :         ndr_print_struct(ndr, name, "winsif_WinsResetCounters");
    2164           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2165           0 :         ndr->depth++;
    2166           0 :         if (flags & NDR_SET_VALUES) {
    2167           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2168             :         }
    2169           0 :         if (flags & NDR_IN) {
    2170           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsResetCounters");
    2171           0 :                 ndr->depth++;
    2172           0 :                 ndr->depth--;
    2173             :         }
    2174           0 :         if (flags & NDR_OUT) {
    2175           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsResetCounters");
    2176           0 :                 ndr->depth++;
    2177           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2178           0 :                 ndr->depth--;
    2179             :         }
    2180           0 :         ndr->depth--;
    2181             : }
    2182             : 
    2183           0 : static enum ndr_err_code ndr_push_winsif_WinsWorkerThreadUpdate(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsWorkerThreadUpdate *r)
    2184             : {
    2185           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2186           0 :         if (flags & NDR_IN) {
    2187           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_of_threads));
    2188             :         }
    2189           0 :         if (flags & NDR_OUT) {
    2190           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2191             :         }
    2192           0 :         return NDR_ERR_SUCCESS;
    2193             : }
    2194             : 
    2195           0 : static enum ndr_err_code ndr_pull_winsif_WinsWorkerThreadUpdate(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsWorkerThreadUpdate *r)
    2196             : {
    2197           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2198           0 :         if (flags & NDR_IN) {
    2199           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_of_threads));
    2200             :         }
    2201           0 :         if (flags & NDR_OUT) {
    2202             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2203             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2204           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2205             :         }
    2206           0 :         return NDR_ERR_SUCCESS;
    2207             : }
    2208             : 
    2209           0 : _PUBLIC_ void ndr_print_winsif_WinsWorkerThreadUpdate(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsWorkerThreadUpdate *r)
    2210             : {
    2211           0 :         ndr_print_struct(ndr, name, "winsif_WinsWorkerThreadUpdate");
    2212           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2213           0 :         ndr->depth++;
    2214           0 :         if (flags & NDR_SET_VALUES) {
    2215           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2216             :         }
    2217           0 :         if (flags & NDR_IN) {
    2218           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsWorkerThreadUpdate");
    2219           0 :                 ndr->depth++;
    2220           0 :                 ndr_print_uint32(ndr, "num_of_threads", r->in.num_of_threads);
    2221           0 :                 ndr->depth--;
    2222             :         }
    2223           0 :         if (flags & NDR_OUT) {
    2224           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsWorkerThreadUpdate");
    2225           0 :                 ndr->depth++;
    2226           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2227           0 :                 ndr->depth--;
    2228             :         }
    2229           0 :         ndr->depth--;
    2230             : }
    2231             : 
    2232           0 : static enum ndr_err_code ndr_push_winsif_WinsGetNameAndAdd(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsGetNameAndAdd *r)
    2233             : {
    2234           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2235           0 :         if (flags & NDR_IN) {
    2236           0 :         }
    2237           0 :         if (flags & NDR_OUT) {
    2238           0 :                 if (r->out.server_address == NULL) {
    2239           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2240             :                 }
    2241           0 :                 if (r->out.unc_name == NULL) {
    2242           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2243             :                 }
    2244           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, r->out.server_address));
    2245           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 80));
    2246           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
    2247           0 :                 NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 80));
    2248           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->out.unc_name, 80, sizeof(uint8_t), CH_DOS));
    2249           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2250             :         }
    2251           0 :         return NDR_ERR_SUCCESS;
    2252             : }
    2253             : 
    2254           0 : static enum ndr_err_code ndr_pull_winsif_WinsGetNameAndAdd(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsGetNameAndAdd *r)
    2255             : {
    2256           0 :         uint32_t size_unc_name_1 = 0;
    2257           0 :         uint32_t length_unc_name_1 = 0;
    2258           0 :         TALLOC_CTX *_mem_save_server_address_0 = NULL;
    2259           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2260           0 :         if (flags & NDR_IN) {
    2261           0 :                 NDR_ZERO_STRUCT(r->out);
    2262             : 
    2263           0 :                 NDR_PULL_ALLOC(ndr, r->out.server_address);
    2264           0 :                 NDR_ZERO_STRUCTP(r->out.server_address);
    2265             :         }
    2266           0 :         if (flags & NDR_OUT) {
    2267             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2268             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2269           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2270           0 :                         NDR_PULL_ALLOC(ndr, r->out.server_address);
    2271             :                 }
    2272           0 :                 _mem_save_server_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2273           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.server_address, LIBNDR_FLAG_REF_ALLOC);
    2274           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, r->out.server_address));
    2275           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_address_0, LIBNDR_FLAG_REF_ALLOC);
    2276           0 :                 NDR_CHECK(ndr_pull_array_size(ndr, &r->out.unc_name));
    2277           0 :                 NDR_CHECK(ndr_pull_array_length(ndr, &r->out.unc_name));
    2278           0 :                 NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->out.unc_name, &size_unc_name_1));
    2279           0 :                 NDR_CHECK(ndr_get_array_length(ndr, (void*)&r->out.unc_name, &length_unc_name_1));
    2280           0 :                 if (length_unc_name_1 > size_unc_name_1) {
    2281           0 :                         return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_unc_name_1, length_unc_name_1);
    2282             :                 }
    2283           0 :                 NDR_CHECK(ndr_check_string_terminator(ndr, length_unc_name_1, sizeof(uint8_t)));
    2284           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->out.unc_name, length_unc_name_1, sizeof(uint8_t), CH_DOS));
    2285           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2286           0 :                 if (r->out.unc_name) {
    2287           0 :                         NDR_CHECK(ndr_check_steal_array_size(ndr, (void*)&r->out.unc_name, 80));
    2288             :                 }
    2289           0 :                 if (r->out.unc_name) {
    2290           0 :                         NDR_CHECK(ndr_check_steal_array_length(ndr, (void*)&r->out.unc_name, 80));
    2291             :                 }
    2292             :         }
    2293           0 :         return NDR_ERR_SUCCESS;
    2294             : }
    2295             : 
    2296           0 : _PUBLIC_ void ndr_print_winsif_WinsGetNameAndAdd(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsGetNameAndAdd *r)
    2297             : {
    2298           0 :         ndr_print_struct(ndr, name, "winsif_WinsGetNameAndAdd");
    2299           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2300           0 :         ndr->depth++;
    2301           0 :         if (flags & NDR_SET_VALUES) {
    2302           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2303             :         }
    2304           0 :         if (flags & NDR_IN) {
    2305           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsGetNameAndAdd");
    2306           0 :                 ndr->depth++;
    2307           0 :                 ndr->depth--;
    2308             :         }
    2309           0 :         if (flags & NDR_OUT) {
    2310           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsGetNameAndAdd");
    2311           0 :                 ndr->depth++;
    2312           0 :                 ndr_print_ptr(ndr, "server_address", r->out.server_address);
    2313           0 :                 ndr->depth++;
    2314           0 :                 ndr_print_winsif_Address(ndr, "server_address", r->out.server_address);
    2315           0 :                 ndr->depth--;
    2316           0 :                 ndr_print_ptr(ndr, "unc_name", r->out.unc_name);
    2317           0 :                 ndr->depth++;
    2318           0 :                 ndr_print_string(ndr, "unc_name", r->out.unc_name);
    2319           0 :                 ndr->depth--;
    2320           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2321           0 :                 ndr->depth--;
    2322             :         }
    2323           0 :         ndr->depth--;
    2324             : }
    2325             : 
    2326           0 : static enum ndr_err_code ndr_push_winsif_WinsGetBrowserNames_Old(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsGetBrowserNames_Old *r)
    2327             : {
    2328           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2329           0 :         if (flags & NDR_IN) {
    2330           0 :         }
    2331           0 :         if (flags & NDR_OUT) {
    2332           0 :                 if (r->out.names == NULL) {
    2333           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2334             :                 }
    2335           0 :                 NDR_CHECK(ndr_push_winsif_BrowserNames(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
    2336           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2337             :         }
    2338           0 :         return NDR_ERR_SUCCESS;
    2339             : }
    2340             : 
    2341           0 : static enum ndr_err_code ndr_pull_winsif_WinsGetBrowserNames_Old(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsGetBrowserNames_Old *r)
    2342             : {
    2343           0 :         TALLOC_CTX *_mem_save_names_0 = NULL;
    2344           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2345           0 :         if (flags & NDR_IN) {
    2346           0 :                 NDR_ZERO_STRUCT(r->out);
    2347             : 
    2348           0 :                 NDR_PULL_ALLOC(ndr, r->out.names);
    2349           0 :                 NDR_ZERO_STRUCTP(r->out.names);
    2350             :         }
    2351           0 :         if (flags & NDR_OUT) {
    2352             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2353             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2354           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2355           0 :                         NDR_PULL_ALLOC(ndr, r->out.names);
    2356             :                 }
    2357           0 :                 _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2358           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.names, LIBNDR_FLAG_REF_ALLOC);
    2359           0 :                 NDR_CHECK(ndr_pull_winsif_BrowserNames(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
    2360           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
    2361           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2362             :         }
    2363           0 :         return NDR_ERR_SUCCESS;
    2364             : }
    2365             : 
    2366           0 : _PUBLIC_ void ndr_print_winsif_WinsGetBrowserNames_Old(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsGetBrowserNames_Old *r)
    2367             : {
    2368           0 :         ndr_print_struct(ndr, name, "winsif_WinsGetBrowserNames_Old");
    2369           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2370           0 :         ndr->depth++;
    2371           0 :         if (flags & NDR_SET_VALUES) {
    2372           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2373             :         }
    2374           0 :         if (flags & NDR_IN) {
    2375           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsGetBrowserNames_Old");
    2376           0 :                 ndr->depth++;
    2377           0 :                 ndr->depth--;
    2378             :         }
    2379           0 :         if (flags & NDR_OUT) {
    2380           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsGetBrowserNames_Old");
    2381           0 :                 ndr->depth++;
    2382           0 :                 ndr_print_ptr(ndr, "names", r->out.names);
    2383           0 :                 ndr->depth++;
    2384           0 :                 ndr_print_winsif_BrowserNames(ndr, "names", r->out.names);
    2385           0 :                 ndr->depth--;
    2386           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2387           0 :                 ndr->depth--;
    2388             :         }
    2389           0 :         ndr->depth--;
    2390             : }
    2391             : 
    2392           0 : static enum ndr_err_code ndr_push_winsif_WinsDeleteWins(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsDeleteWins *r)
    2393             : {
    2394           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2395           0 :         if (flags & NDR_IN) {
    2396           0 :                 if (r->in.owner_address == NULL) {
    2397           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2398             :                 }
    2399           0 :                 NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    2400             :         }
    2401           0 :         if (flags & NDR_OUT) {
    2402           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2403             :         }
    2404           0 :         return NDR_ERR_SUCCESS;
    2405             : }
    2406             : 
    2407           0 : static enum ndr_err_code ndr_pull_winsif_WinsDeleteWins(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsDeleteWins *r)
    2408             : {
    2409           0 :         TALLOC_CTX *_mem_save_owner_address_0 = NULL;
    2410           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2411           0 :         if (flags & NDR_IN) {
    2412           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2413           0 :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    2414             :                 }
    2415           0 :                 _mem_save_owner_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2416           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.owner_address, LIBNDR_FLAG_REF_ALLOC);
    2417           0 :                 NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    2418           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_owner_address_0, LIBNDR_FLAG_REF_ALLOC);
    2419             :         }
    2420           0 :         if (flags & NDR_OUT) {
    2421             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2422             :                 if (r->in.owner_address == NULL) {
    2423             :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    2424             :                         NDR_ZERO_STRUCTP(r->in.owner_address);
    2425             :                 }
    2426             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2427           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2428             :         }
    2429           0 :         return NDR_ERR_SUCCESS;
    2430             : }
    2431             : 
    2432           0 : _PUBLIC_ void ndr_print_winsif_WinsDeleteWins(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsDeleteWins *r)
    2433             : {
    2434           0 :         ndr_print_struct(ndr, name, "winsif_WinsDeleteWins");
    2435           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2436           0 :         ndr->depth++;
    2437           0 :         if (flags & NDR_SET_VALUES) {
    2438           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2439             :         }
    2440           0 :         if (flags & NDR_IN) {
    2441           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsDeleteWins");
    2442           0 :                 ndr->depth++;
    2443           0 :                 ndr_print_ptr(ndr, "owner_address", r->in.owner_address);
    2444           0 :                 ndr->depth++;
    2445           0 :                 ndr_print_winsif_Address(ndr, "owner_address", r->in.owner_address);
    2446           0 :                 ndr->depth--;
    2447           0 :                 ndr->depth--;
    2448             :         }
    2449           0 :         if (flags & NDR_OUT) {
    2450           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsDeleteWins");
    2451           0 :                 ndr->depth++;
    2452           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2453           0 :                 ndr->depth--;
    2454             :         }
    2455           0 :         ndr->depth--;
    2456             : }
    2457             : 
    2458           0 : static enum ndr_err_code ndr_push_winsif_WinsSetFlags(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsSetFlags *r)
    2459             : {
    2460           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2461           0 :         if (flags & NDR_IN) {
    2462           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
    2463             :         }
    2464           0 :         if (flags & NDR_OUT) {
    2465           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2466             :         }
    2467           0 :         return NDR_ERR_SUCCESS;
    2468             : }
    2469             : 
    2470           0 : static enum ndr_err_code ndr_pull_winsif_WinsSetFlags(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsSetFlags *r)
    2471             : {
    2472           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2473           0 :         if (flags & NDR_IN) {
    2474           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
    2475             :         }
    2476           0 :         if (flags & NDR_OUT) {
    2477             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2478             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2479           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2480             :         }
    2481           0 :         return NDR_ERR_SUCCESS;
    2482             : }
    2483             : 
    2484           0 : _PUBLIC_ void ndr_print_winsif_WinsSetFlags(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsSetFlags *r)
    2485             : {
    2486           0 :         ndr_print_struct(ndr, name, "winsif_WinsSetFlags");
    2487           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2488           0 :         ndr->depth++;
    2489           0 :         if (flags & NDR_SET_VALUES) {
    2490           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2491             :         }
    2492           0 :         if (flags & NDR_IN) {
    2493           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsSetFlags");
    2494           0 :                 ndr->depth++;
    2495           0 :                 ndr_print_uint32(ndr, "flags", r->in.flags);
    2496           0 :                 ndr->depth--;
    2497             :         }
    2498           0 :         if (flags & NDR_OUT) {
    2499           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsSetFlags");
    2500           0 :                 ndr->depth++;
    2501           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2502           0 :                 ndr->depth--;
    2503             :         }
    2504           0 :         ndr->depth--;
    2505             : }
    2506             : 
    2507           0 : static enum ndr_err_code ndr_push_winsif_WinsGetBrowserNames(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsGetBrowserNames *r)
    2508             : {
    2509           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2510           0 :         if (flags & NDR_IN) {
    2511           0 :                 if (r->in.server_handle == NULL) {
    2512           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2513             :                 }
    2514           0 :                 NDR_CHECK(ndr_push_winsif_BindData(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.server_handle));
    2515             :         }
    2516           0 :         if (flags & NDR_OUT) {
    2517           0 :                 if (r->out.names == NULL) {
    2518           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2519             :                 }
    2520           0 :                 NDR_CHECK(ndr_push_winsif_BrowserNames(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
    2521           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2522             :         }
    2523           0 :         return NDR_ERR_SUCCESS;
    2524             : }
    2525             : 
    2526           0 : static enum ndr_err_code ndr_pull_winsif_WinsGetBrowserNames(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsGetBrowserNames *r)
    2527             : {
    2528           0 :         TALLOC_CTX *_mem_save_server_handle_0 = NULL;
    2529           0 :         TALLOC_CTX *_mem_save_names_0 = NULL;
    2530           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2531           0 :         if (flags & NDR_IN) {
    2532           0 :                 NDR_ZERO_STRUCT(r->out);
    2533             : 
    2534           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2535           0 :                         NDR_PULL_ALLOC(ndr, r->in.server_handle);
    2536             :                 }
    2537           0 :                 _mem_save_server_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2538           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.server_handle, LIBNDR_FLAG_REF_ALLOC);
    2539           0 :                 NDR_CHECK(ndr_pull_winsif_BindData(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.server_handle));
    2540           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_handle_0, LIBNDR_FLAG_REF_ALLOC);
    2541           0 :                 NDR_PULL_ALLOC(ndr, r->out.names);
    2542           0 :                 NDR_ZERO_STRUCTP(r->out.names);
    2543             :         }
    2544           0 :         if (flags & NDR_OUT) {
    2545             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2546             :                 if (r->in.server_handle == NULL) {
    2547             :                         NDR_PULL_ALLOC(ndr, r->in.server_handle);
    2548             :                         NDR_ZERO_STRUCTP(r->in.server_handle);
    2549             :                 }
    2550             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2551           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2552           0 :                         NDR_PULL_ALLOC(ndr, r->out.names);
    2553             :                 }
    2554           0 :                 _mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2555           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.names, LIBNDR_FLAG_REF_ALLOC);
    2556           0 :                 NDR_CHECK(ndr_pull_winsif_BrowserNames(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
    2557           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
    2558           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2559             :         }
    2560           0 :         return NDR_ERR_SUCCESS;
    2561             : }
    2562             : 
    2563           0 : _PUBLIC_ void ndr_print_winsif_WinsGetBrowserNames(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsGetBrowserNames *r)
    2564             : {
    2565           0 :         ndr_print_struct(ndr, name, "winsif_WinsGetBrowserNames");
    2566           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2567           0 :         ndr->depth++;
    2568           0 :         if (flags & NDR_SET_VALUES) {
    2569           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2570             :         }
    2571           0 :         if (flags & NDR_IN) {
    2572           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsGetBrowserNames");
    2573           0 :                 ndr->depth++;
    2574           0 :                 ndr_print_ptr(ndr, "server_handle", r->in.server_handle);
    2575           0 :                 ndr->depth++;
    2576           0 :                 ndr_print_winsif_BindData(ndr, "server_handle", r->in.server_handle);
    2577           0 :                 ndr->depth--;
    2578           0 :                 ndr->depth--;
    2579             :         }
    2580           0 :         if (flags & NDR_OUT) {
    2581           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsGetBrowserNames");
    2582           0 :                 ndr->depth++;
    2583           0 :                 ndr_print_ptr(ndr, "names", r->out.names);
    2584           0 :                 ndr->depth++;
    2585           0 :                 ndr_print_winsif_BrowserNames(ndr, "names", r->out.names);
    2586           0 :                 ndr->depth--;
    2587           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2588           0 :                 ndr->depth--;
    2589             :         }
    2590           0 :         ndr->depth--;
    2591             : }
    2592             : 
    2593           0 : static enum ndr_err_code ndr_push_winsif_WinsGetDbRecsByName(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsGetDbRecsByName *r)
    2594             : {
    2595           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2596           0 :         if (flags & NDR_IN) {
    2597           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.owner_address));
    2598           0 :                 if (r->in.owner_address) {
    2599           0 :                         NDR_CHECK(ndr_push_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    2600             :                 }
    2601           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.search_backward));
    2602           0 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.name));
    2603           0 :                 if (r->in.name) {
    2604           0 :                         NDR_CHECK(ndr_push_wrepl_nbt_name(ndr, NDR_SCALARS, r->in.name));
    2605             :                 }
    2606           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.name?16:0));
    2607           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.num_records_desired));
    2608           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.only_statics));
    2609             :         }
    2610           0 :         if (flags & NDR_OUT) {
    2611           0 :                 if (r->out.records == NULL) {
    2612           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2613             :                 }
    2614           0 :                 NDR_CHECK(ndr_push_winsif_Records(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.records));
    2615           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2616             :         }
    2617           0 :         return NDR_ERR_SUCCESS;
    2618             : }
    2619             : 
    2620           0 : static enum ndr_err_code ndr_pull_winsif_WinsGetDbRecsByName(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsGetDbRecsByName *r)
    2621             : {
    2622           0 :         uint32_t _ptr_owner_address;
    2623           0 :         uint32_t _ptr_name;
    2624           0 :         TALLOC_CTX *_mem_save_owner_address_0 = NULL;
    2625           0 :         TALLOC_CTX *_mem_save_name_0 = NULL;
    2626           0 :         TALLOC_CTX *_mem_save_records_0 = NULL;
    2627           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2628           0 :         if (flags & NDR_IN) {
    2629           0 :                 NDR_ZERO_STRUCT(r->out);
    2630             : 
    2631           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_owner_address));
    2632           0 :                 if (_ptr_owner_address) {
    2633           0 :                         NDR_PULL_ALLOC(ndr, r->in.owner_address);
    2634             :                 } else {
    2635           0 :                         r->in.owner_address = NULL;
    2636             :                 }
    2637           0 :                 if (r->in.owner_address) {
    2638           0 :                         _mem_save_owner_address_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2639           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.owner_address, 0);
    2640           0 :                         NDR_CHECK(ndr_pull_winsif_Address(ndr, NDR_SCALARS, r->in.owner_address));
    2641           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_owner_address_0, 0);
    2642             :                 }
    2643           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.search_backward));
    2644           0 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_name));
    2645           0 :                 if (_ptr_name) {
    2646           0 :                         NDR_PULL_ALLOC(ndr, r->in.name);
    2647             :                 } else {
    2648           0 :                         r->in.name = NULL;
    2649             :                 }
    2650           0 :                 if (r->in.name) {
    2651           0 :                         _mem_save_name_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2652           0 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.name, 0);
    2653           0 :                         NDR_CHECK(ndr_pull_wrepl_nbt_name(ndr, NDR_SCALARS, &r->in.name));
    2654           0 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_name_0, 0);
    2655             :                 }
    2656           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.name_len));
    2657           0 :                 if (r->in.name_len > 16) {
    2658           0 :                         return ndr_pull_error(ndr, NDR_ERR_RANGE, "value (%"PRIu32") out of range (%"PRIu32" - %"PRIu32")", (uint32_t)(r->in.name_len), (uint32_t)(0), (uint32_t)(16));
    2659             :                 }
    2660           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.num_records_desired));
    2661           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.only_statics));
    2662           0 :                 NDR_PULL_ALLOC(ndr, r->out.records);
    2663           0 :                 NDR_ZERO_STRUCTP(r->out.records);
    2664             :         }
    2665           0 :         if (flags & NDR_OUT) {
    2666             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2667             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2668           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2669           0 :                         NDR_PULL_ALLOC(ndr, r->out.records);
    2670             :                 }
    2671           0 :                 _mem_save_records_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2672           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.records, LIBNDR_FLAG_REF_ALLOC);
    2673           0 :                 NDR_CHECK(ndr_pull_winsif_Records(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.records));
    2674           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_records_0, LIBNDR_FLAG_REF_ALLOC);
    2675           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2676             :         }
    2677           0 :         return NDR_ERR_SUCCESS;
    2678             : }
    2679             : 
    2680           0 : _PUBLIC_ void ndr_print_winsif_WinsGetDbRecsByName(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsGetDbRecsByName *r)
    2681             : {
    2682           0 :         ndr_print_struct(ndr, name, "winsif_WinsGetDbRecsByName");
    2683           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2684           0 :         ndr->depth++;
    2685           0 :         if (flags & NDR_SET_VALUES) {
    2686           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2687             :         }
    2688           0 :         if (flags & NDR_IN) {
    2689           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsGetDbRecsByName");
    2690           0 :                 ndr->depth++;
    2691           0 :                 ndr_print_ptr(ndr, "owner_address", r->in.owner_address);
    2692           0 :                 ndr->depth++;
    2693           0 :                 if (r->in.owner_address) {
    2694           0 :                         ndr_print_winsif_Address(ndr, "owner_address", r->in.owner_address);
    2695             :                 }
    2696           0 :                 ndr->depth--;
    2697           0 :                 ndr_print_uint32(ndr, "search_backward", r->in.search_backward);
    2698           0 :                 ndr_print_ptr(ndr, "name", r->in.name);
    2699           0 :                 ndr->depth++;
    2700           0 :                 if (r->in.name) {
    2701           0 :                         ndr_print_wrepl_nbt_name(ndr, "name", r->in.name);
    2702             :                 }
    2703           0 :                 ndr->depth--;
    2704           0 :                 ndr_print_uint32(ndr, "name_len", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?r->in.name?16:0:r->in.name_len);
    2705           0 :                 ndr_print_uint32(ndr, "num_records_desired", r->in.num_records_desired);
    2706           0 :                 ndr_print_uint32(ndr, "only_statics", r->in.only_statics);
    2707           0 :                 ndr->depth--;
    2708             :         }
    2709           0 :         if (flags & NDR_OUT) {
    2710           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsGetDbRecsByName");
    2711           0 :                 ndr->depth++;
    2712           0 :                 ndr_print_ptr(ndr, "records", r->out.records);
    2713           0 :                 ndr->depth++;
    2714           0 :                 ndr_print_winsif_Records(ndr, "records", r->out.records);
    2715           0 :                 ndr->depth--;
    2716           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2717           0 :                 ndr->depth--;
    2718             :         }
    2719           0 :         ndr->depth--;
    2720             : }
    2721             : 
    2722           0 : static enum ndr_err_code ndr_push_winsif_WinsStatusNew(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsStatusNew *r)
    2723             : {
    2724           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2725           0 :         if (flags & NDR_IN) {
    2726           0 :                 NDR_CHECK(ndr_push_winsif_StatusCmd(ndr, NDR_SCALARS, r->in.cmd));
    2727             :         }
    2728           0 :         if (flags & NDR_OUT) {
    2729           0 :                 if (r->out.results == NULL) {
    2730           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2731             :                 }
    2732           0 :                 NDR_CHECK(ndr_push_winsif_ResultsNew(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.results));
    2733           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2734             :         }
    2735           0 :         return NDR_ERR_SUCCESS;
    2736             : }
    2737             : 
    2738           0 : static enum ndr_err_code ndr_pull_winsif_WinsStatusNew(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsStatusNew *r)
    2739             : {
    2740           0 :         TALLOC_CTX *_mem_save_results_0 = NULL;
    2741           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2742           0 :         if (flags & NDR_IN) {
    2743           0 :                 NDR_ZERO_STRUCT(r->out);
    2744             : 
    2745           0 :                 NDR_CHECK(ndr_pull_winsif_StatusCmd(ndr, NDR_SCALARS, &r->in.cmd));
    2746           0 :                 NDR_PULL_ALLOC(ndr, r->out.results);
    2747           0 :                 NDR_ZERO_STRUCTP(r->out.results);
    2748             :         }
    2749           0 :         if (flags & NDR_OUT) {
    2750             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2751             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2752           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2753           0 :                         NDR_PULL_ALLOC(ndr, r->out.results);
    2754             :                 }
    2755           0 :                 _mem_save_results_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2756           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.results, LIBNDR_FLAG_REF_ALLOC);
    2757           0 :                 NDR_CHECK(ndr_pull_winsif_ResultsNew(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.results));
    2758           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_results_0, LIBNDR_FLAG_REF_ALLOC);
    2759           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2760             :         }
    2761           0 :         return NDR_ERR_SUCCESS;
    2762             : }
    2763             : 
    2764           0 : _PUBLIC_ void ndr_print_winsif_WinsStatusNew(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsStatusNew *r)
    2765             : {
    2766           0 :         ndr_print_struct(ndr, name, "winsif_WinsStatusNew");
    2767           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2768           0 :         ndr->depth++;
    2769           0 :         if (flags & NDR_SET_VALUES) {
    2770           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2771             :         }
    2772           0 :         if (flags & NDR_IN) {
    2773           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsStatusNew");
    2774           0 :                 ndr->depth++;
    2775           0 :                 ndr_print_winsif_StatusCmd(ndr, "cmd", r->in.cmd);
    2776           0 :                 ndr->depth--;
    2777             :         }
    2778           0 :         if (flags & NDR_OUT) {
    2779           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsStatusNew");
    2780           0 :                 ndr->depth++;
    2781           0 :                 ndr_print_ptr(ndr, "results", r->out.results);
    2782           0 :                 ndr->depth++;
    2783           0 :                 ndr_print_winsif_ResultsNew(ndr, "results", r->out.results);
    2784           0 :                 ndr->depth--;
    2785           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2786           0 :                 ndr->depth--;
    2787             :         }
    2788           0 :         ndr->depth--;
    2789             : }
    2790             : 
    2791           0 : static enum ndr_err_code ndr_push_winsif_WinsStatusWHdl(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsStatusWHdl *r)
    2792             : {
    2793           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2794           0 :         if (flags & NDR_IN) {
    2795           0 :                 if (r->in.server_handle == NULL) {
    2796           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2797             :                 }
    2798           0 :                 if (r->in.results == NULL) {
    2799           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2800             :                 }
    2801           0 :                 NDR_CHECK(ndr_push_winsif_BindData(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.server_handle));
    2802           0 :                 NDR_CHECK(ndr_push_winsif_StatusCmd(ndr, NDR_SCALARS, r->in.cmd));
    2803           0 :                 NDR_CHECK(ndr_push_winsif_ResultsNew(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.results));
    2804             :         }
    2805           0 :         if (flags & NDR_OUT) {
    2806           0 :                 if (r->out.results == NULL) {
    2807           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2808             :                 }
    2809           0 :                 NDR_CHECK(ndr_push_winsif_ResultsNew(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.results));
    2810           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2811             :         }
    2812           0 :         return NDR_ERR_SUCCESS;
    2813             : }
    2814             : 
    2815           0 : static enum ndr_err_code ndr_pull_winsif_WinsStatusWHdl(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsStatusWHdl *r)
    2816             : {
    2817           0 :         TALLOC_CTX *_mem_save_server_handle_0 = NULL;
    2818           0 :         TALLOC_CTX *_mem_save_results_0 = NULL;
    2819           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2820           0 :         if (flags & NDR_IN) {
    2821           0 :                 NDR_ZERO_STRUCT(r->out);
    2822             : 
    2823           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2824           0 :                         NDR_PULL_ALLOC(ndr, r->in.server_handle);
    2825             :                 }
    2826           0 :                 _mem_save_server_handle_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2827           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.server_handle, LIBNDR_FLAG_REF_ALLOC);
    2828           0 :                 NDR_CHECK(ndr_pull_winsif_BindData(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.server_handle));
    2829           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_handle_0, LIBNDR_FLAG_REF_ALLOC);
    2830           0 :                 NDR_CHECK(ndr_pull_winsif_StatusCmd(ndr, NDR_SCALARS, &r->in.cmd));
    2831           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2832           0 :                         NDR_PULL_ALLOC(ndr, r->in.results);
    2833             :                 }
    2834           0 :                 _mem_save_results_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2835           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.results, LIBNDR_FLAG_REF_ALLOC);
    2836           0 :                 NDR_CHECK(ndr_pull_winsif_ResultsNew(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.results));
    2837           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_results_0, LIBNDR_FLAG_REF_ALLOC);
    2838           0 :                 NDR_PULL_ALLOC(ndr, r->out.results);
    2839           0 :                 *r->out.results = *r->in.results;
    2840             :         }
    2841           0 :         if (flags & NDR_OUT) {
    2842             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2843             :                 if (r->in.server_handle == NULL) {
    2844             :                         NDR_PULL_ALLOC(ndr, r->in.server_handle);
    2845             :                         NDR_ZERO_STRUCTP(r->in.server_handle);
    2846             :                 }
    2847             :                 if (r->in.results == NULL) {
    2848             :                         NDR_PULL_ALLOC(ndr, r->in.results);
    2849             :                         NDR_ZERO_STRUCTP(r->in.results);
    2850             :                 }
    2851             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2852           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2853           0 :                         NDR_PULL_ALLOC(ndr, r->out.results);
    2854             :                 }
    2855           0 :                 _mem_save_results_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2856           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.results, LIBNDR_FLAG_REF_ALLOC);
    2857           0 :                 NDR_CHECK(ndr_pull_winsif_ResultsNew(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.results));
    2858           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_results_0, LIBNDR_FLAG_REF_ALLOC);
    2859           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2860             :         }
    2861           0 :         return NDR_ERR_SUCCESS;
    2862             : }
    2863             : 
    2864           0 : _PUBLIC_ void ndr_print_winsif_WinsStatusWHdl(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsStatusWHdl *r)
    2865             : {
    2866           0 :         ndr_print_struct(ndr, name, "winsif_WinsStatusWHdl");
    2867           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2868           0 :         ndr->depth++;
    2869           0 :         if (flags & NDR_SET_VALUES) {
    2870           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2871             :         }
    2872           0 :         if (flags & NDR_IN) {
    2873           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsStatusWHdl");
    2874           0 :                 ndr->depth++;
    2875           0 :                 ndr_print_ptr(ndr, "server_handle", r->in.server_handle);
    2876           0 :                 ndr->depth++;
    2877           0 :                 ndr_print_winsif_BindData(ndr, "server_handle", r->in.server_handle);
    2878           0 :                 ndr->depth--;
    2879           0 :                 ndr_print_winsif_StatusCmd(ndr, "cmd", r->in.cmd);
    2880           0 :                 ndr_print_ptr(ndr, "results", r->in.results);
    2881           0 :                 ndr->depth++;
    2882           0 :                 ndr_print_winsif_ResultsNew(ndr, "results", r->in.results);
    2883           0 :                 ndr->depth--;
    2884           0 :                 ndr->depth--;
    2885             :         }
    2886           0 :         if (flags & NDR_OUT) {
    2887           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsStatusWHdl");
    2888           0 :                 ndr->depth++;
    2889           0 :                 ndr_print_ptr(ndr, "results", r->out.results);
    2890           0 :                 ndr->depth++;
    2891           0 :                 ndr_print_winsif_ResultsNew(ndr, "results", r->out.results);
    2892           0 :                 ndr->depth--;
    2893           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2894           0 :                 ndr->depth--;
    2895             :         }
    2896           0 :         ndr->depth--;
    2897             : }
    2898             : 
    2899           0 : static enum ndr_err_code ndr_push_winsif_WinsDoScanvengingNew(struct ndr_push *ndr, ndr_flags_type flags, const struct winsif_WinsDoScanvengingNew *r)
    2900             : {
    2901           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    2902           0 :         if (flags & NDR_IN) {
    2903           0 :                 if (r->in.request == NULL) {
    2904           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    2905             :                 }
    2906           0 :                 NDR_CHECK(ndr_push_winsif_ScavengingRequest(ndr, NDR_SCALARS, r->in.request));
    2907             :         }
    2908           0 :         if (flags & NDR_OUT) {
    2909           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
    2910             :         }
    2911           0 :         return NDR_ERR_SUCCESS;
    2912             : }
    2913             : 
    2914           0 : static enum ndr_err_code ndr_pull_winsif_WinsDoScanvengingNew(struct ndr_pull *ndr, ndr_flags_type flags, struct winsif_WinsDoScanvengingNew *r)
    2915             : {
    2916           0 :         TALLOC_CTX *_mem_save_request_0 = NULL;
    2917           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    2918           0 :         if (flags & NDR_IN) {
    2919           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    2920           0 :                         NDR_PULL_ALLOC(ndr, r->in.request);
    2921             :                 }
    2922           0 :                 _mem_save_request_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2923           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.request, LIBNDR_FLAG_REF_ALLOC);
    2924           0 :                 NDR_CHECK(ndr_pull_winsif_ScavengingRequest(ndr, NDR_SCALARS, r->in.request));
    2925           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_request_0, LIBNDR_FLAG_REF_ALLOC);
    2926             :         }
    2927           0 :         if (flags & NDR_OUT) {
    2928             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    2929             :                 if (r->in.request == NULL) {
    2930             :                         NDR_PULL_ALLOC(ndr, r->in.request);
    2931             :                         NDR_ZERO_STRUCTP(r->in.request);
    2932             :                 }
    2933             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    2934           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
    2935             :         }
    2936           0 :         return NDR_ERR_SUCCESS;
    2937             : }
    2938             : 
    2939           0 : _PUBLIC_ void ndr_print_winsif_WinsDoScanvengingNew(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct winsif_WinsDoScanvengingNew *r)
    2940             : {
    2941           0 :         ndr_print_struct(ndr, name, "winsif_WinsDoScanvengingNew");
    2942           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2943           0 :         ndr->depth++;
    2944           0 :         if (flags & NDR_SET_VALUES) {
    2945           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    2946             :         }
    2947           0 :         if (flags & NDR_IN) {
    2948           0 :                 ndr_print_struct(ndr, "in", "winsif_WinsDoScanvengingNew");
    2949           0 :                 ndr->depth++;
    2950           0 :                 ndr_print_ptr(ndr, "request", r->in.request);
    2951           0 :                 ndr->depth++;
    2952           0 :                 ndr_print_winsif_ScavengingRequest(ndr, "request", r->in.request);
    2953           0 :                 ndr->depth--;
    2954           0 :                 ndr->depth--;
    2955             :         }
    2956           0 :         if (flags & NDR_OUT) {
    2957           0 :                 ndr_print_struct(ndr, "out", "winsif_WinsDoScanvengingNew");
    2958           0 :                 ndr->depth++;
    2959           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
    2960           0 :                 ndr->depth--;
    2961             :         }
    2962           0 :         ndr->depth--;
    2963             : }
    2964             : 
    2965             : #ifndef SKIP_NDR_TABLE_winsif
    2966             : static const struct ndr_interface_public_struct winsif_public_structs[] = {
    2967             :         { .name = NULL }
    2968             : };
    2969             : 
    2970             : static const struct ndr_interface_call winsif_calls[] = {
    2971             :         {
    2972             :                 "winsif_WinsRecordAction",
    2973             :                 sizeof(struct winsif_WinsRecordAction),
    2974             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsRecordAction,
    2975             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsRecordAction,
    2976             :                 (ndr_print_function_t) ndr_print_winsif_WinsRecordAction,
    2977             :                 { 0, NULL },
    2978             :                 { 0, NULL },
    2979             :         },
    2980             :         {
    2981             :                 "winsif_WinsStatus",
    2982             :                 sizeof(struct winsif_WinsStatus),
    2983             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsStatus,
    2984             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsStatus,
    2985             :                 (ndr_print_function_t) ndr_print_winsif_WinsStatus,
    2986             :                 { 0, NULL },
    2987             :                 { 0, NULL },
    2988             :         },
    2989             :         {
    2990             :                 "winsif_WinsTrigger",
    2991             :                 sizeof(struct winsif_WinsTrigger),
    2992             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsTrigger,
    2993             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsTrigger,
    2994             :                 (ndr_print_function_t) ndr_print_winsif_WinsTrigger,
    2995             :                 { 0, NULL },
    2996             :                 { 0, NULL },
    2997             :         },
    2998             :         {
    2999             :                 "winsif_WinsDoStaticInit",
    3000             :                 sizeof(struct winsif_WinsDoStaticInit),
    3001             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsDoStaticInit,
    3002             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsDoStaticInit,
    3003             :                 (ndr_print_function_t) ndr_print_winsif_WinsDoStaticInit,
    3004             :                 { 0, NULL },
    3005             :                 { 0, NULL },
    3006             :         },
    3007             :         {
    3008             :                 "winsif_WinsDoScavenging",
    3009             :                 sizeof(struct winsif_WinsDoScavenging),
    3010             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsDoScavenging,
    3011             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsDoScavenging,
    3012             :                 (ndr_print_function_t) ndr_print_winsif_WinsDoScavenging,
    3013             :                 { 0, NULL },
    3014             :                 { 0, NULL },
    3015             :         },
    3016             :         {
    3017             :                 "winsif_WinsGetDbRecs",
    3018             :                 sizeof(struct winsif_WinsGetDbRecs),
    3019             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsGetDbRecs,
    3020             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsGetDbRecs,
    3021             :                 (ndr_print_function_t) ndr_print_winsif_WinsGetDbRecs,
    3022             :                 { 0, NULL },
    3023             :                 { 0, NULL },
    3024             :         },
    3025             :         {
    3026             :                 "winsif_WinsTerm",
    3027             :                 sizeof(struct winsif_WinsTerm),
    3028             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsTerm,
    3029             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsTerm,
    3030             :                 (ndr_print_function_t) ndr_print_winsif_WinsTerm,
    3031             :                 { 0, NULL },
    3032             :                 { 0, NULL },
    3033             :         },
    3034             :         {
    3035             :                 "winsif_WinsBackup",
    3036             :                 sizeof(struct winsif_WinsBackup),
    3037             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsBackup,
    3038             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsBackup,
    3039             :                 (ndr_print_function_t) ndr_print_winsif_WinsBackup,
    3040             :                 { 0, NULL },
    3041             :                 { 0, NULL },
    3042             :         },
    3043             :         {
    3044             :                 "winsif_WinsDelDbRecs",
    3045             :                 sizeof(struct winsif_WinsDelDbRecs),
    3046             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsDelDbRecs,
    3047             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsDelDbRecs,
    3048             :                 (ndr_print_function_t) ndr_print_winsif_WinsDelDbRecs,
    3049             :                 { 0, NULL },
    3050             :                 { 0, NULL },
    3051             :         },
    3052             :         {
    3053             :                 "winsif_WinsPullRange",
    3054             :                 sizeof(struct winsif_WinsPullRange),
    3055             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsPullRange,
    3056             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsPullRange,
    3057             :                 (ndr_print_function_t) ndr_print_winsif_WinsPullRange,
    3058             :                 { 0, NULL },
    3059             :                 { 0, NULL },
    3060             :         },
    3061             :         {
    3062             :                 "winsif_WinsSetPriorityClass",
    3063             :                 sizeof(struct winsif_WinsSetPriorityClass),
    3064             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsSetPriorityClass,
    3065             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsSetPriorityClass,
    3066             :                 (ndr_print_function_t) ndr_print_winsif_WinsSetPriorityClass,
    3067             :                 { 0, NULL },
    3068             :                 { 0, NULL },
    3069             :         },
    3070             :         {
    3071             :                 "winsif_WinsResetCounters",
    3072             :                 sizeof(struct winsif_WinsResetCounters),
    3073             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsResetCounters,
    3074             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsResetCounters,
    3075             :                 (ndr_print_function_t) ndr_print_winsif_WinsResetCounters,
    3076             :                 { 0, NULL },
    3077             :                 { 0, NULL },
    3078             :         },
    3079             :         {
    3080             :                 "winsif_WinsWorkerThreadUpdate",
    3081             :                 sizeof(struct winsif_WinsWorkerThreadUpdate),
    3082             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsWorkerThreadUpdate,
    3083             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsWorkerThreadUpdate,
    3084             :                 (ndr_print_function_t) ndr_print_winsif_WinsWorkerThreadUpdate,
    3085             :                 { 0, NULL },
    3086             :                 { 0, NULL },
    3087             :         },
    3088             :         {
    3089             :                 "winsif_WinsGetNameAndAdd",
    3090             :                 sizeof(struct winsif_WinsGetNameAndAdd),
    3091             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsGetNameAndAdd,
    3092             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsGetNameAndAdd,
    3093             :                 (ndr_print_function_t) ndr_print_winsif_WinsGetNameAndAdd,
    3094             :                 { 0, NULL },
    3095             :                 { 0, NULL },
    3096             :         },
    3097             :         {
    3098             :                 "winsif_WinsGetBrowserNames_Old",
    3099             :                 sizeof(struct winsif_WinsGetBrowserNames_Old),
    3100             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsGetBrowserNames_Old,
    3101             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsGetBrowserNames_Old,
    3102             :                 (ndr_print_function_t) ndr_print_winsif_WinsGetBrowserNames_Old,
    3103             :                 { 0, NULL },
    3104             :                 { 0, NULL },
    3105             :         },
    3106             :         {
    3107             :                 "winsif_WinsDeleteWins",
    3108             :                 sizeof(struct winsif_WinsDeleteWins),
    3109             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsDeleteWins,
    3110             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsDeleteWins,
    3111             :                 (ndr_print_function_t) ndr_print_winsif_WinsDeleteWins,
    3112             :                 { 0, NULL },
    3113             :                 { 0, NULL },
    3114             :         },
    3115             :         {
    3116             :                 "winsif_WinsSetFlags",
    3117             :                 sizeof(struct winsif_WinsSetFlags),
    3118             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsSetFlags,
    3119             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsSetFlags,
    3120             :                 (ndr_print_function_t) ndr_print_winsif_WinsSetFlags,
    3121             :                 { 0, NULL },
    3122             :                 { 0, NULL },
    3123             :         },
    3124             :         {
    3125             :                 "winsif_WinsGetBrowserNames",
    3126             :                 sizeof(struct winsif_WinsGetBrowserNames),
    3127             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsGetBrowserNames,
    3128             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsGetBrowserNames,
    3129             :                 (ndr_print_function_t) ndr_print_winsif_WinsGetBrowserNames,
    3130             :                 { 0, NULL },
    3131             :                 { 0, NULL },
    3132             :         },
    3133             :         {
    3134             :                 "winsif_WinsGetDbRecsByName",
    3135             :                 sizeof(struct winsif_WinsGetDbRecsByName),
    3136             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsGetDbRecsByName,
    3137             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsGetDbRecsByName,
    3138             :                 (ndr_print_function_t) ndr_print_winsif_WinsGetDbRecsByName,
    3139             :                 { 0, NULL },
    3140             :                 { 0, NULL },
    3141             :         },
    3142             :         {
    3143             :                 "winsif_WinsStatusNew",
    3144             :                 sizeof(struct winsif_WinsStatusNew),
    3145             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsStatusNew,
    3146             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsStatusNew,
    3147             :                 (ndr_print_function_t) ndr_print_winsif_WinsStatusNew,
    3148             :                 { 0, NULL },
    3149             :                 { 0, NULL },
    3150             :         },
    3151             :         {
    3152             :                 "winsif_WinsStatusWHdl",
    3153             :                 sizeof(struct winsif_WinsStatusWHdl),
    3154             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsStatusWHdl,
    3155             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsStatusWHdl,
    3156             :                 (ndr_print_function_t) ndr_print_winsif_WinsStatusWHdl,
    3157             :                 { 0, NULL },
    3158             :                 { 0, NULL },
    3159             :         },
    3160             :         {
    3161             :                 "winsif_WinsDoScanvengingNew",
    3162             :                 sizeof(struct winsif_WinsDoScanvengingNew),
    3163             :                 (ndr_push_flags_fn_t) ndr_push_winsif_WinsDoScanvengingNew,
    3164             :                 (ndr_pull_flags_fn_t) ndr_pull_winsif_WinsDoScanvengingNew,
    3165             :                 (ndr_print_function_t) ndr_print_winsif_WinsDoScanvengingNew,
    3166             :                 { 0, NULL },
    3167             :                 { 0, NULL },
    3168             :         },
    3169             :         { .name = NULL }
    3170             : };
    3171             : 
    3172             : static const char * const winsif_endpoint_strings[] = {
    3173             :         "ncacn_np:[\\pipe\\winsif]", 
    3174             : };
    3175             : 
    3176             : static const struct ndr_interface_string_array winsif_endpoints = {
    3177             :         .count  = 1,
    3178             :         .names  = winsif_endpoint_strings
    3179             : };
    3180             : 
    3181             : static const char * const winsif_authservice_strings[] = {
    3182             :         "host", 
    3183             : };
    3184             : 
    3185             : static const struct ndr_interface_string_array winsif_authservices = {
    3186             :         .count  = 1,
    3187             :         .names  = winsif_authservice_strings
    3188             : };
    3189             : 
    3190             : 
    3191             : const struct ndr_interface_table ndr_table_winsif = {
    3192             :         .name           = "winsif",
    3193             :         .syntax_id      = {
    3194             :                 {0x45f52c28,0x7f9f,0x101a,{0xb5,0x2b},{0x08,0x00,0x2b,0x2e,0xfa,0xbe}},
    3195             :                 NDR_WINSIF_VERSION
    3196             :         },
    3197             :         .helpstring     = NDR_WINSIF_HELPSTRING,
    3198             :         .num_calls      = 22,
    3199             :         .calls          = winsif_calls,
    3200             :         .num_public_structs     = 0,
    3201             :         .public_structs         = winsif_public_structs,
    3202             :         .endpoints      = &winsif_endpoints,
    3203             :         .authservices   = &winsif_authservices
    3204             : };
    3205             : 
    3206             : #endif /* SKIP_NDR_TABLE_winsif */

Generated by: LCOV version 1.14