LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_browser.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 339 651 52.1 %
Date: 2024-04-21 15:09:00 Functions: 15 48 31.2 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_browser.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_srvsvc.h"
       7          18 : static enum ndr_err_code ndr_push_BrowserrSrvInfo100Ctr(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct BrowserrSrvInfo100Ctr *r)
       8             : {
       9           0 :         uint32_t cntr_entries_1;
      10          18 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      11          18 :         if (ndr_flags & NDR_SCALARS) {
      12          18 :                 NDR_CHECK(ndr_push_align(ndr, 5));
      13          18 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->entries_read));
      14          18 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->entries));
      15          18 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
      16             :         }
      17          18 :         if (ndr_flags & NDR_BUFFERS) {
      18          18 :                 if (r->entries) {
      19          14 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->entries_read));
      20          18 :                         for (cntr_entries_1 = 0; cntr_entries_1 < (r->entries_read); cntr_entries_1++) {
      21           4 :                                 NDR_CHECK(ndr_push_srvsvc_NetSrvInfo100(ndr, NDR_SCALARS, &r->entries[cntr_entries_1]));
      22             :                         }
      23          18 :                         for (cntr_entries_1 = 0; cntr_entries_1 < (r->entries_read); cntr_entries_1++) {
      24           4 :                                 NDR_CHECK(ndr_push_srvsvc_NetSrvInfo100(ndr, NDR_BUFFERS, &r->entries[cntr_entries_1]));
      25             :                         }
      26             :                 }
      27             :         }
      28          18 :         return NDR_ERR_SUCCESS;
      29             : }
      30             : 
      31          16 : static enum ndr_err_code ndr_pull_BrowserrSrvInfo100Ctr(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct BrowserrSrvInfo100Ctr *r)
      32             : {
      33           0 :         uint32_t _ptr_entries;
      34          16 :         uint32_t size_entries_1 = 0;
      35           0 :         uint32_t cntr_entries_1;
      36          16 :         TALLOC_CTX *_mem_save_entries_0 = NULL;
      37          16 :         TALLOC_CTX *_mem_save_entries_1 = NULL;
      38          16 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      39          16 :         if (ndr_flags & NDR_SCALARS) {
      40          16 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
      41          16 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->entries_read));
      42          16 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entries));
      43          16 :                 if (_ptr_entries) {
      44          12 :                         NDR_PULL_ALLOC(ndr, r->entries);
      45             :                 } else {
      46           4 :                         r->entries = NULL;
      47             :                 }
      48          16 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
      49             :         }
      50          16 :         if (ndr_flags & NDR_BUFFERS) {
      51          16 :                 if (r->entries) {
      52          12 :                         _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
      53          12 :                         NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
      54          12 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->entries));
      55          12 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->entries, &size_entries_1));
      56          12 :                         NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_1);
      57          12 :                         _mem_save_entries_1 = NDR_PULL_GET_MEM_CTX(ndr);
      58          12 :                         NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
      59          16 :                         for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
      60           4 :                                 NDR_CHECK(ndr_pull_srvsvc_NetSrvInfo100(ndr, NDR_SCALARS, &r->entries[cntr_entries_1]));
      61             :                         }
      62          16 :                         for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
      63           4 :                                 NDR_CHECK(ndr_pull_srvsvc_NetSrvInfo100(ndr, NDR_BUFFERS, &r->entries[cntr_entries_1]));
      64             :                         }
      65          12 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_1, 0);
      66          12 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
      67             :                 }
      68          16 :                 if (r->entries) {
      69          12 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->entries, r->entries_read));
      70             :                 }
      71          20 :                 for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
      72           0 :                 }
      73             :         }
      74          16 :         return NDR_ERR_SUCCESS;
      75             : }
      76             : 
      77           4 : _PUBLIC_ void ndr_print_BrowserrSrvInfo100Ctr(struct ndr_print *ndr, const char *name, const struct BrowserrSrvInfo100Ctr *r)
      78             : {
      79           0 :         uint32_t cntr_entries_1;
      80           4 :         ndr_print_struct(ndr, name, "BrowserrSrvInfo100Ctr");
      81           4 :         if (r == NULL) { ndr_print_null(ndr); return; }
      82           4 :         ndr->depth++;
      83           4 :         ndr_print_uint32(ndr, "entries_read", r->entries_read);
      84           4 :         ndr_print_ptr(ndr, "entries", r->entries);
      85           4 :         ndr->depth++;
      86           4 :         if (r->entries) {
      87           4 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "entries", (uint32_t)(r->entries_read));
      88           4 :                 ndr->depth++;
      89           4 :                 for (cntr_entries_1 = 0; cntr_entries_1 < (r->entries_read); cntr_entries_1++) {
      90           0 :                         ndr_print_srvsvc_NetSrvInfo100(ndr, "entries", &r->entries[cntr_entries_1]);
      91             :                 }
      92           4 :                 ndr->depth--;
      93             :         }
      94           4 :         ndr->depth--;
      95           4 :         ndr->depth--;
      96             : }
      97             : 
      98          18 : static enum ndr_err_code ndr_push_BrowserrSrvInfo101Ctr(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct BrowserrSrvInfo101Ctr *r)
      99             : {
     100           0 :         uint32_t cntr_entries_1;
     101          18 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     102          18 :         if (ndr_flags & NDR_SCALARS) {
     103          18 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     104          18 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->entries_read));
     105          18 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->entries));
     106          18 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     107             :         }
     108          18 :         if (ndr_flags & NDR_BUFFERS) {
     109          18 :                 if (r->entries) {
     110           9 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->entries_read));
     111          18 :                         for (cntr_entries_1 = 0; cntr_entries_1 < (r->entries_read); cntr_entries_1++) {
     112           9 :                                 NDR_CHECK(ndr_push_srvsvc_NetSrvInfo101(ndr, NDR_SCALARS, &r->entries[cntr_entries_1]));
     113             :                         }
     114          18 :                         for (cntr_entries_1 = 0; cntr_entries_1 < (r->entries_read); cntr_entries_1++) {
     115           9 :                                 NDR_CHECK(ndr_push_srvsvc_NetSrvInfo101(ndr, NDR_BUFFERS, &r->entries[cntr_entries_1]));
     116             :                         }
     117             :                 }
     118             :         }
     119          18 :         return NDR_ERR_SUCCESS;
     120             : }
     121             : 
     122          16 : static enum ndr_err_code ndr_pull_BrowserrSrvInfo101Ctr(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct BrowserrSrvInfo101Ctr *r)
     123             : {
     124           0 :         uint32_t _ptr_entries;
     125          16 :         uint32_t size_entries_1 = 0;
     126           0 :         uint32_t cntr_entries_1;
     127          16 :         TALLOC_CTX *_mem_save_entries_0 = NULL;
     128          16 :         TALLOC_CTX *_mem_save_entries_1 = NULL;
     129          16 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     130          16 :         if (ndr_flags & NDR_SCALARS) {
     131          16 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     132          16 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->entries_read));
     133          16 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_entries));
     134          16 :                 if (_ptr_entries) {
     135           8 :                         NDR_PULL_ALLOC(ndr, r->entries);
     136             :                 } else {
     137           8 :                         r->entries = NULL;
     138             :                 }
     139          16 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     140             :         }
     141          16 :         if (ndr_flags & NDR_BUFFERS) {
     142          16 :                 if (r->entries) {
     143           8 :                         _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
     144           8 :                         NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
     145           8 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->entries));
     146           8 :                         NDR_CHECK(ndr_get_array_size(ndr, (void*)&r->entries, &size_entries_1));
     147           8 :                         NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_1);
     148           8 :                         _mem_save_entries_1 = NDR_PULL_GET_MEM_CTX(ndr);
     149           8 :                         NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
     150          16 :                         for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
     151           8 :                                 NDR_CHECK(ndr_pull_srvsvc_NetSrvInfo101(ndr, NDR_SCALARS, &r->entries[cntr_entries_1]));
     152             :                         }
     153          16 :                         for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
     154           8 :                                 NDR_CHECK(ndr_pull_srvsvc_NetSrvInfo101(ndr, NDR_BUFFERS, &r->entries[cntr_entries_1]));
     155             :                         }
     156           8 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_1, 0);
     157           8 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
     158             :                 }
     159          16 :                 if (r->entries) {
     160           8 :                         NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->entries, r->entries_read));
     161             :                 }
     162          24 :                 for (cntr_entries_1 = 0; cntr_entries_1 < (size_entries_1); cntr_entries_1++) {
     163           0 :                 }
     164             :         }
     165          16 :         return NDR_ERR_SUCCESS;
     166             : }
     167             : 
     168           4 : _PUBLIC_ void ndr_print_BrowserrSrvInfo101Ctr(struct ndr_print *ndr, const char *name, const struct BrowserrSrvInfo101Ctr *r)
     169             : {
     170           0 :         uint32_t cntr_entries_1;
     171           4 :         ndr_print_struct(ndr, name, "BrowserrSrvInfo101Ctr");
     172           4 :         if (r == NULL) { ndr_print_null(ndr); return; }
     173           4 :         ndr->depth++;
     174           4 :         ndr_print_uint32(ndr, "entries_read", r->entries_read);
     175           4 :         ndr_print_ptr(ndr, "entries", r->entries);
     176           4 :         ndr->depth++;
     177           4 :         if (r->entries) {
     178           2 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "entries", (uint32_t)(r->entries_read));
     179           2 :                 ndr->depth++;
     180           4 :                 for (cntr_entries_1 = 0; cntr_entries_1 < (r->entries_read); cntr_entries_1++) {
     181           2 :                         ndr_print_srvsvc_NetSrvInfo101(ndr, "entries", &r->entries[cntr_entries_1]);
     182             :                 }
     183           2 :                 ndr->depth--;
     184             :         }
     185           4 :         ndr->depth--;
     186           4 :         ndr->depth--;
     187             : }
     188             : 
     189         144 : static enum ndr_err_code ndr_push_BrowserrSrvInfoUnion(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union BrowserrSrvInfoUnion *r)
     190             : {
     191           0 :         uint32_t level;
     192         144 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     193         144 :         if (ndr_flags & NDR_SCALARS) {
     194             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     195          72 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     196          72 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
     197          72 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, level));
     198          72 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
     199          72 :                 switch (level) {
     200          27 :                         case 100: {
     201          27 :                                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->info100));
     202          27 :                         break; }
     203             : 
     204          27 :                         case 101: {
     205          27 :                                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->info101));
     206          27 :                         break; }
     207             : 
     208          18 :                         default: {
     209          18 :                         break; }
     210             : 
     211             :                 }
     212             :         }
     213         144 :         if (ndr_flags & NDR_BUFFERS) {
     214          72 :                 if (!(ndr_flags & NDR_SCALARS)) {
     215             :                         /* We didn't get it above, and the token is not needed after this. */
     216          72 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     217             :                 }
     218          72 :                 switch (level) {
     219          27 :                         case 100:
     220          27 :                                 if (r->info100) {
     221          18 :                                         NDR_CHECK(ndr_push_BrowserrSrvInfo100Ctr(ndr, NDR_SCALARS|NDR_BUFFERS, r->info100));
     222             :                                 }
     223          27 :                         break;
     224             : 
     225          27 :                         case 101:
     226          27 :                                 if (r->info101) {
     227          18 :                                         NDR_CHECK(ndr_push_BrowserrSrvInfo101Ctr(ndr, NDR_SCALARS|NDR_BUFFERS, r->info101));
     228             :                                 }
     229          27 :                         break;
     230             : 
     231          18 :                         default:
     232          18 :                         break;
     233             : 
     234             :                 }
     235             :         }
     236         144 :         return NDR_ERR_SUCCESS;
     237             : }
     238             : 
     239         128 : static enum ndr_err_code ndr_pull_BrowserrSrvInfoUnion(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union BrowserrSrvInfoUnion *r)
     240             : {
     241           0 :         uint32_t level;
     242           0 :         uint32_t _level;
     243         128 :         TALLOC_CTX *_mem_save_info100_0 = NULL;
     244           0 :         uint32_t _ptr_info100;
     245         128 :         TALLOC_CTX *_mem_save_info101_0 = NULL;
     246           0 :         uint32_t _ptr_info101;
     247         128 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     248         128 :         if (ndr_flags & NDR_SCALARS) {
     249             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     250          64 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     251          64 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
     252          64 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &_level));
     253          64 :                 if (_level != level) {
     254           0 :                         return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" for r at %s", (uint32_t)_level, __location__);
     255             :                 }
     256          64 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
     257          64 :                 switch (level) {
     258          24 :                         case 100: {
     259          24 :                                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info100));
     260          24 :                                 if (_ptr_info100) {
     261          16 :                                         NDR_PULL_ALLOC(ndr, r->info100);
     262             :                                 } else {
     263           8 :                                         r->info100 = NULL;
     264             :                                 }
     265          24 :                         break; }
     266             : 
     267          24 :                         case 101: {
     268          24 :                                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_info101));
     269          24 :                                 if (_ptr_info101) {
     270          16 :                                         NDR_PULL_ALLOC(ndr, r->info101);
     271             :                                 } else {
     272           8 :                                         r->info101 = NULL;
     273             :                                 }
     274          24 :                         break; }
     275             : 
     276          16 :                         default: {
     277          16 :                         break; }
     278             : 
     279             :                 }
     280             :         }
     281         128 :         if (ndr_flags & NDR_BUFFERS) {
     282          64 :                 if (!(ndr_flags & NDR_SCALARS)) {
     283             :                         /* We didn't get it above, and the token is not needed after this. */
     284          64 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     285             :                 }
     286          64 :                 switch (level) {
     287          24 :                         case 100:
     288          24 :                                 if (r->info100) {
     289          16 :                                         _mem_save_info100_0 = NDR_PULL_GET_MEM_CTX(ndr);
     290          16 :                                         NDR_PULL_SET_MEM_CTX(ndr, r->info100, 0);
     291          16 :                                         NDR_CHECK(ndr_pull_BrowserrSrvInfo100Ctr(ndr, NDR_SCALARS|NDR_BUFFERS, r->info100));
     292          16 :                                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info100_0, 0);
     293             :                                 }
     294          24 :                         break;
     295             : 
     296          24 :                         case 101:
     297          24 :                                 if (r->info101) {
     298          16 :                                         _mem_save_info101_0 = NDR_PULL_GET_MEM_CTX(ndr);
     299          16 :                                         NDR_PULL_SET_MEM_CTX(ndr, r->info101, 0);
     300          16 :                                         NDR_CHECK(ndr_pull_BrowserrSrvInfo101Ctr(ndr, NDR_SCALARS|NDR_BUFFERS, r->info101));
     301          16 :                                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info101_0, 0);
     302             :                                 }
     303          24 :                         break;
     304             : 
     305          16 :                         default:
     306          16 :                         break;
     307             : 
     308             :                 }
     309             :         }
     310         128 :         return NDR_ERR_SUCCESS;
     311             : }
     312             : 
     313          16 : _PUBLIC_ void ndr_print_BrowserrSrvInfoUnion(struct ndr_print *ndr, const char *name, const union BrowserrSrvInfoUnion *r)
     314             : {
     315           0 :         uint32_t level;
     316          16 :         level = ndr_print_steal_switch_value(ndr, r);
     317          16 :         ndr_print_union(ndr, name, level, "BrowserrSrvInfoUnion");
     318          16 :         switch (level) {
     319           6 :                 case 100:
     320           6 :                         ndr_print_ptr(ndr, "info100", r->info100);
     321           6 :                         ndr->depth++;
     322           6 :                         if (r->info100) {
     323           4 :                                 ndr_print_BrowserrSrvInfo100Ctr(ndr, "info100", r->info100);
     324             :                         }
     325           6 :                         ndr->depth--;
     326           6 :                 break;
     327             : 
     328           6 :                 case 101:
     329           6 :                         ndr_print_ptr(ndr, "info101", r->info101);
     330           6 :                         ndr->depth++;
     331           6 :                         if (r->info101) {
     332           4 :                                 ndr_print_BrowserrSrvInfo101Ctr(ndr, "info101", r->info101);
     333             :                         }
     334           6 :                         ndr->depth--;
     335           6 :                 break;
     336             : 
     337           4 :                 default:
     338           4 :                 break;
     339             : 
     340             :         }
     341          16 : }
     342             : 
     343          72 : static enum ndr_err_code ndr_push_BrowserrSrvInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct BrowserrSrvInfo *r)
     344             : {
     345          72 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     346          72 :         if (ndr_flags & NDR_SCALARS) {
     347          72 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     348          72 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->level));
     349          72 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->info, r->level));
     350          72 :                 NDR_CHECK(ndr_push_BrowserrSrvInfoUnion(ndr, NDR_SCALARS, &r->info));
     351          72 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     352             :         }
     353          72 :         if (ndr_flags & NDR_BUFFERS) {
     354          72 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->info, r->level));
     355          72 :                 NDR_CHECK(ndr_push_BrowserrSrvInfoUnion(ndr, NDR_BUFFERS, &r->info));
     356             :         }
     357          72 :         return NDR_ERR_SUCCESS;
     358             : }
     359             : 
     360          64 : static enum ndr_err_code ndr_pull_BrowserrSrvInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct BrowserrSrvInfo *r)
     361             : {
     362          64 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     363          64 :         if (ndr_flags & NDR_SCALARS) {
     364          64 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     365          64 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->level));
     366          64 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->info, r->level));
     367          64 :                 NDR_CHECK(ndr_pull_BrowserrSrvInfoUnion(ndr, NDR_SCALARS, &r->info));
     368          64 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     369             :         }
     370          64 :         if (ndr_flags & NDR_BUFFERS) {
     371          64 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->info, r->level));
     372          64 :                 NDR_CHECK(ndr_pull_BrowserrSrvInfoUnion(ndr, NDR_BUFFERS, &r->info));
     373             :         }
     374          64 :         return NDR_ERR_SUCCESS;
     375             : }
     376             : 
     377          16 : _PUBLIC_ void ndr_print_BrowserrSrvInfo(struct ndr_print *ndr, const char *name, const struct BrowserrSrvInfo *r)
     378             : {
     379          16 :         ndr_print_struct(ndr, name, "BrowserrSrvInfo");
     380          16 :         if (r == NULL) { ndr_print_null(ndr); return; }
     381          16 :         ndr->depth++;
     382          16 :         ndr_print_uint32(ndr, "level", r->level);
     383          16 :         ndr_print_set_switch_value(ndr, &r->info, r->level);
     384          16 :         ndr_print_BrowserrSrvInfoUnion(ndr, "info", &r->info);
     385          16 :         ndr->depth--;
     386             : }
     387             : 
     388           0 : static enum ndr_err_code ndr_push_BrowserrServerEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrServerEnum *r)
     389             : {
     390           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     391           0 :         if (flags & NDR_IN) {
     392             :         }
     393           0 :         if (flags & NDR_OUT) {
     394             :         }
     395           0 :         return NDR_ERR_SUCCESS;
     396             : }
     397             : 
     398           0 : static enum ndr_err_code ndr_pull_BrowserrServerEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrServerEnum *r)
     399             : {
     400           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     401           0 :         if (flags & NDR_IN) {
     402             :         }
     403           0 :         if (flags & NDR_OUT) {
     404             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     405             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     406             :         }
     407           0 :         return NDR_ERR_SUCCESS;
     408             : }
     409             : 
     410           0 : _PUBLIC_ void ndr_print_BrowserrServerEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrServerEnum *r)
     411             : {
     412           0 :         ndr_print_struct(ndr, name, "BrowserrServerEnum");
     413           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     414           0 :         ndr->depth++;
     415           0 :         if (flags & NDR_SET_VALUES) {
     416           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     417             :         }
     418           0 :         if (flags & NDR_IN) {
     419           0 :                 ndr_print_struct(ndr, "in", "BrowserrServerEnum");
     420           0 :                 ndr->depth++;
     421           0 :                 ndr->depth--;
     422             :         }
     423           0 :         if (flags & NDR_OUT) {
     424           0 :                 ndr_print_struct(ndr, "out", "BrowserrServerEnum");
     425           0 :                 ndr->depth++;
     426           0 :                 ndr->depth--;
     427             :         }
     428           0 :         ndr->depth--;
     429             : }
     430             : 
     431           0 : static enum ndr_err_code ndr_push_BrowserrDebugCall(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrDebugCall *r)
     432             : {
     433           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     434           0 :         if (flags & NDR_IN) {
     435             :         }
     436           0 :         if (flags & NDR_OUT) {
     437             :         }
     438           0 :         return NDR_ERR_SUCCESS;
     439             : }
     440             : 
     441           0 : static enum ndr_err_code ndr_pull_BrowserrDebugCall(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrDebugCall *r)
     442             : {
     443           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     444           0 :         if (flags & NDR_IN) {
     445             :         }
     446           0 :         if (flags & NDR_OUT) {
     447             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     448             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     449             :         }
     450           0 :         return NDR_ERR_SUCCESS;
     451             : }
     452             : 
     453           0 : _PUBLIC_ void ndr_print_BrowserrDebugCall(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrDebugCall *r)
     454             : {
     455           0 :         ndr_print_struct(ndr, name, "BrowserrDebugCall");
     456           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     457           0 :         ndr->depth++;
     458           0 :         if (flags & NDR_SET_VALUES) {
     459           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     460             :         }
     461           0 :         if (flags & NDR_IN) {
     462           0 :                 ndr_print_struct(ndr, "in", "BrowserrDebugCall");
     463           0 :                 ndr->depth++;
     464           0 :                 ndr->depth--;
     465             :         }
     466           0 :         if (flags & NDR_OUT) {
     467           0 :                 ndr_print_struct(ndr, "out", "BrowserrDebugCall");
     468           0 :                 ndr->depth++;
     469           0 :                 ndr->depth--;
     470             :         }
     471           0 :         ndr->depth--;
     472             : }
     473             : 
     474          72 : static enum ndr_err_code ndr_push_BrowserrQueryOtherDomains(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrQueryOtherDomains *r)
     475             : {
     476          72 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     477          72 :         if (flags & NDR_IN) {
     478          32 :                 if (r->in.info == NULL) {
     479           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     480             :                 }
     481          32 :                 NDR_CHECK(ndr_push_unique_ptr(ndr, r->in.server_unc));
     482          32 :                 if (r->in.server_unc) {
     483          32 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.server_unc, CH_UTF16)));
     484          32 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, 0));
     485          32 :                         NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, ndr_charset_length(r->in.server_unc, CH_UTF16)));
     486          32 :                         NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.server_unc, ndr_charset_length(r->in.server_unc, CH_UTF16), sizeof(uint16_t), CH_UTF16));
     487             :                 }
     488          32 :                 NDR_CHECK(ndr_push_BrowserrSrvInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
     489             :         }
     490          72 :         if (flags & NDR_OUT) {
     491          40 :                 if (r->out.info == NULL) {
     492           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     493             :                 }
     494          40 :                 if (r->out.total_entries == NULL) {
     495           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     496             :                 }
     497          40 :                 NDR_CHECK(ndr_push_BrowserrSrvInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
     498          40 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.total_entries));
     499          40 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     500             :         }
     501          72 :         return NDR_ERR_SUCCESS;
     502             : }
     503             : 
     504          64 : static enum ndr_err_code ndr_pull_BrowserrQueryOtherDomains(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrQueryOtherDomains *r)
     505             : {
     506           0 :         uint32_t _ptr_server_unc;
     507          64 :         uint32_t size_server_unc_1 = 0;
     508          64 :         uint32_t length_server_unc_1 = 0;
     509          64 :         TALLOC_CTX *_mem_save_server_unc_0 = NULL;
     510          64 :         TALLOC_CTX *_mem_save_info_0 = NULL;
     511          64 :         TALLOC_CTX *_mem_save_total_entries_0 = NULL;
     512          64 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     513          64 :         if (flags & NDR_IN) {
     514          32 :                 NDR_ZERO_STRUCT(r->out);
     515             : 
     516          32 :                 NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_server_unc));
     517          32 :                 if (_ptr_server_unc) {
     518          32 :                         NDR_PULL_ALLOC(ndr, r->in.server_unc);
     519             :                 } else {
     520           0 :                         r->in.server_unc = NULL;
     521             :                 }
     522          32 :                 if (r->in.server_unc) {
     523          32 :                         _mem_save_server_unc_0 = NDR_PULL_GET_MEM_CTX(ndr);
     524          32 :                         NDR_PULL_SET_MEM_CTX(ndr, r->in.server_unc, 0);
     525          32 :                         NDR_CHECK(ndr_pull_array_size(ndr, &r->in.server_unc));
     526          32 :                         NDR_CHECK(ndr_pull_array_length(ndr, &r->in.server_unc));
     527          32 :                         NDR_CHECK(ndr_steal_array_size(ndr, (void*)&r->in.server_unc, &size_server_unc_1));
     528          32 :                         NDR_CHECK(ndr_steal_array_length(ndr, (void*)&r->in.server_unc, &length_server_unc_1));
     529          32 :                         if (length_server_unc_1 > size_server_unc_1) {
     530           0 :                                 return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, "Bad array size %"PRIu32": should exceed array length %"PRIu32"", size_server_unc_1, length_server_unc_1);
     531             :                         }
     532          32 :                         NDR_CHECK(ndr_check_string_terminator(ndr, length_server_unc_1, sizeof(uint16_t)));
     533          32 :                         NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.server_unc, length_server_unc_1, sizeof(uint16_t), CH_UTF16));
     534          32 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_server_unc_0, 0);
     535             :                 }
     536          32 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     537          32 :                         NDR_PULL_ALLOC(ndr, r->in.info);
     538             :                 }
     539          32 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
     540          32 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.info, LIBNDR_FLAG_REF_ALLOC);
     541          32 :                 NDR_CHECK(ndr_pull_BrowserrSrvInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.info));
     542          32 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
     543          32 :                 NDR_PULL_ALLOC(ndr, r->out.info);
     544          32 :                 *r->out.info = *r->in.info;
     545          32 :                 NDR_PULL_ALLOC(ndr, r->out.total_entries);
     546          32 :                 NDR_ZERO_STRUCTP(r->out.total_entries);
     547             :         }
     548          64 :         if (flags & NDR_OUT) {
     549             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     550             :                 if (r->in.info == NULL) {
     551             :                         NDR_PULL_ALLOC(ndr, r->in.info);
     552             :                         NDR_ZERO_STRUCTP(r->in.info);
     553             :                 }
     554             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     555          32 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     556           8 :                         NDR_PULL_ALLOC(ndr, r->out.info);
     557             :                 }
     558          32 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
     559          32 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
     560          32 :                 NDR_CHECK(ndr_pull_BrowserrSrvInfo(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
     561          32 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
     562          32 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     563           8 :                         NDR_PULL_ALLOC(ndr, r->out.total_entries);
     564             :                 }
     565          32 :                 _mem_save_total_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
     566          32 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.total_entries, LIBNDR_FLAG_REF_ALLOC);
     567          32 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.total_entries));
     568          32 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_total_entries_0, LIBNDR_FLAG_REF_ALLOC);
     569          32 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     570             :         }
     571          64 :         return NDR_ERR_SUCCESS;
     572             : }
     573             : 
     574          16 : _PUBLIC_ void ndr_print_BrowserrQueryOtherDomains(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrQueryOtherDomains *r)
     575             : {
     576          16 :         ndr_print_struct(ndr, name, "BrowserrQueryOtherDomains");
     577          16 :         if (r == NULL) { ndr_print_null(ndr); return; }
     578          16 :         ndr->depth++;
     579          16 :         if (flags & NDR_SET_VALUES) {
     580           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     581             :         }
     582          16 :         if (flags & NDR_IN) {
     583           0 :                 ndr_print_struct(ndr, "in", "BrowserrQueryOtherDomains");
     584           0 :                 ndr->depth++;
     585           0 :                 ndr_print_ptr(ndr, "server_unc", r->in.server_unc);
     586           0 :                 ndr->depth++;
     587           0 :                 if (r->in.server_unc) {
     588           0 :                         ndr_print_string(ndr, "server_unc", r->in.server_unc);
     589             :                 }
     590           0 :                 ndr->depth--;
     591           0 :                 ndr_print_ptr(ndr, "info", r->in.info);
     592           0 :                 ndr->depth++;
     593           0 :                 ndr_print_BrowserrSrvInfo(ndr, "info", r->in.info);
     594           0 :                 ndr->depth--;
     595           0 :                 ndr->depth--;
     596             :         }
     597          16 :         if (flags & NDR_OUT) {
     598          16 :                 ndr_print_struct(ndr, "out", "BrowserrQueryOtherDomains");
     599          16 :                 ndr->depth++;
     600          16 :                 ndr_print_ptr(ndr, "info", r->out.info);
     601          16 :                 ndr->depth++;
     602          16 :                 ndr_print_BrowserrSrvInfo(ndr, "info", r->out.info);
     603          16 :                 ndr->depth--;
     604          16 :                 ndr_print_ptr(ndr, "total_entries", r->out.total_entries);
     605          16 :                 ndr->depth++;
     606          16 :                 ndr_print_uint32(ndr, "total_entries", *r->out.total_entries);
     607          16 :                 ndr->depth--;
     608          16 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     609          16 :                 ndr->depth--;
     610             :         }
     611          16 :         ndr->depth--;
     612             : }
     613             : 
     614           0 : static enum ndr_err_code ndr_push_BrowserrResetNetlogonState(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrResetNetlogonState *r)
     615             : {
     616           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     617           0 :         if (flags & NDR_IN) {
     618             :         }
     619           0 :         if (flags & NDR_OUT) {
     620             :         }
     621           0 :         return NDR_ERR_SUCCESS;
     622             : }
     623             : 
     624           0 : static enum ndr_err_code ndr_pull_BrowserrResetNetlogonState(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrResetNetlogonState *r)
     625             : {
     626           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     627           0 :         if (flags & NDR_IN) {
     628             :         }
     629           0 :         if (flags & NDR_OUT) {
     630             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     631             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     632             :         }
     633           0 :         return NDR_ERR_SUCCESS;
     634             : }
     635             : 
     636           0 : _PUBLIC_ void ndr_print_BrowserrResetNetlogonState(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrResetNetlogonState *r)
     637             : {
     638           0 :         ndr_print_struct(ndr, name, "BrowserrResetNetlogonState");
     639           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     640           0 :         ndr->depth++;
     641           0 :         if (flags & NDR_SET_VALUES) {
     642           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     643             :         }
     644           0 :         if (flags & NDR_IN) {
     645           0 :                 ndr_print_struct(ndr, "in", "BrowserrResetNetlogonState");
     646           0 :                 ndr->depth++;
     647           0 :                 ndr->depth--;
     648             :         }
     649           0 :         if (flags & NDR_OUT) {
     650           0 :                 ndr_print_struct(ndr, "out", "BrowserrResetNetlogonState");
     651           0 :                 ndr->depth++;
     652           0 :                 ndr->depth--;
     653             :         }
     654           0 :         ndr->depth--;
     655             : }
     656             : 
     657           0 : static enum ndr_err_code ndr_push_BrowserrDebugTrace(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrDebugTrace *r)
     658             : {
     659           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     660           0 :         if (flags & NDR_IN) {
     661             :         }
     662           0 :         if (flags & NDR_OUT) {
     663             :         }
     664           0 :         return NDR_ERR_SUCCESS;
     665             : }
     666             : 
     667           0 : static enum ndr_err_code ndr_pull_BrowserrDebugTrace(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrDebugTrace *r)
     668             : {
     669           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     670           0 :         if (flags & NDR_IN) {
     671             :         }
     672           0 :         if (flags & NDR_OUT) {
     673             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     674             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     675             :         }
     676           0 :         return NDR_ERR_SUCCESS;
     677             : }
     678             : 
     679           0 : _PUBLIC_ void ndr_print_BrowserrDebugTrace(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrDebugTrace *r)
     680             : {
     681           0 :         ndr_print_struct(ndr, name, "BrowserrDebugTrace");
     682           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     683           0 :         ndr->depth++;
     684           0 :         if (flags & NDR_SET_VALUES) {
     685           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     686             :         }
     687           0 :         if (flags & NDR_IN) {
     688           0 :                 ndr_print_struct(ndr, "in", "BrowserrDebugTrace");
     689           0 :                 ndr->depth++;
     690           0 :                 ndr->depth--;
     691             :         }
     692           0 :         if (flags & NDR_OUT) {
     693           0 :                 ndr_print_struct(ndr, "out", "BrowserrDebugTrace");
     694           0 :                 ndr->depth++;
     695           0 :                 ndr->depth--;
     696             :         }
     697           0 :         ndr->depth--;
     698             : }
     699             : 
     700           0 : static enum ndr_err_code ndr_push_BrowserrQueryStatistics(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrQueryStatistics *r)
     701             : {
     702           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     703           0 :         if (flags & NDR_IN) {
     704             :         }
     705           0 :         if (flags & NDR_OUT) {
     706             :         }
     707           0 :         return NDR_ERR_SUCCESS;
     708             : }
     709             : 
     710           0 : static enum ndr_err_code ndr_pull_BrowserrQueryStatistics(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrQueryStatistics *r)
     711             : {
     712           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     713           0 :         if (flags & NDR_IN) {
     714             :         }
     715           0 :         if (flags & NDR_OUT) {
     716             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     717             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     718             :         }
     719           0 :         return NDR_ERR_SUCCESS;
     720             : }
     721             : 
     722           0 : _PUBLIC_ void ndr_print_BrowserrQueryStatistics(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrQueryStatistics *r)
     723             : {
     724           0 :         ndr_print_struct(ndr, name, "BrowserrQueryStatistics");
     725           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     726           0 :         ndr->depth++;
     727           0 :         if (flags & NDR_SET_VALUES) {
     728           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     729             :         }
     730           0 :         if (flags & NDR_IN) {
     731           0 :                 ndr_print_struct(ndr, "in", "BrowserrQueryStatistics");
     732           0 :                 ndr->depth++;
     733           0 :                 ndr->depth--;
     734             :         }
     735           0 :         if (flags & NDR_OUT) {
     736           0 :                 ndr_print_struct(ndr, "out", "BrowserrQueryStatistics");
     737           0 :                 ndr->depth++;
     738           0 :                 ndr->depth--;
     739             :         }
     740           0 :         ndr->depth--;
     741             : }
     742             : 
     743           0 : static enum ndr_err_code ndr_push_BrowserResetStatistics(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserResetStatistics *r)
     744             : {
     745           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     746           0 :         if (flags & NDR_IN) {
     747             :         }
     748           0 :         if (flags & NDR_OUT) {
     749             :         }
     750           0 :         return NDR_ERR_SUCCESS;
     751             : }
     752             : 
     753           0 : static enum ndr_err_code ndr_pull_BrowserResetStatistics(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserResetStatistics *r)
     754             : {
     755           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     756           0 :         if (flags & NDR_IN) {
     757             :         }
     758           0 :         if (flags & NDR_OUT) {
     759             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     760             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     761             :         }
     762           0 :         return NDR_ERR_SUCCESS;
     763             : }
     764             : 
     765           0 : _PUBLIC_ void ndr_print_BrowserResetStatistics(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserResetStatistics *r)
     766             : {
     767           0 :         ndr_print_struct(ndr, name, "BrowserResetStatistics");
     768           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     769           0 :         ndr->depth++;
     770           0 :         if (flags & NDR_SET_VALUES) {
     771           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     772             :         }
     773           0 :         if (flags & NDR_IN) {
     774           0 :                 ndr_print_struct(ndr, "in", "BrowserResetStatistics");
     775           0 :                 ndr->depth++;
     776           0 :                 ndr->depth--;
     777             :         }
     778           0 :         if (flags & NDR_OUT) {
     779           0 :                 ndr_print_struct(ndr, "out", "BrowserResetStatistics");
     780           0 :                 ndr->depth++;
     781           0 :                 ndr->depth--;
     782             :         }
     783           0 :         ndr->depth--;
     784             : }
     785             : 
     786           0 : static enum ndr_err_code ndr_push_NetrBrowserStatisticsClear(struct ndr_push *ndr, ndr_flags_type flags, const struct NetrBrowserStatisticsClear *r)
     787             : {
     788           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     789           0 :         if (flags & NDR_IN) {
     790             :         }
     791           0 :         if (flags & NDR_OUT) {
     792             :         }
     793           0 :         return NDR_ERR_SUCCESS;
     794             : }
     795             : 
     796           0 : static enum ndr_err_code ndr_pull_NetrBrowserStatisticsClear(struct ndr_pull *ndr, ndr_flags_type flags, struct NetrBrowserStatisticsClear *r)
     797             : {
     798           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     799           0 :         if (flags & NDR_IN) {
     800             :         }
     801           0 :         if (flags & NDR_OUT) {
     802             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     803             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     804             :         }
     805           0 :         return NDR_ERR_SUCCESS;
     806             : }
     807             : 
     808           0 : _PUBLIC_ void ndr_print_NetrBrowserStatisticsClear(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct NetrBrowserStatisticsClear *r)
     809             : {
     810           0 :         ndr_print_struct(ndr, name, "NetrBrowserStatisticsClear");
     811           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     812           0 :         ndr->depth++;
     813           0 :         if (flags & NDR_SET_VALUES) {
     814           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     815             :         }
     816           0 :         if (flags & NDR_IN) {
     817           0 :                 ndr_print_struct(ndr, "in", "NetrBrowserStatisticsClear");
     818           0 :                 ndr->depth++;
     819           0 :                 ndr->depth--;
     820             :         }
     821           0 :         if (flags & NDR_OUT) {
     822           0 :                 ndr_print_struct(ndr, "out", "NetrBrowserStatisticsClear");
     823           0 :                 ndr->depth++;
     824           0 :                 ndr->depth--;
     825             :         }
     826           0 :         ndr->depth--;
     827             : }
     828             : 
     829           0 : static enum ndr_err_code ndr_push_NetrBrowserStatisticsGet(struct ndr_push *ndr, ndr_flags_type flags, const struct NetrBrowserStatisticsGet *r)
     830             : {
     831           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     832           0 :         if (flags & NDR_IN) {
     833             :         }
     834           0 :         if (flags & NDR_OUT) {
     835             :         }
     836           0 :         return NDR_ERR_SUCCESS;
     837             : }
     838             : 
     839           0 : static enum ndr_err_code ndr_pull_NetrBrowserStatisticsGet(struct ndr_pull *ndr, ndr_flags_type flags, struct NetrBrowserStatisticsGet *r)
     840             : {
     841           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     842           0 :         if (flags & NDR_IN) {
     843             :         }
     844           0 :         if (flags & NDR_OUT) {
     845             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     846             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     847             :         }
     848           0 :         return NDR_ERR_SUCCESS;
     849             : }
     850             : 
     851           0 : _PUBLIC_ void ndr_print_NetrBrowserStatisticsGet(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct NetrBrowserStatisticsGet *r)
     852             : {
     853           0 :         ndr_print_struct(ndr, name, "NetrBrowserStatisticsGet");
     854           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     855           0 :         ndr->depth++;
     856           0 :         if (flags & NDR_SET_VALUES) {
     857           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     858             :         }
     859           0 :         if (flags & NDR_IN) {
     860           0 :                 ndr_print_struct(ndr, "in", "NetrBrowserStatisticsGet");
     861           0 :                 ndr->depth++;
     862           0 :                 ndr->depth--;
     863             :         }
     864           0 :         if (flags & NDR_OUT) {
     865           0 :                 ndr_print_struct(ndr, "out", "NetrBrowserStatisticsGet");
     866           0 :                 ndr->depth++;
     867           0 :                 ndr->depth--;
     868             :         }
     869           0 :         ndr->depth--;
     870             : }
     871             : 
     872           0 : static enum ndr_err_code ndr_push_BrowserrSetNetlogonState(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrSetNetlogonState *r)
     873             : {
     874           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     875           0 :         if (flags & NDR_IN) {
     876             :         }
     877           0 :         if (flags & NDR_OUT) {
     878             :         }
     879           0 :         return NDR_ERR_SUCCESS;
     880             : }
     881             : 
     882           0 : static enum ndr_err_code ndr_pull_BrowserrSetNetlogonState(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrSetNetlogonState *r)
     883             : {
     884           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     885           0 :         if (flags & NDR_IN) {
     886             :         }
     887           0 :         if (flags & NDR_OUT) {
     888             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     889             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     890             :         }
     891           0 :         return NDR_ERR_SUCCESS;
     892             : }
     893             : 
     894           0 : _PUBLIC_ void ndr_print_BrowserrSetNetlogonState(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrSetNetlogonState *r)
     895             : {
     896           0 :         ndr_print_struct(ndr, name, "BrowserrSetNetlogonState");
     897           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     898           0 :         ndr->depth++;
     899           0 :         if (flags & NDR_SET_VALUES) {
     900           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     901             :         }
     902           0 :         if (flags & NDR_IN) {
     903           0 :                 ndr_print_struct(ndr, "in", "BrowserrSetNetlogonState");
     904           0 :                 ndr->depth++;
     905           0 :                 ndr->depth--;
     906             :         }
     907           0 :         if (flags & NDR_OUT) {
     908           0 :                 ndr_print_struct(ndr, "out", "BrowserrSetNetlogonState");
     909           0 :                 ndr->depth++;
     910           0 :                 ndr->depth--;
     911             :         }
     912           0 :         ndr->depth--;
     913             : }
     914             : 
     915           0 : static enum ndr_err_code ndr_push_BrowserrQueryEmulatedDomains(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrQueryEmulatedDomains *r)
     916             : {
     917           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     918           0 :         if (flags & NDR_IN) {
     919             :         }
     920           0 :         if (flags & NDR_OUT) {
     921             :         }
     922           0 :         return NDR_ERR_SUCCESS;
     923             : }
     924             : 
     925           0 : static enum ndr_err_code ndr_pull_BrowserrQueryEmulatedDomains(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrQueryEmulatedDomains *r)
     926             : {
     927           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     928           0 :         if (flags & NDR_IN) {
     929             :         }
     930           0 :         if (flags & NDR_OUT) {
     931             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     932             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     933             :         }
     934           0 :         return NDR_ERR_SUCCESS;
     935             : }
     936             : 
     937           0 : _PUBLIC_ void ndr_print_BrowserrQueryEmulatedDomains(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrQueryEmulatedDomains *r)
     938             : {
     939           0 :         ndr_print_struct(ndr, name, "BrowserrQueryEmulatedDomains");
     940           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     941           0 :         ndr->depth++;
     942           0 :         if (flags & NDR_SET_VALUES) {
     943           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     944             :         }
     945           0 :         if (flags & NDR_IN) {
     946           0 :                 ndr_print_struct(ndr, "in", "BrowserrQueryEmulatedDomains");
     947           0 :                 ndr->depth++;
     948           0 :                 ndr->depth--;
     949             :         }
     950           0 :         if (flags & NDR_OUT) {
     951           0 :                 ndr_print_struct(ndr, "out", "BrowserrQueryEmulatedDomains");
     952           0 :                 ndr->depth++;
     953           0 :                 ndr->depth--;
     954             :         }
     955           0 :         ndr->depth--;
     956             : }
     957             : 
     958           0 : static enum ndr_err_code ndr_push_BrowserrServerEnumEx(struct ndr_push *ndr, ndr_flags_type flags, const struct BrowserrServerEnumEx *r)
     959             : {
     960           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     961           0 :         if (flags & NDR_IN) {
     962             :         }
     963           0 :         if (flags & NDR_OUT) {
     964             :         }
     965           0 :         return NDR_ERR_SUCCESS;
     966             : }
     967             : 
     968           0 : static enum ndr_err_code ndr_pull_BrowserrServerEnumEx(struct ndr_pull *ndr, ndr_flags_type flags, struct BrowserrServerEnumEx *r)
     969             : {
     970           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     971           0 :         if (flags & NDR_IN) {
     972             :         }
     973           0 :         if (flags & NDR_OUT) {
     974             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     975             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     976             :         }
     977           0 :         return NDR_ERR_SUCCESS;
     978             : }
     979             : 
     980           0 : _PUBLIC_ void ndr_print_BrowserrServerEnumEx(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct BrowserrServerEnumEx *r)
     981             : {
     982           0 :         ndr_print_struct(ndr, name, "BrowserrServerEnumEx");
     983           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     984           0 :         ndr->depth++;
     985           0 :         if (flags & NDR_SET_VALUES) {
     986           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     987             :         }
     988           0 :         if (flags & NDR_IN) {
     989           0 :                 ndr_print_struct(ndr, "in", "BrowserrServerEnumEx");
     990           0 :                 ndr->depth++;
     991           0 :                 ndr->depth--;
     992             :         }
     993           0 :         if (flags & NDR_OUT) {
     994           0 :                 ndr_print_struct(ndr, "out", "BrowserrServerEnumEx");
     995           0 :                 ndr->depth++;
     996           0 :                 ndr->depth--;
     997             :         }
     998           0 :         ndr->depth--;
     999             : }
    1000             : 
    1001             : #ifndef SKIP_NDR_TABLE_browser
    1002             : static const struct ndr_interface_public_struct browser_public_structs[] = {
    1003             :         { .name = NULL }
    1004             : };
    1005             : 
    1006             : static const struct ndr_interface_call browser_calls[] = {
    1007             :         {
    1008             :                 "BrowserrServerEnum",
    1009             :                 sizeof(struct BrowserrServerEnum),
    1010             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrServerEnum,
    1011             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrServerEnum,
    1012             :                 (ndr_print_function_t) ndr_print_BrowserrServerEnum,
    1013             :                 { 0, NULL },
    1014             :                 { 0, NULL },
    1015             :         },
    1016             :         {
    1017             :                 "BrowserrDebugCall",
    1018             :                 sizeof(struct BrowserrDebugCall),
    1019             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrDebugCall,
    1020             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrDebugCall,
    1021             :                 (ndr_print_function_t) ndr_print_BrowserrDebugCall,
    1022             :                 { 0, NULL },
    1023             :                 { 0, NULL },
    1024             :         },
    1025             :         {
    1026             :                 "BrowserrQueryOtherDomains",
    1027             :                 sizeof(struct BrowserrQueryOtherDomains),
    1028             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrQueryOtherDomains,
    1029             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrQueryOtherDomains,
    1030             :                 (ndr_print_function_t) ndr_print_BrowserrQueryOtherDomains,
    1031             :                 { 0, NULL },
    1032             :                 { 0, NULL },
    1033             :         },
    1034             :         {
    1035             :                 "BrowserrResetNetlogonState",
    1036             :                 sizeof(struct BrowserrResetNetlogonState),
    1037             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrResetNetlogonState,
    1038             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrResetNetlogonState,
    1039             :                 (ndr_print_function_t) ndr_print_BrowserrResetNetlogonState,
    1040             :                 { 0, NULL },
    1041             :                 { 0, NULL },
    1042             :         },
    1043             :         {
    1044             :                 "BrowserrDebugTrace",
    1045             :                 sizeof(struct BrowserrDebugTrace),
    1046             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrDebugTrace,
    1047             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrDebugTrace,
    1048             :                 (ndr_print_function_t) ndr_print_BrowserrDebugTrace,
    1049             :                 { 0, NULL },
    1050             :                 { 0, NULL },
    1051             :         },
    1052             :         {
    1053             :                 "BrowserrQueryStatistics",
    1054             :                 sizeof(struct BrowserrQueryStatistics),
    1055             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrQueryStatistics,
    1056             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrQueryStatistics,
    1057             :                 (ndr_print_function_t) ndr_print_BrowserrQueryStatistics,
    1058             :                 { 0, NULL },
    1059             :                 { 0, NULL },
    1060             :         },
    1061             :         {
    1062             :                 "BrowserResetStatistics",
    1063             :                 sizeof(struct BrowserResetStatistics),
    1064             :                 (ndr_push_flags_fn_t) ndr_push_BrowserResetStatistics,
    1065             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserResetStatistics,
    1066             :                 (ndr_print_function_t) ndr_print_BrowserResetStatistics,
    1067             :                 { 0, NULL },
    1068             :                 { 0, NULL },
    1069             :         },
    1070             :         {
    1071             :                 "NetrBrowserStatisticsClear",
    1072             :                 sizeof(struct NetrBrowserStatisticsClear),
    1073             :                 (ndr_push_flags_fn_t) ndr_push_NetrBrowserStatisticsClear,
    1074             :                 (ndr_pull_flags_fn_t) ndr_pull_NetrBrowserStatisticsClear,
    1075             :                 (ndr_print_function_t) ndr_print_NetrBrowserStatisticsClear,
    1076             :                 { 0, NULL },
    1077             :                 { 0, NULL },
    1078             :         },
    1079             :         {
    1080             :                 "NetrBrowserStatisticsGet",
    1081             :                 sizeof(struct NetrBrowserStatisticsGet),
    1082             :                 (ndr_push_flags_fn_t) ndr_push_NetrBrowserStatisticsGet,
    1083             :                 (ndr_pull_flags_fn_t) ndr_pull_NetrBrowserStatisticsGet,
    1084             :                 (ndr_print_function_t) ndr_print_NetrBrowserStatisticsGet,
    1085             :                 { 0, NULL },
    1086             :                 { 0, NULL },
    1087             :         },
    1088             :         {
    1089             :                 "BrowserrSetNetlogonState",
    1090             :                 sizeof(struct BrowserrSetNetlogonState),
    1091             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrSetNetlogonState,
    1092             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrSetNetlogonState,
    1093             :                 (ndr_print_function_t) ndr_print_BrowserrSetNetlogonState,
    1094             :                 { 0, NULL },
    1095             :                 { 0, NULL },
    1096             :         },
    1097             :         {
    1098             :                 "BrowserrQueryEmulatedDomains",
    1099             :                 sizeof(struct BrowserrQueryEmulatedDomains),
    1100             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrQueryEmulatedDomains,
    1101             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrQueryEmulatedDomains,
    1102             :                 (ndr_print_function_t) ndr_print_BrowserrQueryEmulatedDomains,
    1103             :                 { 0, NULL },
    1104             :                 { 0, NULL },
    1105             :         },
    1106             :         {
    1107             :                 "BrowserrServerEnumEx",
    1108             :                 sizeof(struct BrowserrServerEnumEx),
    1109             :                 (ndr_push_flags_fn_t) ndr_push_BrowserrServerEnumEx,
    1110             :                 (ndr_pull_flags_fn_t) ndr_pull_BrowserrServerEnumEx,
    1111             :                 (ndr_print_function_t) ndr_print_BrowserrServerEnumEx,
    1112             :                 { 0, NULL },
    1113             :                 { 0, NULL },
    1114             :         },
    1115             :         { .name = NULL }
    1116             : };
    1117             : 
    1118             : static const char * const browser_endpoint_strings[] = {
    1119             :         "ncacn_np:[\\pipe\\browser]", 
    1120             :         "ncacn_ip_tcp:", 
    1121             :         "ncalrpc:", 
    1122             : };
    1123             : 
    1124             : static const struct ndr_interface_string_array browser_endpoints = {
    1125             :         .count  = 3,
    1126             :         .names  = browser_endpoint_strings
    1127             : };
    1128             : 
    1129             : static const char * const browser_authservice_strings[] = {
    1130             :         "host", 
    1131             : };
    1132             : 
    1133             : static const struct ndr_interface_string_array browser_authservices = {
    1134             :         .count  = 1,
    1135             :         .names  = browser_authservice_strings
    1136             : };
    1137             : 
    1138             : 
    1139             : const struct ndr_interface_table ndr_table_browser = {
    1140             :         .name           = "browser",
    1141             :         .syntax_id      = {
    1142             :                 {0x6bffd098,0xa112,0x3610,{0x98,0x33},{0x01,0x28,0x92,0x02,0x01,0x62}},
    1143             :                 NDR_BROWSER_VERSION
    1144             :         },
    1145             :         .helpstring     = NDR_BROWSER_HELPSTRING,
    1146             :         .num_calls      = 12,
    1147             :         .calls          = browser_calls,
    1148             :         .num_public_structs     = 0,
    1149             :         .public_structs         = browser_public_structs,
    1150             :         .endpoints      = &browser_endpoints,
    1151             :         .authservices   = &browser_authservices
    1152             : };
    1153             : 
    1154             : #endif /* SKIP_NDR_TABLE_browser */

Generated by: LCOV version 1.14