LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_rap.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 802 6479 12.4 %
Date: 2024-04-21 15:09:00 Functions: 16 200 8.0 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_rap.h"
       5             : 
       6           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_status(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum rap_status r)
       7             : {
       8           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
       9           0 :         return NDR_ERR_SUCCESS;
      10             : }
      11             : 
      12          90 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_status(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum rap_status *r)
      13             : {
      14           0 :         uint16_t v;
      15          90 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
      16          90 :         *r = v;
      17          90 :         return NDR_ERR_SUCCESS;
      18             : }
      19             : 
      20           0 : static enum ndr_err_code ndr_push_rap_share_info_0(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_share_info_0 *r)
      21             : {
      22           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      23           0 :         if (ndr_flags & NDR_SCALARS) {
      24           0 :                 NDR_CHECK(ndr_push_align(ndr, 1));
      25           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->share_name, 13));
      26           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 1));
      27             :         }
      28           0 :         if (ndr_flags & NDR_BUFFERS) {
      29           0 :         }
      30           0 :         return NDR_ERR_SUCCESS;
      31             : }
      32             : 
      33           0 : static enum ndr_err_code ndr_pull_rap_share_info_0(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_share_info_0 *r)
      34             : {
      35           0 :         uint32_t size_share_name_0 = 0;
      36           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      37           0 :         if (ndr_flags & NDR_SCALARS) {
      38           0 :                 NDR_CHECK(ndr_pull_align(ndr, 1));
      39           0 :                 size_share_name_0 = 13;
      40           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->share_name, size_share_name_0));
      41           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
      42             :         }
      43           0 :         if (ndr_flags & NDR_BUFFERS) {
      44           0 :         }
      45           0 :         return NDR_ERR_SUCCESS;
      46             : }
      47             : 
      48           0 : _PUBLIC_ void ndr_print_rap_share_info_0(struct ndr_print *ndr, const char *name, const struct rap_share_info_0 *r)
      49             : {
      50           0 :         ndr_print_struct(ndr, name, "rap_share_info_0");
      51           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      52           0 :         ndr->depth++;
      53           0 :         ndr_print_array_uint8(ndr, "share_name", r->share_name, 13);
      54           0 :         ndr->depth--;
      55             : }
      56             : 
      57           0 : static enum ndr_err_code ndr_push_rap_share_info_1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_share_info_1 *r)
      58             : {
      59           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      60           0 :         if (ndr_flags & NDR_SCALARS) {
      61           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
      62           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->share_name, 13));
      63           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->reserved1));
      64           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->share_type));
      65             :                 {
      66           0 :                         libndr_flags _flags_save_string = ndr->flags;
      67           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
      68           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
      69           0 :                         ndr->flags = _flags_save_string;
      70             :                 }
      71           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
      72             :         }
      73           0 :         if (ndr_flags & NDR_BUFFERS) {
      74             :                 {
      75           0 :                         libndr_flags _flags_save_string = ndr->flags;
      76           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
      77           0 :                         if (r->comment) {
      78           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->comment));
      79             :                         }
      80           0 :                         ndr->flags = _flags_save_string;
      81             :                 }
      82             :         }
      83           0 :         return NDR_ERR_SUCCESS;
      84             : }
      85             : 
      86           0 : static enum ndr_err_code ndr_pull_rap_share_info_1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_share_info_1 *r)
      87             : {
      88           0 :         uint32_t size_share_name_0 = 0;
      89           0 :         uint32_t _ptr_comment;
      90           0 :         TALLOC_CTX *_mem_save_comment_0 = NULL;
      91           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      92           0 :         if (ndr_flags & NDR_SCALARS) {
      93           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
      94           0 :                 size_share_name_0 = 13;
      95           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->share_name, size_share_name_0));
      96           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->reserved1));
      97           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->share_type));
      98             :                 {
      99           0 :                         libndr_flags _flags_save_string = ndr->flags;
     100           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     101           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
     102           0 :                         if (_ptr_comment) {
     103           0 :                                 NDR_PULL_ALLOC(ndr, r->comment);
     104             :                         } else {
     105           0 :                                 r->comment = NULL;
     106             :                         }
     107           0 :                         ndr->flags = _flags_save_string;
     108             :                 }
     109           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     110             :         }
     111           0 :         if (ndr_flags & NDR_BUFFERS) {
     112             :                 {
     113           0 :                         libndr_flags _flags_save_string = ndr->flags;
     114           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     115           0 :                         if (r->comment) {
     116           0 :                                 _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
     117           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
     118           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->comment));
     119           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
     120             :                         }
     121           0 :                         ndr->flags = _flags_save_string;
     122             :                 }
     123             :         }
     124           0 :         return NDR_ERR_SUCCESS;
     125             : }
     126             : 
     127           0 : _PUBLIC_ void ndr_print_rap_share_info_1(struct ndr_print *ndr, const char *name, const struct rap_share_info_1 *r)
     128             : {
     129           0 :         ndr_print_struct(ndr, name, "rap_share_info_1");
     130           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     131           0 :         ndr->depth++;
     132           0 :         ndr_print_array_uint8(ndr, "share_name", r->share_name, 13);
     133           0 :         ndr_print_uint8(ndr, "reserved1", r->reserved1);
     134           0 :         ndr_print_uint16(ndr, "share_type", r->share_type);
     135             :         {
     136           0 :                 libndr_flags _flags_save_string = ndr->flags;
     137           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     138           0 :                 ndr_print_ptr(ndr, "comment", r->comment);
     139           0 :                 ndr->depth++;
     140           0 :                 if (r->comment) {
     141           0 :                         ndr_print_string(ndr, "comment", r->comment);
     142             :                 }
     143           0 :                 ndr->depth--;
     144           0 :                 ndr->flags = _flags_save_string;
     145             :         }
     146           0 :         ndr->depth--;
     147             : }
     148             : 
     149           0 : static enum ndr_err_code ndr_push_rap_share_info_2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_share_info_2 *r)
     150             : {
     151           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     152           0 :         if (ndr_flags & NDR_SCALARS) {
     153           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     154           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->share_name, 13));
     155           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->reserved1));
     156           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->share_type));
     157             :                 {
     158           0 :                         libndr_flags _flags_save_string = ndr->flags;
     159           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     160           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
     161           0 :                         ndr->flags = _flags_save_string;
     162             :                 }
     163           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->perms));
     164           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->maximum_users));
     165           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->active_users));
     166             :                 {
     167           0 :                         libndr_flags _flags_save_string = ndr->flags;
     168           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     169           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->path));
     170           0 :                         ndr->flags = _flags_save_string;
     171             :                 }
     172           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->password, 9));
     173           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->reserved2));
     174           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     175             :         }
     176           0 :         if (ndr_flags & NDR_BUFFERS) {
     177             :                 {
     178           0 :                         libndr_flags _flags_save_string = ndr->flags;
     179           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     180           0 :                         if (r->comment) {
     181           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->comment));
     182             :                         }
     183           0 :                         ndr->flags = _flags_save_string;
     184             :                 }
     185             :                 {
     186           0 :                         libndr_flags _flags_save_string = ndr->flags;
     187           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     188           0 :                         if (r->path) {
     189           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->path));
     190             :                         }
     191           0 :                         ndr->flags = _flags_save_string;
     192             :                 }
     193             :         }
     194           0 :         return NDR_ERR_SUCCESS;
     195             : }
     196             : 
     197           0 : static enum ndr_err_code ndr_pull_rap_share_info_2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_share_info_2 *r)
     198             : {
     199           0 :         uint32_t size_share_name_0 = 0;
     200           0 :         uint32_t _ptr_comment;
     201           0 :         TALLOC_CTX *_mem_save_comment_0 = NULL;
     202           0 :         uint32_t _ptr_path;
     203           0 :         TALLOC_CTX *_mem_save_path_0 = NULL;
     204           0 :         uint32_t size_password_0 = 0;
     205           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     206           0 :         if (ndr_flags & NDR_SCALARS) {
     207           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     208           0 :                 size_share_name_0 = 13;
     209           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->share_name, size_share_name_0));
     210           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->reserved1));
     211           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->share_type));
     212             :                 {
     213           0 :                         libndr_flags _flags_save_string = ndr->flags;
     214           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     215           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
     216           0 :                         if (_ptr_comment) {
     217           0 :                                 NDR_PULL_ALLOC(ndr, r->comment);
     218             :                         } else {
     219           0 :                                 r->comment = NULL;
     220             :                         }
     221           0 :                         ndr->flags = _flags_save_string;
     222             :                 }
     223           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->perms));
     224           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->maximum_users));
     225           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->active_users));
     226             :                 {
     227           0 :                         libndr_flags _flags_save_string = ndr->flags;
     228           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     229           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_path));
     230           0 :                         if (_ptr_path) {
     231           0 :                                 NDR_PULL_ALLOC(ndr, r->path);
     232             :                         } else {
     233           0 :                                 r->path = NULL;
     234             :                         }
     235           0 :                         ndr->flags = _flags_save_string;
     236             :                 }
     237           0 :                 size_password_0 = 9;
     238           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->password, size_password_0));
     239           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->reserved2));
     240           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     241             :         }
     242           0 :         if (ndr_flags & NDR_BUFFERS) {
     243             :                 {
     244           0 :                         libndr_flags _flags_save_string = ndr->flags;
     245           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     246           0 :                         if (r->comment) {
     247           0 :                                 _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
     248           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
     249           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->comment));
     250           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
     251             :                         }
     252           0 :                         ndr->flags = _flags_save_string;
     253             :                 }
     254             :                 {
     255           0 :                         libndr_flags _flags_save_string = ndr->flags;
     256           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     257           0 :                         if (r->path) {
     258           0 :                                 _mem_save_path_0 = NDR_PULL_GET_MEM_CTX(ndr);
     259           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->path, 0);
     260           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->path));
     261           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_path_0, 0);
     262             :                         }
     263           0 :                         ndr->flags = _flags_save_string;
     264             :                 }
     265             :         }
     266           0 :         return NDR_ERR_SUCCESS;
     267             : }
     268             : 
     269           0 : _PUBLIC_ void ndr_print_rap_share_info_2(struct ndr_print *ndr, const char *name, const struct rap_share_info_2 *r)
     270             : {
     271           0 :         ndr_print_struct(ndr, name, "rap_share_info_2");
     272           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     273           0 :         ndr->depth++;
     274           0 :         ndr_print_array_uint8(ndr, "share_name", r->share_name, 13);
     275           0 :         ndr_print_uint8(ndr, "reserved1", r->reserved1);
     276           0 :         ndr_print_uint16(ndr, "share_type", r->share_type);
     277             :         {
     278           0 :                 libndr_flags _flags_save_string = ndr->flags;
     279           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     280           0 :                 ndr_print_ptr(ndr, "comment", r->comment);
     281           0 :                 ndr->depth++;
     282           0 :                 if (r->comment) {
     283           0 :                         ndr_print_string(ndr, "comment", r->comment);
     284             :                 }
     285           0 :                 ndr->depth--;
     286           0 :                 ndr->flags = _flags_save_string;
     287             :         }
     288           0 :         ndr_print_uint16(ndr, "perms", r->perms);
     289           0 :         ndr_print_uint16(ndr, "maximum_users", r->maximum_users);
     290           0 :         ndr_print_uint16(ndr, "active_users", r->active_users);
     291             :         {
     292           0 :                 libndr_flags _flags_save_string = ndr->flags;
     293           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     294           0 :                 ndr_print_ptr(ndr, "path", r->path);
     295           0 :                 ndr->depth++;
     296           0 :                 if (r->path) {
     297           0 :                         ndr_print_string(ndr, "path", r->path);
     298             :                 }
     299           0 :                 ndr->depth--;
     300           0 :                 ndr->flags = _flags_save_string;
     301             :         }
     302           0 :         ndr_print_array_uint8(ndr, "password", r->password, 9);
     303           0 :         ndr_print_uint8(ndr, "reserved2", r->reserved2);
     304           0 :         ndr->depth--;
     305             : }
     306             : 
     307           0 : static enum ndr_err_code ndr_push_rap_share_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union rap_share_info *r)
     308             : {
     309           0 :         uint32_t level;
     310           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     311           0 :         if (ndr_flags & NDR_SCALARS) {
     312             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     313           0 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     314           0 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
     315           0 :                 switch (level) {
     316           0 :                         case 0: {
     317           0 :                                 NDR_CHECK(ndr_push_rap_share_info_0(ndr, NDR_SCALARS, &r->info0));
     318           0 :                         break; }
     319             : 
     320           0 :                         case 1: {
     321           0 :                                 NDR_CHECK(ndr_push_rap_share_info_1(ndr, NDR_SCALARS, &r->info1));
     322           0 :                         break; }
     323             : 
     324           0 :                         case 2: {
     325           0 :                                 NDR_CHECK(ndr_push_rap_share_info_2(ndr, NDR_SCALARS, &r->info2));
     326           0 :                         break; }
     327             : 
     328           0 :                         default:
     329           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
     330             :                 }
     331             :         }
     332           0 :         if (ndr_flags & NDR_BUFFERS) {
     333           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
     334             :                         /* We didn't get it above, and the token is not needed after this. */
     335           0 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     336             :                 }
     337           0 :                 switch (level) {
     338           0 :                         case 0:
     339           0 :                         break;
     340             : 
     341           0 :                         case 1:
     342           0 :                                 NDR_CHECK(ndr_push_rap_share_info_1(ndr, NDR_BUFFERS, &r->info1));
     343           0 :                         break;
     344             : 
     345           0 :                         case 2:
     346           0 :                                 NDR_CHECK(ndr_push_rap_share_info_2(ndr, NDR_BUFFERS, &r->info2));
     347           0 :                         break;
     348             : 
     349           0 :                         default:
     350           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
     351             :                 }
     352             :         }
     353           0 :         return NDR_ERR_SUCCESS;
     354             : }
     355             : 
     356           0 : static enum ndr_err_code ndr_pull_rap_share_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union rap_share_info *r)
     357             : {
     358           0 :         uint32_t level;
     359           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     360           0 :         if (ndr_flags & NDR_SCALARS) {
     361             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     362           0 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     363           0 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
     364           0 :                 switch (level) {
     365           0 :                         case 0: {
     366           0 :                                 NDR_CHECK(ndr_pull_rap_share_info_0(ndr, NDR_SCALARS, &r->info0));
     367           0 :                         break; }
     368             : 
     369           0 :                         case 1: {
     370           0 :                                 NDR_CHECK(ndr_pull_rap_share_info_1(ndr, NDR_SCALARS, &r->info1));
     371           0 :                         break; }
     372             : 
     373           0 :                         case 2: {
     374           0 :                                 NDR_CHECK(ndr_pull_rap_share_info_2(ndr, NDR_SCALARS, &r->info2));
     375           0 :                         break; }
     376             : 
     377           0 :                         default:
     378           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
     379             :                 }
     380             :         }
     381           0 :         if (ndr_flags & NDR_BUFFERS) {
     382           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
     383             :                         /* We didn't get it above, and the token is not needed after this. */
     384           0 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     385             :                 }
     386           0 :                 switch (level) {
     387           0 :                         case 0:
     388           0 :                         break;
     389             : 
     390           0 :                         case 1:
     391           0 :                                 NDR_CHECK(ndr_pull_rap_share_info_1(ndr, NDR_BUFFERS, &r->info1));
     392           0 :                         break;
     393             : 
     394           0 :                         case 2:
     395           0 :                                 NDR_CHECK(ndr_pull_rap_share_info_2(ndr, NDR_BUFFERS, &r->info2));
     396           0 :                         break;
     397             : 
     398           0 :                         default:
     399           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
     400             :                 }
     401             :         }
     402           0 :         return NDR_ERR_SUCCESS;
     403             : }
     404             : 
     405           0 : _PUBLIC_ void ndr_print_rap_share_info(struct ndr_print *ndr, const char *name, const union rap_share_info *r)
     406             : {
     407           0 :         uint32_t level;
     408           0 :         level = ndr_print_steal_switch_value(ndr, r);
     409           0 :         ndr_print_union(ndr, name, level, "rap_share_info");
     410           0 :         switch (level) {
     411           0 :                 case 0:
     412           0 :                         ndr_print_rap_share_info_0(ndr, "info0", &r->info0);
     413           0 :                 break;
     414             : 
     415           0 :                 case 1:
     416           0 :                         ndr_print_rap_share_info_1(ndr, "info1", &r->info1);
     417           0 :                 break;
     418             : 
     419           0 :                 case 2:
     420           0 :                         ndr_print_rap_share_info_2(ndr, "info2", &r->info2);
     421           0 :                 break;
     422             : 
     423           0 :                 default:
     424           0 :                         ndr_print_bad_level(ndr, name, level);
     425             :         }
     426           0 : }
     427             : 
     428           0 : static enum ndr_err_code ndr_push_rap_server_info_0(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_server_info_0 *r)
     429             : {
     430           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     431           0 :         if (ndr_flags & NDR_SCALARS) {
     432           0 :                 NDR_CHECK(ndr_push_align(ndr, 1));
     433           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->name, 16));
     434           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 1));
     435             :         }
     436           0 :         if (ndr_flags & NDR_BUFFERS) {
     437           0 :         }
     438           0 :         return NDR_ERR_SUCCESS;
     439             : }
     440             : 
     441           0 : static enum ndr_err_code ndr_pull_rap_server_info_0(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_server_info_0 *r)
     442             : {
     443           0 :         uint32_t size_name_0 = 0;
     444           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     445           0 :         if (ndr_flags & NDR_SCALARS) {
     446           0 :                 NDR_CHECK(ndr_pull_align(ndr, 1));
     447           0 :                 size_name_0 = 16;
     448           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->name, size_name_0));
     449           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
     450             :         }
     451           0 :         if (ndr_flags & NDR_BUFFERS) {
     452           0 :         }
     453           0 :         return NDR_ERR_SUCCESS;
     454             : }
     455             : 
     456           0 : _PUBLIC_ void ndr_print_rap_server_info_0(struct ndr_print *ndr, const char *name, const struct rap_server_info_0 *r)
     457             : {
     458           0 :         ndr_print_struct(ndr, name, "rap_server_info_0");
     459           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     460           0 :         ndr->depth++;
     461           0 :         ndr_print_array_uint8(ndr, "name", r->name, 16);
     462           0 :         ndr->depth--;
     463             : }
     464             : 
     465           0 : static enum ndr_err_code ndr_push_rap_server_info_1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_server_info_1 *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, 5));
     470           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->name, 16));
     471           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->version_major));
     472           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->version_minor));
     473           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->servertype));
     474             :                 {
     475           0 :                         libndr_flags _flags_save_string = ndr->flags;
     476           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     477           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->comment));
     478           0 :                         ndr->flags = _flags_save_string;
     479             :                 }
     480           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     481             :         }
     482           0 :         if (ndr_flags & NDR_BUFFERS) {
     483             :                 {
     484           0 :                         libndr_flags _flags_save_string = ndr->flags;
     485           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     486           0 :                         if (r->comment) {
     487           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->comment));
     488             :                         }
     489           0 :                         ndr->flags = _flags_save_string;
     490             :                 }
     491             :         }
     492           0 :         return NDR_ERR_SUCCESS;
     493             : }
     494             : 
     495           0 : static enum ndr_err_code ndr_pull_rap_server_info_1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_server_info_1 *r)
     496             : {
     497           0 :         uint32_t size_name_0 = 0;
     498           0 :         uint32_t _ptr_comment;
     499           0 :         TALLOC_CTX *_mem_save_comment_0 = NULL;
     500           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     501           0 :         if (ndr_flags & NDR_SCALARS) {
     502           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     503           0 :                 size_name_0 = 16;
     504           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->name, size_name_0));
     505           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->version_major));
     506           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->version_minor));
     507           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->servertype));
     508             :                 {
     509           0 :                         libndr_flags _flags_save_string = ndr->flags;
     510           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     511           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_comment));
     512           0 :                         if (_ptr_comment) {
     513           0 :                                 NDR_PULL_ALLOC(ndr, r->comment);
     514             :                         } else {
     515           0 :                                 r->comment = NULL;
     516             :                         }
     517           0 :                         ndr->flags = _flags_save_string;
     518             :                 }
     519           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     520             :         }
     521           0 :         if (ndr_flags & NDR_BUFFERS) {
     522             :                 {
     523           0 :                         libndr_flags _flags_save_string = ndr->flags;
     524           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     525           0 :                         if (r->comment) {
     526           0 :                                 _mem_save_comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
     527           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->comment, 0);
     528           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->comment));
     529           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_comment_0, 0);
     530             :                         }
     531           0 :                         ndr->flags = _flags_save_string;
     532             :                 }
     533             :         }
     534           0 :         return NDR_ERR_SUCCESS;
     535             : }
     536             : 
     537           0 : _PUBLIC_ void ndr_print_rap_server_info_1(struct ndr_print *ndr, const char *name, const struct rap_server_info_1 *r)
     538             : {
     539           0 :         ndr_print_struct(ndr, name, "rap_server_info_1");
     540           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     541           0 :         ndr->depth++;
     542           0 :         ndr_print_array_uint8(ndr, "name", r->name, 16);
     543           0 :         ndr_print_uint8(ndr, "version_major", r->version_major);
     544           0 :         ndr_print_uint8(ndr, "version_minor", r->version_minor);
     545           0 :         ndr_print_uint32(ndr, "servertype", r->servertype);
     546             :         {
     547           0 :                 libndr_flags _flags_save_string = ndr->flags;
     548           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     549           0 :                 ndr_print_ptr(ndr, "comment", r->comment);
     550           0 :                 ndr->depth++;
     551           0 :                 if (r->comment) {
     552           0 :                         ndr_print_string(ndr, "comment", r->comment);
     553             :                 }
     554           0 :                 ndr->depth--;
     555           0 :                 ndr->flags = _flags_save_string;
     556             :         }
     557           0 :         ndr->depth--;
     558             : }
     559             : 
     560           0 : static enum ndr_err_code ndr_push_rap_server_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union rap_server_info *r)
     561             : {
     562           0 :         uint32_t level;
     563           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     564           0 :         if (ndr_flags & NDR_SCALARS) {
     565             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     566           0 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     567           0 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
     568           0 :                 switch (level) {
     569           0 :                         case 0: {
     570           0 :                                 NDR_CHECK(ndr_push_rap_server_info_0(ndr, NDR_SCALARS, &r->info0));
     571           0 :                         break; }
     572             : 
     573           0 :                         case 1: {
     574           0 :                                 NDR_CHECK(ndr_push_rap_server_info_1(ndr, NDR_SCALARS, &r->info1));
     575           0 :                         break; }
     576             : 
     577           0 :                         default:
     578           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
     579             :                 }
     580             :         }
     581           0 :         if (ndr_flags & NDR_BUFFERS) {
     582           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
     583             :                         /* We didn't get it above, and the token is not needed after this. */
     584           0 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     585             :                 }
     586           0 :                 switch (level) {
     587           0 :                         case 0:
     588           0 :                         break;
     589             : 
     590           0 :                         case 1:
     591           0 :                                 NDR_CHECK(ndr_push_rap_server_info_1(ndr, NDR_BUFFERS, &r->info1));
     592           0 :                         break;
     593             : 
     594           0 :                         default:
     595           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
     596             :                 }
     597             :         }
     598           0 :         return NDR_ERR_SUCCESS;
     599             : }
     600             : 
     601           0 : static enum ndr_err_code ndr_pull_rap_server_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union rap_server_info *r)
     602             : {
     603           0 :         uint32_t level;
     604           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     605           0 :         if (ndr_flags & NDR_SCALARS) {
     606             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     607           0 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     608           0 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
     609           0 :                 switch (level) {
     610           0 :                         case 0: {
     611           0 :                                 NDR_CHECK(ndr_pull_rap_server_info_0(ndr, NDR_SCALARS, &r->info0));
     612           0 :                         break; }
     613             : 
     614           0 :                         case 1: {
     615           0 :                                 NDR_CHECK(ndr_pull_rap_server_info_1(ndr, NDR_SCALARS, &r->info1));
     616           0 :                         break; }
     617             : 
     618           0 :                         default:
     619           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
     620             :                 }
     621             :         }
     622           0 :         if (ndr_flags & NDR_BUFFERS) {
     623           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
     624             :                         /* We didn't get it above, and the token is not needed after this. */
     625           0 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     626             :                 }
     627           0 :                 switch (level) {
     628           0 :                         case 0:
     629           0 :                         break;
     630             : 
     631           0 :                         case 1:
     632           0 :                                 NDR_CHECK(ndr_pull_rap_server_info_1(ndr, NDR_BUFFERS, &r->info1));
     633           0 :                         break;
     634             : 
     635           0 :                         default:
     636           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
     637             :                 }
     638             :         }
     639           0 :         return NDR_ERR_SUCCESS;
     640             : }
     641             : 
     642           0 : _PUBLIC_ void ndr_print_rap_server_info(struct ndr_print *ndr, const char *name, const union rap_server_info *r)
     643             : {
     644           0 :         uint32_t level;
     645           0 :         level = ndr_print_steal_switch_value(ndr, r);
     646           0 :         ndr_print_union(ndr, name, level, "rap_server_info");
     647           0 :         switch (level) {
     648           0 :                 case 0:
     649           0 :                         ndr_print_rap_server_info_0(ndr, "info0", &r->info0);
     650           0 :                 break;
     651             : 
     652           0 :                 case 1:
     653           0 :                         ndr_print_rap_server_info_1(ndr, "info1", &r->info1);
     654           0 :                 break;
     655             : 
     656           0 :                 default:
     657           0 :                         ndr_print_bad_level(ndr, name, level);
     658             :         }
     659           0 : }
     660             : 
     661           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_PrintJStatusCode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum rap_PrintJStatusCode r)
     662             : {
     663           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
     664           0 :         return NDR_ERR_SUCCESS;
     665             : }
     666             : 
     667           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_PrintJStatusCode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum rap_PrintJStatusCode *r)
     668             : {
     669           0 :         uint16_t v;
     670           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
     671           0 :         *r = v;
     672           0 :         return NDR_ERR_SUCCESS;
     673             : }
     674             : 
     675           0 : _PUBLIC_ void ndr_print_rap_PrintJStatusCode(struct ndr_print *ndr, const char *name, enum rap_PrintJStatusCode r)
     676             : {
     677           0 :         const char *val = NULL;
     678             : 
     679           0 :         switch (r) {
     680           0 :                 case PRJ_QS_QUEUED: val = "PRJ_QS_QUEUED"; break;
     681           0 :                 case PRJ_QS_PAUSED: val = "PRJ_QS_PAUSED"; break;
     682           0 :                 case PRJ_QS_SPOOLING: val = "PRJ_QS_SPOOLING"; break;
     683           0 :                 case PRJ_QS_PRINTING: val = "PRJ_QS_PRINTING"; break;
     684           0 :                 case PRJ_QS_ERROR: val = "PRJ_QS_ERROR"; break;
     685             :         }
     686           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     687           0 : }
     688             : 
     689           0 : static enum ndr_err_code ndr_push_rap_PrintJobInfo0(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintJobInfo0 *r)
     690             : {
     691           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     692           0 :         if (ndr_flags & NDR_SCALARS) {
     693           0 :                 NDR_CHECK(ndr_push_align(ndr, 2));
     694           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobID));
     695           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 2));
     696             :         }
     697           0 :         if (ndr_flags & NDR_BUFFERS) {
     698           0 :         }
     699           0 :         return NDR_ERR_SUCCESS;
     700             : }
     701             : 
     702           0 : static enum ndr_err_code ndr_pull_rap_PrintJobInfo0(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintJobInfo0 *r)
     703             : {
     704           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     705           0 :         if (ndr_flags & NDR_SCALARS) {
     706           0 :                 NDR_CHECK(ndr_pull_align(ndr, 2));
     707           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobID));
     708           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 2));
     709             :         }
     710           0 :         if (ndr_flags & NDR_BUFFERS) {
     711           0 :         }
     712           0 :         return NDR_ERR_SUCCESS;
     713             : }
     714             : 
     715           0 : _PUBLIC_ void ndr_print_rap_PrintJobInfo0(struct ndr_print *ndr, const char *name, const struct rap_PrintJobInfo0 *r)
     716             : {
     717           0 :         ndr_print_struct(ndr, name, "rap_PrintJobInfo0");
     718           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     719           0 :         ndr->depth++;
     720           0 :         ndr_print_uint16(ndr, "JobID", r->JobID);
     721           0 :         ndr->depth--;
     722             : }
     723             : 
     724           0 : static enum ndr_err_code ndr_push_rap_PrintJobInfo1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintJobInfo1 *r)
     725             : {
     726           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     727           0 :         if (ndr_flags & NDR_SCALARS) {
     728           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     729           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobID));
     730           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->UserName, 21, sizeof(uint8_t), CH_DOS));
     731           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Pad));
     732           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->NotifyName, 16, sizeof(uint8_t), CH_DOS));
     733           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->DataType, 10, sizeof(uint8_t), CH_DOS));
     734             :                 {
     735           0 :                         libndr_flags _flags_save_string = ndr->flags;
     736           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     737           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintParameterString));
     738           0 :                         ndr->flags = _flags_save_string;
     739             :                 }
     740           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintParameterStringHigh));
     741           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobPosition));
     742           0 :                 NDR_CHECK(ndr_push_rap_PrintJStatusCode(ndr, NDR_SCALARS, r->JobStatus));
     743             :                 {
     744           0 :                         libndr_flags _flags_save_string = ndr->flags;
     745           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     746           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->JobStatusString));
     747           0 :                         ndr->flags = _flags_save_string;
     748             :                 }
     749           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobStatusStringHigh));
     750           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->TimeSubmitted));
     751           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->JobSize));
     752             :                 {
     753           0 :                         libndr_flags _flags_save_string = ndr->flags;
     754           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     755           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->JobCommentString));
     756           0 :                         ndr->flags = _flags_save_string;
     757             :                 }
     758           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobCommentStringHigh));
     759           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
     760             :         }
     761           0 :         if (ndr_flags & NDR_BUFFERS) {
     762             :                 {
     763           0 :                         libndr_flags _flags_save_string = ndr->flags;
     764           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     765           0 :                         if (r->PrintParameterString) {
     766           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintParameterString));
     767           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintParameterString));
     768             :                         }
     769           0 :                         ndr->flags = _flags_save_string;
     770             :                 }
     771             :                 {
     772           0 :                         libndr_flags _flags_save_string = ndr->flags;
     773           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     774           0 :                         if (r->JobStatusString) {
     775           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->JobStatusString));
     776           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->JobStatusString));
     777             :                         }
     778           0 :                         ndr->flags = _flags_save_string;
     779             :                 }
     780             :                 {
     781           0 :                         libndr_flags _flags_save_string = ndr->flags;
     782           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     783           0 :                         if (r->JobCommentString) {
     784           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->JobCommentString));
     785           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->JobCommentString));
     786             :                         }
     787           0 :                         ndr->flags = _flags_save_string;
     788             :                 }
     789             :         }
     790           0 :         return NDR_ERR_SUCCESS;
     791             : }
     792             : 
     793           0 : static enum ndr_err_code ndr_pull_rap_PrintJobInfo1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintJobInfo1 *r)
     794             : {
     795           0 :         uint32_t size_UserName_0 = 0;
     796           0 :         uint32_t size_NotifyName_0 = 0;
     797           0 :         uint32_t size_DataType_0 = 0;
     798           0 :         uint16_t _ptr_PrintParameterString;
     799           0 :         TALLOC_CTX *_mem_save_PrintParameterString_0 = NULL;
     800           0 :         uint16_t _ptr_JobStatusString;
     801           0 :         TALLOC_CTX *_mem_save_JobStatusString_0 = NULL;
     802           0 :         uint16_t _ptr_JobCommentString;
     803           0 :         TALLOC_CTX *_mem_save_JobCommentString_0 = NULL;
     804           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     805           0 :         if (ndr_flags & NDR_SCALARS) {
     806           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
     807           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobID));
     808           0 :                 size_UserName_0 = 21;
     809           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->UserName, size_UserName_0, sizeof(uint8_t), CH_DOS));
     810           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Pad));
     811           0 :                 size_NotifyName_0 = 16;
     812           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->NotifyName, size_NotifyName_0, sizeof(uint8_t), CH_DOS));
     813           0 :                 size_DataType_0 = 10;
     814           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->DataType, size_DataType_0, sizeof(uint8_t), CH_DOS));
     815             :                 {
     816           0 :                         libndr_flags _flags_save_string = ndr->flags;
     817           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     818           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintParameterString));
     819           0 :                         if (_ptr_PrintParameterString) {
     820           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintParameterString);
     821           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintParameterString, _ptr_PrintParameterString));
     822             :                         } else {
     823           0 :                                 r->PrintParameterString = NULL;
     824             :                         }
     825           0 :                         ndr->flags = _flags_save_string;
     826             :                 }
     827           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintParameterStringHigh));
     828           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobPosition));
     829           0 :                 NDR_CHECK(ndr_pull_rap_PrintJStatusCode(ndr, NDR_SCALARS, &r->JobStatus));
     830             :                 {
     831           0 :                         libndr_flags _flags_save_string = ndr->flags;
     832           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     833           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_JobStatusString));
     834           0 :                         if (_ptr_JobStatusString) {
     835           0 :                                 NDR_PULL_ALLOC(ndr, r->JobStatusString);
     836           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->JobStatusString, _ptr_JobStatusString));
     837             :                         } else {
     838           0 :                                 r->JobStatusString = NULL;
     839             :                         }
     840           0 :                         ndr->flags = _flags_save_string;
     841             :                 }
     842           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobStatusStringHigh));
     843           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->TimeSubmitted));
     844           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->JobSize));
     845             :                 {
     846           0 :                         libndr_flags _flags_save_string = ndr->flags;
     847           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     848           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_JobCommentString));
     849           0 :                         if (_ptr_JobCommentString) {
     850           0 :                                 NDR_PULL_ALLOC(ndr, r->JobCommentString);
     851           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->JobCommentString, _ptr_JobCommentString));
     852             :                         } else {
     853           0 :                                 r->JobCommentString = NULL;
     854             :                         }
     855           0 :                         ndr->flags = _flags_save_string;
     856             :                 }
     857           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobCommentStringHigh));
     858           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
     859             :         }
     860           0 :         if (ndr_flags & NDR_BUFFERS) {
     861             :                 {
     862           0 :                         libndr_flags _flags_save_string = ndr->flags;
     863           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     864           0 :                         if (r->PrintParameterString) {
     865           0 :                                 uint32_t _relative_save_offset;
     866           0 :                                 _relative_save_offset = ndr->offset;
     867           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintParameterString));
     868           0 :                                 _mem_save_PrintParameterString_0 = NDR_PULL_GET_MEM_CTX(ndr);
     869           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintParameterString, 0);
     870           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintParameterString));
     871           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintParameterString_0, 0);
     872           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
     873           0 :                                         ndr->relative_highest_offset = ndr->offset;
     874             :                                 }
     875           0 :                                 ndr->offset = _relative_save_offset;
     876             :                         }
     877           0 :                         ndr->flags = _flags_save_string;
     878             :                 }
     879             :                 {
     880           0 :                         libndr_flags _flags_save_string = ndr->flags;
     881           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     882           0 :                         if (r->JobStatusString) {
     883           0 :                                 uint32_t _relative_save_offset;
     884           0 :                                 _relative_save_offset = ndr->offset;
     885           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->JobStatusString));
     886           0 :                                 _mem_save_JobStatusString_0 = NDR_PULL_GET_MEM_CTX(ndr);
     887           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->JobStatusString, 0);
     888           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->JobStatusString));
     889           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_JobStatusString_0, 0);
     890           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
     891           0 :                                         ndr->relative_highest_offset = ndr->offset;
     892             :                                 }
     893           0 :                                 ndr->offset = _relative_save_offset;
     894             :                         }
     895           0 :                         ndr->flags = _flags_save_string;
     896             :                 }
     897             :                 {
     898           0 :                         libndr_flags _flags_save_string = ndr->flags;
     899           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     900           0 :                         if (r->JobCommentString) {
     901           0 :                                 uint32_t _relative_save_offset;
     902           0 :                                 _relative_save_offset = ndr->offset;
     903           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->JobCommentString));
     904           0 :                                 _mem_save_JobCommentString_0 = NDR_PULL_GET_MEM_CTX(ndr);
     905           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->JobCommentString, 0);
     906           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->JobCommentString));
     907           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_JobCommentString_0, 0);
     908           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
     909           0 :                                         ndr->relative_highest_offset = ndr->offset;
     910             :                                 }
     911           0 :                                 ndr->offset = _relative_save_offset;
     912             :                         }
     913           0 :                         ndr->flags = _flags_save_string;
     914             :                 }
     915             :         }
     916           0 :         return NDR_ERR_SUCCESS;
     917             : }
     918             : 
     919           0 : _PUBLIC_ void ndr_print_rap_PrintJobInfo1(struct ndr_print *ndr, const char *name, const struct rap_PrintJobInfo1 *r)
     920             : {
     921           0 :         ndr_print_struct(ndr, name, "rap_PrintJobInfo1");
     922           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     923           0 :         ndr->depth++;
     924           0 :         ndr_print_uint16(ndr, "JobID", r->JobID);
     925           0 :         ndr_print_string(ndr, "UserName", r->UserName);
     926           0 :         ndr_print_uint8(ndr, "Pad", r->Pad);
     927           0 :         ndr_print_string(ndr, "NotifyName", r->NotifyName);
     928           0 :         ndr_print_string(ndr, "DataType", r->DataType);
     929             :         {
     930           0 :                 libndr_flags _flags_save_string = ndr->flags;
     931           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     932           0 :                 ndr_print_ptr(ndr, "PrintParameterString", r->PrintParameterString);
     933           0 :                 ndr->depth++;
     934           0 :                 if (r->PrintParameterString) {
     935           0 :                         ndr_print_string(ndr, "PrintParameterString", r->PrintParameterString);
     936             :                 }
     937           0 :                 ndr->depth--;
     938           0 :                 ndr->flags = _flags_save_string;
     939             :         }
     940           0 :         ndr_print_uint16(ndr, "PrintParameterStringHigh", r->PrintParameterStringHigh);
     941           0 :         ndr_print_uint16(ndr, "JobPosition", r->JobPosition);
     942           0 :         ndr_print_rap_PrintJStatusCode(ndr, "JobStatus", r->JobStatus);
     943             :         {
     944           0 :                 libndr_flags _flags_save_string = ndr->flags;
     945           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     946           0 :                 ndr_print_ptr(ndr, "JobStatusString", r->JobStatusString);
     947           0 :                 ndr->depth++;
     948           0 :                 if (r->JobStatusString) {
     949           0 :                         ndr_print_string(ndr, "JobStatusString", r->JobStatusString);
     950             :                 }
     951           0 :                 ndr->depth--;
     952           0 :                 ndr->flags = _flags_save_string;
     953             :         }
     954           0 :         ndr_print_uint16(ndr, "JobStatusStringHigh", r->JobStatusStringHigh);
     955           0 :         ndr_print_time_t(ndr, "TimeSubmitted", r->TimeSubmitted);
     956           0 :         ndr_print_uint32(ndr, "JobSize", r->JobSize);
     957             :         {
     958           0 :                 libndr_flags _flags_save_string = ndr->flags;
     959           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     960           0 :                 ndr_print_ptr(ndr, "JobCommentString", r->JobCommentString);
     961           0 :                 ndr->depth++;
     962           0 :                 if (r->JobCommentString) {
     963           0 :                         ndr_print_string(ndr, "JobCommentString", r->JobCommentString);
     964             :                 }
     965           0 :                 ndr->depth--;
     966           0 :                 ndr->flags = _flags_save_string;
     967             :         }
     968           0 :         ndr_print_uint16(ndr, "JobCommentStringHigh", r->JobCommentStringHigh);
     969           0 :         ndr->depth--;
     970             : }
     971             : 
     972           0 : static enum ndr_err_code ndr_push_rap_PrintJobInfo2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintJobInfo2 *r)
     973             : {
     974           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     975           0 :         if (ndr_flags & NDR_SCALARS) {
     976           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
     977           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobID));
     978           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Priority));
     979             :                 {
     980           0 :                         libndr_flags _flags_save_string = ndr->flags;
     981           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     982           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->UserName));
     983           0 :                         ndr->flags = _flags_save_string;
     984             :                 }
     985           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UserNameHigh));
     986           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobPosition));
     987           0 :                 NDR_CHECK(ndr_push_rap_PrintJStatusCode(ndr, NDR_SCALARS, r->JobStatus));
     988           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->TimeSubmitted));
     989           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->JobSize));
     990             :                 {
     991           0 :                         libndr_flags _flags_save_string = ndr->flags;
     992           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
     993           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->JobCommentString));
     994           0 :                         ndr->flags = _flags_save_string;
     995             :                 }
     996           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobCommentStringHigh));
     997             :                 {
     998           0 :                         libndr_flags _flags_save_string = ndr->flags;
     999           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1000           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->DocumentName));
    1001           0 :                         ndr->flags = _flags_save_string;
    1002             :                 }
    1003           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->DocumentNameHigh));
    1004           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    1005             :         }
    1006           0 :         if (ndr_flags & NDR_BUFFERS) {
    1007             :                 {
    1008           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1009           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1010           0 :                         if (r->UserName) {
    1011           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->UserName));
    1012           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->UserName));
    1013             :                         }
    1014           0 :                         ndr->flags = _flags_save_string;
    1015             :                 }
    1016             :                 {
    1017           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1018           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1019           0 :                         if (r->JobCommentString) {
    1020           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->JobCommentString));
    1021           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->JobCommentString));
    1022             :                         }
    1023           0 :                         ndr->flags = _flags_save_string;
    1024             :                 }
    1025             :                 {
    1026           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1027           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1028           0 :                         if (r->DocumentName) {
    1029           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->DocumentName));
    1030           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->DocumentName));
    1031             :                         }
    1032           0 :                         ndr->flags = _flags_save_string;
    1033             :                 }
    1034             :         }
    1035           0 :         return NDR_ERR_SUCCESS;
    1036             : }
    1037             : 
    1038           0 : static enum ndr_err_code ndr_pull_rap_PrintJobInfo2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintJobInfo2 *r)
    1039             : {
    1040           0 :         uint16_t _ptr_UserName;
    1041           0 :         TALLOC_CTX *_mem_save_UserName_0 = NULL;
    1042           0 :         uint16_t _ptr_JobCommentString;
    1043           0 :         TALLOC_CTX *_mem_save_JobCommentString_0 = NULL;
    1044           0 :         uint16_t _ptr_DocumentName;
    1045           0 :         TALLOC_CTX *_mem_save_DocumentName_0 = NULL;
    1046           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1047           0 :         if (ndr_flags & NDR_SCALARS) {
    1048           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    1049           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobID));
    1050           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Priority));
    1051             :                 {
    1052           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1053           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1054           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_UserName));
    1055           0 :                         if (_ptr_UserName) {
    1056           0 :                                 NDR_PULL_ALLOC(ndr, r->UserName);
    1057           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->UserName, _ptr_UserName));
    1058             :                         } else {
    1059           0 :                                 r->UserName = NULL;
    1060             :                         }
    1061           0 :                         ndr->flags = _flags_save_string;
    1062             :                 }
    1063           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UserNameHigh));
    1064           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobPosition));
    1065           0 :                 NDR_CHECK(ndr_pull_rap_PrintJStatusCode(ndr, NDR_SCALARS, &r->JobStatus));
    1066           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->TimeSubmitted));
    1067           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->JobSize));
    1068             :                 {
    1069           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1070           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1071           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_JobCommentString));
    1072           0 :                         if (_ptr_JobCommentString) {
    1073           0 :                                 NDR_PULL_ALLOC(ndr, r->JobCommentString);
    1074           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->JobCommentString, _ptr_JobCommentString));
    1075             :                         } else {
    1076           0 :                                 r->JobCommentString = NULL;
    1077             :                         }
    1078           0 :                         ndr->flags = _flags_save_string;
    1079             :                 }
    1080           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobCommentStringHigh));
    1081             :                 {
    1082           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1083           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1084           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_DocumentName));
    1085           0 :                         if (_ptr_DocumentName) {
    1086           0 :                                 NDR_PULL_ALLOC(ndr, r->DocumentName);
    1087           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->DocumentName, _ptr_DocumentName));
    1088             :                         } else {
    1089           0 :                                 r->DocumentName = NULL;
    1090             :                         }
    1091           0 :                         ndr->flags = _flags_save_string;
    1092             :                 }
    1093           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->DocumentNameHigh));
    1094           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    1095             :         }
    1096           0 :         if (ndr_flags & NDR_BUFFERS) {
    1097             :                 {
    1098           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1099           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1100           0 :                         if (r->UserName) {
    1101           0 :                                 uint32_t _relative_save_offset;
    1102           0 :                                 _relative_save_offset = ndr->offset;
    1103           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->UserName));
    1104           0 :                                 _mem_save_UserName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1105           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->UserName, 0);
    1106           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->UserName));
    1107           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_UserName_0, 0);
    1108           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1109           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1110             :                                 }
    1111           0 :                                 ndr->offset = _relative_save_offset;
    1112             :                         }
    1113           0 :                         ndr->flags = _flags_save_string;
    1114             :                 }
    1115             :                 {
    1116           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1117           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1118           0 :                         if (r->JobCommentString) {
    1119           0 :                                 uint32_t _relative_save_offset;
    1120           0 :                                 _relative_save_offset = ndr->offset;
    1121           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->JobCommentString));
    1122           0 :                                 _mem_save_JobCommentString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1123           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->JobCommentString, 0);
    1124           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->JobCommentString));
    1125           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_JobCommentString_0, 0);
    1126           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1127           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1128             :                                 }
    1129           0 :                                 ndr->offset = _relative_save_offset;
    1130             :                         }
    1131           0 :                         ndr->flags = _flags_save_string;
    1132             :                 }
    1133             :                 {
    1134           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1135           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1136           0 :                         if (r->DocumentName) {
    1137           0 :                                 uint32_t _relative_save_offset;
    1138           0 :                                 _relative_save_offset = ndr->offset;
    1139           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->DocumentName));
    1140           0 :                                 _mem_save_DocumentName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1141           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->DocumentName, 0);
    1142           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->DocumentName));
    1143           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DocumentName_0, 0);
    1144           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1145           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1146             :                                 }
    1147           0 :                                 ndr->offset = _relative_save_offset;
    1148             :                         }
    1149           0 :                         ndr->flags = _flags_save_string;
    1150             :                 }
    1151             :         }
    1152           0 :         return NDR_ERR_SUCCESS;
    1153             : }
    1154             : 
    1155           0 : _PUBLIC_ void ndr_print_rap_PrintJobInfo2(struct ndr_print *ndr, const char *name, const struct rap_PrintJobInfo2 *r)
    1156             : {
    1157           0 :         ndr_print_struct(ndr, name, "rap_PrintJobInfo2");
    1158           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1159           0 :         ndr->depth++;
    1160           0 :         ndr_print_uint16(ndr, "JobID", r->JobID);
    1161           0 :         ndr_print_uint16(ndr, "Priority", r->Priority);
    1162             :         {
    1163           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1164           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1165           0 :                 ndr_print_ptr(ndr, "UserName", r->UserName);
    1166           0 :                 ndr->depth++;
    1167           0 :                 if (r->UserName) {
    1168           0 :                         ndr_print_string(ndr, "UserName", r->UserName);
    1169             :                 }
    1170           0 :                 ndr->depth--;
    1171           0 :                 ndr->flags = _flags_save_string;
    1172             :         }
    1173           0 :         ndr_print_uint16(ndr, "UserNameHigh", r->UserNameHigh);
    1174           0 :         ndr_print_uint16(ndr, "JobPosition", r->JobPosition);
    1175           0 :         ndr_print_rap_PrintJStatusCode(ndr, "JobStatus", r->JobStatus);
    1176           0 :         ndr_print_time_t(ndr, "TimeSubmitted", r->TimeSubmitted);
    1177           0 :         ndr_print_uint32(ndr, "JobSize", r->JobSize);
    1178             :         {
    1179           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1180           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1181           0 :                 ndr_print_ptr(ndr, "JobCommentString", r->JobCommentString);
    1182           0 :                 ndr->depth++;
    1183           0 :                 if (r->JobCommentString) {
    1184           0 :                         ndr_print_string(ndr, "JobCommentString", r->JobCommentString);
    1185             :                 }
    1186           0 :                 ndr->depth--;
    1187           0 :                 ndr->flags = _flags_save_string;
    1188             :         }
    1189           0 :         ndr_print_uint16(ndr, "JobCommentStringHigh", r->JobCommentStringHigh);
    1190             :         {
    1191           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1192           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1193           0 :                 ndr_print_ptr(ndr, "DocumentName", r->DocumentName);
    1194           0 :                 ndr->depth++;
    1195           0 :                 if (r->DocumentName) {
    1196           0 :                         ndr_print_string(ndr, "DocumentName", r->DocumentName);
    1197             :                 }
    1198           0 :                 ndr->depth--;
    1199           0 :                 ndr->flags = _flags_save_string;
    1200             :         }
    1201           0 :         ndr_print_uint16(ndr, "DocumentNameHigh", r->DocumentNameHigh);
    1202           0 :         ndr->depth--;
    1203             : }
    1204             : 
    1205           0 : static enum ndr_err_code ndr_push_rap_PrintJobInfo3(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintJobInfo3 *r)
    1206             : {
    1207           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    1208           0 :         if (ndr_flags & NDR_SCALARS) {
    1209           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    1210           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobID));
    1211           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Priority));
    1212             :                 {
    1213           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1214           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1215           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->UserName));
    1216           0 :                         ndr->flags = _flags_save_string;
    1217             :                 }
    1218           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UserNameHigh));
    1219           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobPosition));
    1220           0 :                 NDR_CHECK(ndr_push_rap_PrintJStatusCode(ndr, NDR_SCALARS, r->JobStatus));
    1221           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->TimeSubmitted));
    1222           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->JobSize));
    1223             :                 {
    1224           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1225           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1226           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->JobCommentString));
    1227           0 :                         ndr->flags = _flags_save_string;
    1228             :                 }
    1229           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobCommentStringHigh));
    1230             :                 {
    1231           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1232           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1233           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->DocumentName));
    1234           0 :                         ndr->flags = _flags_save_string;
    1235             :                 }
    1236           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->DocumentNameHigh));
    1237             :                 {
    1238           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1239           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1240           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->NotifyName));
    1241           0 :                         ndr->flags = _flags_save_string;
    1242             :                 }
    1243           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->NotifyNameHigh));
    1244             :                 {
    1245           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1246           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1247           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->DataType));
    1248           0 :                         ndr->flags = _flags_save_string;
    1249             :                 }
    1250           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->DataTypeHigh));
    1251             :                 {
    1252           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1253           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1254           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintParameterString));
    1255           0 :                         ndr->flags = _flags_save_string;
    1256             :                 }
    1257           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintParameterStringHigh));
    1258             :                 {
    1259           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1260           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1261           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->StatusString));
    1262           0 :                         ndr->flags = _flags_save_string;
    1263             :                 }
    1264           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->StatusStringHigh));
    1265             :                 {
    1266           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1267           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1268           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->QueueName));
    1269           0 :                         ndr->flags = _flags_save_string;
    1270             :                 }
    1271           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->QueueNameHigh));
    1272             :                 {
    1273           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1274           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1275           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintProcessorName));
    1276           0 :                         ndr->flags = _flags_save_string;
    1277             :                 }
    1278           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintProcessorNameHigh));
    1279             :                 {
    1280           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1281           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1282           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintProcessorParams));
    1283           0 :                         ndr->flags = _flags_save_string;
    1284             :                 }
    1285           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintProcessorParamsHigh));
    1286             :                 {
    1287           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1288           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1289           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->DriverName));
    1290           0 :                         ndr->flags = _flags_save_string;
    1291             :                 }
    1292           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->DriverNameHigh));
    1293             :                 {
    1294           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1295           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1296           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->DriverDataOffset));
    1297           0 :                         ndr->flags = _flags_save_string;
    1298             :                 }
    1299           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->DriverDataOffsetHigh));
    1300             :                 {
    1301           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1302           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1303           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrinterNameOffset));
    1304           0 :                         ndr->flags = _flags_save_string;
    1305             :                 }
    1306           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrinterNameOffsetHigh));
    1307           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    1308             :         }
    1309           0 :         if (ndr_flags & NDR_BUFFERS) {
    1310             :                 {
    1311           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1312           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1313           0 :                         if (r->UserName) {
    1314           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->UserName));
    1315           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->UserName));
    1316             :                         }
    1317           0 :                         ndr->flags = _flags_save_string;
    1318             :                 }
    1319             :                 {
    1320           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1321           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1322           0 :                         if (r->JobCommentString) {
    1323           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->JobCommentString));
    1324           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->JobCommentString));
    1325             :                         }
    1326           0 :                         ndr->flags = _flags_save_string;
    1327             :                 }
    1328             :                 {
    1329           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1330           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1331           0 :                         if (r->DocumentName) {
    1332           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->DocumentName));
    1333           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->DocumentName));
    1334             :                         }
    1335           0 :                         ndr->flags = _flags_save_string;
    1336             :                 }
    1337             :                 {
    1338           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1339           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1340           0 :                         if (r->NotifyName) {
    1341           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->NotifyName));
    1342           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->NotifyName));
    1343             :                         }
    1344           0 :                         ndr->flags = _flags_save_string;
    1345             :                 }
    1346             :                 {
    1347           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1348           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1349           0 :                         if (r->DataType) {
    1350           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->DataType));
    1351           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->DataType));
    1352             :                         }
    1353           0 :                         ndr->flags = _flags_save_string;
    1354             :                 }
    1355             :                 {
    1356           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1357           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1358           0 :                         if (r->PrintParameterString) {
    1359           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintParameterString));
    1360           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintParameterString));
    1361             :                         }
    1362           0 :                         ndr->flags = _flags_save_string;
    1363             :                 }
    1364             :                 {
    1365           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1366           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1367           0 :                         if (r->StatusString) {
    1368           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->StatusString));
    1369           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->StatusString));
    1370             :                         }
    1371           0 :                         ndr->flags = _flags_save_string;
    1372             :                 }
    1373             :                 {
    1374           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1375           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1376           0 :                         if (r->QueueName) {
    1377           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->QueueName));
    1378           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->QueueName));
    1379             :                         }
    1380           0 :                         ndr->flags = _flags_save_string;
    1381             :                 }
    1382             :                 {
    1383           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1384           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1385           0 :                         if (r->PrintProcessorName) {
    1386           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintProcessorName));
    1387           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintProcessorName));
    1388             :                         }
    1389           0 :                         ndr->flags = _flags_save_string;
    1390             :                 }
    1391             :                 {
    1392           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1393           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1394           0 :                         if (r->PrintProcessorParams) {
    1395           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintProcessorParams));
    1396           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintProcessorParams));
    1397             :                         }
    1398           0 :                         ndr->flags = _flags_save_string;
    1399             :                 }
    1400             :                 {
    1401           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1402           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1403           0 :                         if (r->DriverName) {
    1404           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->DriverName));
    1405           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->DriverName));
    1406             :                         }
    1407           0 :                         ndr->flags = _flags_save_string;
    1408             :                 }
    1409             :                 {
    1410           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1411           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1412           0 :                         if (r->DriverDataOffset) {
    1413           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->DriverDataOffset));
    1414           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->DriverDataOffset));
    1415             :                         }
    1416           0 :                         ndr->flags = _flags_save_string;
    1417             :                 }
    1418             :                 {
    1419           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1420           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1421           0 :                         if (r->PrinterNameOffset) {
    1422           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrinterNameOffset));
    1423           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrinterNameOffset));
    1424             :                         }
    1425           0 :                         ndr->flags = _flags_save_string;
    1426             :                 }
    1427             :         }
    1428           0 :         return NDR_ERR_SUCCESS;
    1429             : }
    1430             : 
    1431           0 : static enum ndr_err_code ndr_pull_rap_PrintJobInfo3(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintJobInfo3 *r)
    1432             : {
    1433           0 :         uint16_t _ptr_UserName;
    1434           0 :         TALLOC_CTX *_mem_save_UserName_0 = NULL;
    1435           0 :         uint16_t _ptr_JobCommentString;
    1436           0 :         TALLOC_CTX *_mem_save_JobCommentString_0 = NULL;
    1437           0 :         uint16_t _ptr_DocumentName;
    1438           0 :         TALLOC_CTX *_mem_save_DocumentName_0 = NULL;
    1439           0 :         uint16_t _ptr_NotifyName;
    1440           0 :         TALLOC_CTX *_mem_save_NotifyName_0 = NULL;
    1441           0 :         uint16_t _ptr_DataType;
    1442           0 :         TALLOC_CTX *_mem_save_DataType_0 = NULL;
    1443           0 :         uint16_t _ptr_PrintParameterString;
    1444           0 :         TALLOC_CTX *_mem_save_PrintParameterString_0 = NULL;
    1445           0 :         uint16_t _ptr_StatusString;
    1446           0 :         TALLOC_CTX *_mem_save_StatusString_0 = NULL;
    1447           0 :         uint16_t _ptr_QueueName;
    1448           0 :         TALLOC_CTX *_mem_save_QueueName_0 = NULL;
    1449           0 :         uint16_t _ptr_PrintProcessorName;
    1450           0 :         TALLOC_CTX *_mem_save_PrintProcessorName_0 = NULL;
    1451           0 :         uint16_t _ptr_PrintProcessorParams;
    1452           0 :         TALLOC_CTX *_mem_save_PrintProcessorParams_0 = NULL;
    1453           0 :         uint16_t _ptr_DriverName;
    1454           0 :         TALLOC_CTX *_mem_save_DriverName_0 = NULL;
    1455           0 :         uint16_t _ptr_DriverDataOffset;
    1456           0 :         TALLOC_CTX *_mem_save_DriverDataOffset_0 = NULL;
    1457           0 :         uint16_t _ptr_PrinterNameOffset;
    1458           0 :         TALLOC_CTX *_mem_save_PrinterNameOffset_0 = NULL;
    1459           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    1460           0 :         if (ndr_flags & NDR_SCALARS) {
    1461           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    1462           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobID));
    1463           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Priority));
    1464             :                 {
    1465           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1466           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1467           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_UserName));
    1468           0 :                         if (_ptr_UserName) {
    1469           0 :                                 NDR_PULL_ALLOC(ndr, r->UserName);
    1470           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->UserName, _ptr_UserName));
    1471             :                         } else {
    1472           0 :                                 r->UserName = NULL;
    1473             :                         }
    1474           0 :                         ndr->flags = _flags_save_string;
    1475             :                 }
    1476           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UserNameHigh));
    1477           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobPosition));
    1478           0 :                 NDR_CHECK(ndr_pull_rap_PrintJStatusCode(ndr, NDR_SCALARS, &r->JobStatus));
    1479           0 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->TimeSubmitted));
    1480           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->JobSize));
    1481             :                 {
    1482           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1483           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1484           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_JobCommentString));
    1485           0 :                         if (_ptr_JobCommentString) {
    1486           0 :                                 NDR_PULL_ALLOC(ndr, r->JobCommentString);
    1487           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->JobCommentString, _ptr_JobCommentString));
    1488             :                         } else {
    1489           0 :                                 r->JobCommentString = NULL;
    1490             :                         }
    1491           0 :                         ndr->flags = _flags_save_string;
    1492             :                 }
    1493           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobCommentStringHigh));
    1494             :                 {
    1495           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1496           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1497           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_DocumentName));
    1498           0 :                         if (_ptr_DocumentName) {
    1499           0 :                                 NDR_PULL_ALLOC(ndr, r->DocumentName);
    1500           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->DocumentName, _ptr_DocumentName));
    1501             :                         } else {
    1502           0 :                                 r->DocumentName = NULL;
    1503             :                         }
    1504           0 :                         ndr->flags = _flags_save_string;
    1505             :                 }
    1506           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->DocumentNameHigh));
    1507             :                 {
    1508           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1509           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1510           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_NotifyName));
    1511           0 :                         if (_ptr_NotifyName) {
    1512           0 :                                 NDR_PULL_ALLOC(ndr, r->NotifyName);
    1513           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->NotifyName, _ptr_NotifyName));
    1514             :                         } else {
    1515           0 :                                 r->NotifyName = NULL;
    1516             :                         }
    1517           0 :                         ndr->flags = _flags_save_string;
    1518             :                 }
    1519           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->NotifyNameHigh));
    1520             :                 {
    1521           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1522           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1523           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_DataType));
    1524           0 :                         if (_ptr_DataType) {
    1525           0 :                                 NDR_PULL_ALLOC(ndr, r->DataType);
    1526           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->DataType, _ptr_DataType));
    1527             :                         } else {
    1528           0 :                                 r->DataType = NULL;
    1529             :                         }
    1530           0 :                         ndr->flags = _flags_save_string;
    1531             :                 }
    1532           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->DataTypeHigh));
    1533             :                 {
    1534           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1535           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1536           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintParameterString));
    1537           0 :                         if (_ptr_PrintParameterString) {
    1538           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintParameterString);
    1539           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintParameterString, _ptr_PrintParameterString));
    1540             :                         } else {
    1541           0 :                                 r->PrintParameterString = NULL;
    1542             :                         }
    1543           0 :                         ndr->flags = _flags_save_string;
    1544             :                 }
    1545           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintParameterStringHigh));
    1546             :                 {
    1547           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1548           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1549           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_StatusString));
    1550           0 :                         if (_ptr_StatusString) {
    1551           0 :                                 NDR_PULL_ALLOC(ndr, r->StatusString);
    1552           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->StatusString, _ptr_StatusString));
    1553             :                         } else {
    1554           0 :                                 r->StatusString = NULL;
    1555             :                         }
    1556           0 :                         ndr->flags = _flags_save_string;
    1557             :                 }
    1558           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->StatusStringHigh));
    1559             :                 {
    1560           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1561           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1562           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_QueueName));
    1563           0 :                         if (_ptr_QueueName) {
    1564           0 :                                 NDR_PULL_ALLOC(ndr, r->QueueName);
    1565           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->QueueName, _ptr_QueueName));
    1566             :                         } else {
    1567           0 :                                 r->QueueName = NULL;
    1568             :                         }
    1569           0 :                         ndr->flags = _flags_save_string;
    1570             :                 }
    1571           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->QueueNameHigh));
    1572             :                 {
    1573           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1574           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1575           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintProcessorName));
    1576           0 :                         if (_ptr_PrintProcessorName) {
    1577           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintProcessorName);
    1578           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintProcessorName, _ptr_PrintProcessorName));
    1579             :                         } else {
    1580           0 :                                 r->PrintProcessorName = NULL;
    1581             :                         }
    1582           0 :                         ndr->flags = _flags_save_string;
    1583             :                 }
    1584           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintProcessorNameHigh));
    1585             :                 {
    1586           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1587           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1588           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintProcessorParams));
    1589           0 :                         if (_ptr_PrintProcessorParams) {
    1590           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintProcessorParams);
    1591           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintProcessorParams, _ptr_PrintProcessorParams));
    1592             :                         } else {
    1593           0 :                                 r->PrintProcessorParams = NULL;
    1594             :                         }
    1595           0 :                         ndr->flags = _flags_save_string;
    1596             :                 }
    1597           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintProcessorParamsHigh));
    1598             :                 {
    1599           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1600           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1601           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_DriverName));
    1602           0 :                         if (_ptr_DriverName) {
    1603           0 :                                 NDR_PULL_ALLOC(ndr, r->DriverName);
    1604           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->DriverName, _ptr_DriverName));
    1605             :                         } else {
    1606           0 :                                 r->DriverName = NULL;
    1607             :                         }
    1608           0 :                         ndr->flags = _flags_save_string;
    1609             :                 }
    1610           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->DriverNameHigh));
    1611             :                 {
    1612           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1613           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1614           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_DriverDataOffset));
    1615           0 :                         if (_ptr_DriverDataOffset) {
    1616           0 :                                 NDR_PULL_ALLOC(ndr, r->DriverDataOffset);
    1617           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->DriverDataOffset, _ptr_DriverDataOffset));
    1618             :                         } else {
    1619           0 :                                 r->DriverDataOffset = NULL;
    1620             :                         }
    1621           0 :                         ndr->flags = _flags_save_string;
    1622             :                 }
    1623           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->DriverDataOffsetHigh));
    1624             :                 {
    1625           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1626           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1627           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrinterNameOffset));
    1628           0 :                         if (_ptr_PrinterNameOffset) {
    1629           0 :                                 NDR_PULL_ALLOC(ndr, r->PrinterNameOffset);
    1630           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrinterNameOffset, _ptr_PrinterNameOffset));
    1631             :                         } else {
    1632           0 :                                 r->PrinterNameOffset = NULL;
    1633             :                         }
    1634           0 :                         ndr->flags = _flags_save_string;
    1635             :                 }
    1636           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrinterNameOffsetHigh));
    1637           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    1638             :         }
    1639           0 :         if (ndr_flags & NDR_BUFFERS) {
    1640             :                 {
    1641           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1642           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1643           0 :                         if (r->UserName) {
    1644           0 :                                 uint32_t _relative_save_offset;
    1645           0 :                                 _relative_save_offset = ndr->offset;
    1646           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->UserName));
    1647           0 :                                 _mem_save_UserName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1648           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->UserName, 0);
    1649           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->UserName));
    1650           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_UserName_0, 0);
    1651           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1652           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1653             :                                 }
    1654           0 :                                 ndr->offset = _relative_save_offset;
    1655             :                         }
    1656           0 :                         ndr->flags = _flags_save_string;
    1657             :                 }
    1658             :                 {
    1659           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1660           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1661           0 :                         if (r->JobCommentString) {
    1662           0 :                                 uint32_t _relative_save_offset;
    1663           0 :                                 _relative_save_offset = ndr->offset;
    1664           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->JobCommentString));
    1665           0 :                                 _mem_save_JobCommentString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1666           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->JobCommentString, 0);
    1667           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->JobCommentString));
    1668           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_JobCommentString_0, 0);
    1669           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1670           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1671             :                                 }
    1672           0 :                                 ndr->offset = _relative_save_offset;
    1673             :                         }
    1674           0 :                         ndr->flags = _flags_save_string;
    1675             :                 }
    1676             :                 {
    1677           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1678           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1679           0 :                         if (r->DocumentName) {
    1680           0 :                                 uint32_t _relative_save_offset;
    1681           0 :                                 _relative_save_offset = ndr->offset;
    1682           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->DocumentName));
    1683           0 :                                 _mem_save_DocumentName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1684           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->DocumentName, 0);
    1685           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->DocumentName));
    1686           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DocumentName_0, 0);
    1687           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1688           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1689             :                                 }
    1690           0 :                                 ndr->offset = _relative_save_offset;
    1691             :                         }
    1692           0 :                         ndr->flags = _flags_save_string;
    1693             :                 }
    1694             :                 {
    1695           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1696           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1697           0 :                         if (r->NotifyName) {
    1698           0 :                                 uint32_t _relative_save_offset;
    1699           0 :                                 _relative_save_offset = ndr->offset;
    1700           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->NotifyName));
    1701           0 :                                 _mem_save_NotifyName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1702           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->NotifyName, 0);
    1703           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->NotifyName));
    1704           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_NotifyName_0, 0);
    1705           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1706           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1707             :                                 }
    1708           0 :                                 ndr->offset = _relative_save_offset;
    1709             :                         }
    1710           0 :                         ndr->flags = _flags_save_string;
    1711             :                 }
    1712             :                 {
    1713           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1714           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1715           0 :                         if (r->DataType) {
    1716           0 :                                 uint32_t _relative_save_offset;
    1717           0 :                                 _relative_save_offset = ndr->offset;
    1718           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->DataType));
    1719           0 :                                 _mem_save_DataType_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1720           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->DataType, 0);
    1721           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->DataType));
    1722           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DataType_0, 0);
    1723           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1724           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1725             :                                 }
    1726           0 :                                 ndr->offset = _relative_save_offset;
    1727             :                         }
    1728           0 :                         ndr->flags = _flags_save_string;
    1729             :                 }
    1730             :                 {
    1731           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1732           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1733           0 :                         if (r->PrintParameterString) {
    1734           0 :                                 uint32_t _relative_save_offset;
    1735           0 :                                 _relative_save_offset = ndr->offset;
    1736           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintParameterString));
    1737           0 :                                 _mem_save_PrintParameterString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1738           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintParameterString, 0);
    1739           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintParameterString));
    1740           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintParameterString_0, 0);
    1741           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1742           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1743             :                                 }
    1744           0 :                                 ndr->offset = _relative_save_offset;
    1745             :                         }
    1746           0 :                         ndr->flags = _flags_save_string;
    1747             :                 }
    1748             :                 {
    1749           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1750           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1751           0 :                         if (r->StatusString) {
    1752           0 :                                 uint32_t _relative_save_offset;
    1753           0 :                                 _relative_save_offset = ndr->offset;
    1754           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->StatusString));
    1755           0 :                                 _mem_save_StatusString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1756           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->StatusString, 0);
    1757           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->StatusString));
    1758           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_StatusString_0, 0);
    1759           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1760           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1761             :                                 }
    1762           0 :                                 ndr->offset = _relative_save_offset;
    1763             :                         }
    1764           0 :                         ndr->flags = _flags_save_string;
    1765             :                 }
    1766             :                 {
    1767           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1768           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1769           0 :                         if (r->QueueName) {
    1770           0 :                                 uint32_t _relative_save_offset;
    1771           0 :                                 _relative_save_offset = ndr->offset;
    1772           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->QueueName));
    1773           0 :                                 _mem_save_QueueName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1774           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->QueueName, 0);
    1775           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->QueueName));
    1776           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_QueueName_0, 0);
    1777           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1778           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1779             :                                 }
    1780           0 :                                 ndr->offset = _relative_save_offset;
    1781             :                         }
    1782           0 :                         ndr->flags = _flags_save_string;
    1783             :                 }
    1784             :                 {
    1785           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1786           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1787           0 :                         if (r->PrintProcessorName) {
    1788           0 :                                 uint32_t _relative_save_offset;
    1789           0 :                                 _relative_save_offset = ndr->offset;
    1790           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintProcessorName));
    1791           0 :                                 _mem_save_PrintProcessorName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1792           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintProcessorName, 0);
    1793           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintProcessorName));
    1794           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintProcessorName_0, 0);
    1795           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1796           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1797             :                                 }
    1798           0 :                                 ndr->offset = _relative_save_offset;
    1799             :                         }
    1800           0 :                         ndr->flags = _flags_save_string;
    1801             :                 }
    1802             :                 {
    1803           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1804           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1805           0 :                         if (r->PrintProcessorParams) {
    1806           0 :                                 uint32_t _relative_save_offset;
    1807           0 :                                 _relative_save_offset = ndr->offset;
    1808           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintProcessorParams));
    1809           0 :                                 _mem_save_PrintProcessorParams_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1810           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintProcessorParams, 0);
    1811           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintProcessorParams));
    1812           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintProcessorParams_0, 0);
    1813           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1814           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1815             :                                 }
    1816           0 :                                 ndr->offset = _relative_save_offset;
    1817             :                         }
    1818           0 :                         ndr->flags = _flags_save_string;
    1819             :                 }
    1820             :                 {
    1821           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1822           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1823           0 :                         if (r->DriverName) {
    1824           0 :                                 uint32_t _relative_save_offset;
    1825           0 :                                 _relative_save_offset = ndr->offset;
    1826           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->DriverName));
    1827           0 :                                 _mem_save_DriverName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1828           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->DriverName, 0);
    1829           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->DriverName));
    1830           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DriverName_0, 0);
    1831           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1832           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1833             :                                 }
    1834           0 :                                 ndr->offset = _relative_save_offset;
    1835             :                         }
    1836           0 :                         ndr->flags = _flags_save_string;
    1837             :                 }
    1838             :                 {
    1839           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1840           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1841           0 :                         if (r->DriverDataOffset) {
    1842           0 :                                 uint32_t _relative_save_offset;
    1843           0 :                                 _relative_save_offset = ndr->offset;
    1844           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->DriverDataOffset));
    1845           0 :                                 _mem_save_DriverDataOffset_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1846           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->DriverDataOffset, 0);
    1847           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->DriverDataOffset));
    1848           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DriverDataOffset_0, 0);
    1849           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1850           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1851             :                                 }
    1852           0 :                                 ndr->offset = _relative_save_offset;
    1853             :                         }
    1854           0 :                         ndr->flags = _flags_save_string;
    1855             :                 }
    1856             :                 {
    1857           0 :                         libndr_flags _flags_save_string = ndr->flags;
    1858           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1859           0 :                         if (r->PrinterNameOffset) {
    1860           0 :                                 uint32_t _relative_save_offset;
    1861           0 :                                 _relative_save_offset = ndr->offset;
    1862           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrinterNameOffset));
    1863           0 :                                 _mem_save_PrinterNameOffset_0 = NDR_PULL_GET_MEM_CTX(ndr);
    1864           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrinterNameOffset, 0);
    1865           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrinterNameOffset));
    1866           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrinterNameOffset_0, 0);
    1867           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    1868           0 :                                         ndr->relative_highest_offset = ndr->offset;
    1869             :                                 }
    1870           0 :                                 ndr->offset = _relative_save_offset;
    1871             :                         }
    1872           0 :                         ndr->flags = _flags_save_string;
    1873             :                 }
    1874             :         }
    1875           0 :         return NDR_ERR_SUCCESS;
    1876             : }
    1877             : 
    1878           0 : _PUBLIC_ void ndr_print_rap_PrintJobInfo3(struct ndr_print *ndr, const char *name, const struct rap_PrintJobInfo3 *r)
    1879             : {
    1880           0 :         ndr_print_struct(ndr, name, "rap_PrintJobInfo3");
    1881           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    1882           0 :         ndr->depth++;
    1883           0 :         ndr_print_uint16(ndr, "JobID", r->JobID);
    1884           0 :         ndr_print_uint16(ndr, "Priority", r->Priority);
    1885             :         {
    1886           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1887           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1888           0 :                 ndr_print_ptr(ndr, "UserName", r->UserName);
    1889           0 :                 ndr->depth++;
    1890           0 :                 if (r->UserName) {
    1891           0 :                         ndr_print_string(ndr, "UserName", r->UserName);
    1892             :                 }
    1893           0 :                 ndr->depth--;
    1894           0 :                 ndr->flags = _flags_save_string;
    1895             :         }
    1896           0 :         ndr_print_uint16(ndr, "UserNameHigh", r->UserNameHigh);
    1897           0 :         ndr_print_uint16(ndr, "JobPosition", r->JobPosition);
    1898           0 :         ndr_print_rap_PrintJStatusCode(ndr, "JobStatus", r->JobStatus);
    1899           0 :         ndr_print_time_t(ndr, "TimeSubmitted", r->TimeSubmitted);
    1900           0 :         ndr_print_uint32(ndr, "JobSize", r->JobSize);
    1901             :         {
    1902           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1903           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1904           0 :                 ndr_print_ptr(ndr, "JobCommentString", r->JobCommentString);
    1905           0 :                 ndr->depth++;
    1906           0 :                 if (r->JobCommentString) {
    1907           0 :                         ndr_print_string(ndr, "JobCommentString", r->JobCommentString);
    1908             :                 }
    1909           0 :                 ndr->depth--;
    1910           0 :                 ndr->flags = _flags_save_string;
    1911             :         }
    1912           0 :         ndr_print_uint16(ndr, "JobCommentStringHigh", r->JobCommentStringHigh);
    1913             :         {
    1914           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1915           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1916           0 :                 ndr_print_ptr(ndr, "DocumentName", r->DocumentName);
    1917           0 :                 ndr->depth++;
    1918           0 :                 if (r->DocumentName) {
    1919           0 :                         ndr_print_string(ndr, "DocumentName", r->DocumentName);
    1920             :                 }
    1921           0 :                 ndr->depth--;
    1922           0 :                 ndr->flags = _flags_save_string;
    1923             :         }
    1924           0 :         ndr_print_uint16(ndr, "DocumentNameHigh", r->DocumentNameHigh);
    1925             :         {
    1926           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1927           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1928           0 :                 ndr_print_ptr(ndr, "NotifyName", r->NotifyName);
    1929           0 :                 ndr->depth++;
    1930           0 :                 if (r->NotifyName) {
    1931           0 :                         ndr_print_string(ndr, "NotifyName", r->NotifyName);
    1932             :                 }
    1933           0 :                 ndr->depth--;
    1934           0 :                 ndr->flags = _flags_save_string;
    1935             :         }
    1936           0 :         ndr_print_uint16(ndr, "NotifyNameHigh", r->NotifyNameHigh);
    1937             :         {
    1938           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1939           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1940           0 :                 ndr_print_ptr(ndr, "DataType", r->DataType);
    1941           0 :                 ndr->depth++;
    1942           0 :                 if (r->DataType) {
    1943           0 :                         ndr_print_string(ndr, "DataType", r->DataType);
    1944             :                 }
    1945           0 :                 ndr->depth--;
    1946           0 :                 ndr->flags = _flags_save_string;
    1947             :         }
    1948           0 :         ndr_print_uint16(ndr, "DataTypeHigh", r->DataTypeHigh);
    1949             :         {
    1950           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1951           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1952           0 :                 ndr_print_ptr(ndr, "PrintParameterString", r->PrintParameterString);
    1953           0 :                 ndr->depth++;
    1954           0 :                 if (r->PrintParameterString) {
    1955           0 :                         ndr_print_string(ndr, "PrintParameterString", r->PrintParameterString);
    1956             :                 }
    1957           0 :                 ndr->depth--;
    1958           0 :                 ndr->flags = _flags_save_string;
    1959             :         }
    1960           0 :         ndr_print_uint16(ndr, "PrintParameterStringHigh", r->PrintParameterStringHigh);
    1961             :         {
    1962           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1963           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1964           0 :                 ndr_print_ptr(ndr, "StatusString", r->StatusString);
    1965           0 :                 ndr->depth++;
    1966           0 :                 if (r->StatusString) {
    1967           0 :                         ndr_print_string(ndr, "StatusString", r->StatusString);
    1968             :                 }
    1969           0 :                 ndr->depth--;
    1970           0 :                 ndr->flags = _flags_save_string;
    1971             :         }
    1972           0 :         ndr_print_uint16(ndr, "StatusStringHigh", r->StatusStringHigh);
    1973             :         {
    1974           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1975           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1976           0 :                 ndr_print_ptr(ndr, "QueueName", r->QueueName);
    1977           0 :                 ndr->depth++;
    1978           0 :                 if (r->QueueName) {
    1979           0 :                         ndr_print_string(ndr, "QueueName", r->QueueName);
    1980             :                 }
    1981           0 :                 ndr->depth--;
    1982           0 :                 ndr->flags = _flags_save_string;
    1983             :         }
    1984           0 :         ndr_print_uint16(ndr, "QueueNameHigh", r->QueueNameHigh);
    1985             :         {
    1986           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1987           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    1988           0 :                 ndr_print_ptr(ndr, "PrintProcessorName", r->PrintProcessorName);
    1989           0 :                 ndr->depth++;
    1990           0 :                 if (r->PrintProcessorName) {
    1991           0 :                         ndr_print_string(ndr, "PrintProcessorName", r->PrintProcessorName);
    1992             :                 }
    1993           0 :                 ndr->depth--;
    1994           0 :                 ndr->flags = _flags_save_string;
    1995             :         }
    1996           0 :         ndr_print_uint16(ndr, "PrintProcessorNameHigh", r->PrintProcessorNameHigh);
    1997             :         {
    1998           0 :                 libndr_flags _flags_save_string = ndr->flags;
    1999           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2000           0 :                 ndr_print_ptr(ndr, "PrintProcessorParams", r->PrintProcessorParams);
    2001           0 :                 ndr->depth++;
    2002           0 :                 if (r->PrintProcessorParams) {
    2003           0 :                         ndr_print_string(ndr, "PrintProcessorParams", r->PrintProcessorParams);
    2004             :                 }
    2005           0 :                 ndr->depth--;
    2006           0 :                 ndr->flags = _flags_save_string;
    2007             :         }
    2008           0 :         ndr_print_uint16(ndr, "PrintProcessorParamsHigh", r->PrintProcessorParamsHigh);
    2009             :         {
    2010           0 :                 libndr_flags _flags_save_string = ndr->flags;
    2011           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2012           0 :                 ndr_print_ptr(ndr, "DriverName", r->DriverName);
    2013           0 :                 ndr->depth++;
    2014           0 :                 if (r->DriverName) {
    2015           0 :                         ndr_print_string(ndr, "DriverName", r->DriverName);
    2016             :                 }
    2017           0 :                 ndr->depth--;
    2018           0 :                 ndr->flags = _flags_save_string;
    2019             :         }
    2020           0 :         ndr_print_uint16(ndr, "DriverNameHigh", r->DriverNameHigh);
    2021             :         {
    2022           0 :                 libndr_flags _flags_save_string = ndr->flags;
    2023           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2024           0 :                 ndr_print_ptr(ndr, "DriverDataOffset", r->DriverDataOffset);
    2025           0 :                 ndr->depth++;
    2026           0 :                 if (r->DriverDataOffset) {
    2027           0 :                         ndr_print_string(ndr, "DriverDataOffset", r->DriverDataOffset);
    2028             :                 }
    2029           0 :                 ndr->depth--;
    2030           0 :                 ndr->flags = _flags_save_string;
    2031             :         }
    2032           0 :         ndr_print_uint16(ndr, "DriverDataOffsetHigh", r->DriverDataOffsetHigh);
    2033             :         {
    2034           0 :                 libndr_flags _flags_save_string = ndr->flags;
    2035           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2036           0 :                 ndr_print_ptr(ndr, "PrinterNameOffset", r->PrinterNameOffset);
    2037           0 :                 ndr->depth++;
    2038           0 :                 if (r->PrinterNameOffset) {
    2039           0 :                         ndr_print_string(ndr, "PrinterNameOffset", r->PrinterNameOffset);
    2040             :                 }
    2041           0 :                 ndr->depth--;
    2042           0 :                 ndr->flags = _flags_save_string;
    2043             :         }
    2044           0 :         ndr_print_uint16(ndr, "PrinterNameOffsetHigh", r->PrinterNameOffsetHigh);
    2045           0 :         ndr->depth--;
    2046             : }
    2047             : 
    2048           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_printj_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union rap_printj_info *r)
    2049             : {
    2050           0 :         uint32_t level;
    2051           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2052           0 :         if (ndr_flags & NDR_SCALARS) {
    2053             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    2054           0 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    2055           0 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
    2056           0 :                 switch (level) {
    2057           0 :                         case 0: {
    2058           0 :                                 NDR_CHECK(ndr_push_rap_PrintJobInfo0(ndr, NDR_SCALARS, &r->info0));
    2059           0 :                         break; }
    2060             : 
    2061           0 :                         case 1: {
    2062           0 :                                 NDR_CHECK(ndr_push_rap_PrintJobInfo1(ndr, NDR_SCALARS, &r->info1));
    2063           0 :                         break; }
    2064             : 
    2065           0 :                         case 2: {
    2066           0 :                                 NDR_CHECK(ndr_push_rap_PrintJobInfo2(ndr, NDR_SCALARS, &r->info2));
    2067           0 :                         break; }
    2068             : 
    2069           0 :                         case 3: {
    2070           0 :                                 NDR_CHECK(ndr_push_rap_PrintJobInfo3(ndr, NDR_SCALARS, &r->info3));
    2071           0 :                         break; }
    2072             : 
    2073           0 :                         default:
    2074           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    2075             :                 }
    2076             :         }
    2077           0 :         if (ndr_flags & NDR_BUFFERS) {
    2078           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    2079             :                         /* We didn't get it above, and the token is not needed after this. */
    2080           0 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    2081             :                 }
    2082           0 :                 switch (level) {
    2083           0 :                         case 0:
    2084           0 :                         break;
    2085             : 
    2086           0 :                         case 1:
    2087           0 :                                 NDR_CHECK(ndr_push_rap_PrintJobInfo1(ndr, NDR_BUFFERS, &r->info1));
    2088           0 :                         break;
    2089             : 
    2090           0 :                         case 2:
    2091           0 :                                 NDR_CHECK(ndr_push_rap_PrintJobInfo2(ndr, NDR_BUFFERS, &r->info2));
    2092           0 :                         break;
    2093             : 
    2094           0 :                         case 3:
    2095           0 :                                 NDR_CHECK(ndr_push_rap_PrintJobInfo3(ndr, NDR_BUFFERS, &r->info3));
    2096           0 :                         break;
    2097             : 
    2098           0 :                         default:
    2099           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    2100             :                 }
    2101             :         }
    2102           0 :         return NDR_ERR_SUCCESS;
    2103             : }
    2104             : 
    2105           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_printj_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union rap_printj_info *r)
    2106             : {
    2107           0 :         uint32_t level;
    2108           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2109           0 :         if (ndr_flags & NDR_SCALARS) {
    2110             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    2111           0 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    2112           0 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
    2113           0 :                 switch (level) {
    2114           0 :                         case 0: {
    2115           0 :                                 NDR_CHECK(ndr_pull_rap_PrintJobInfo0(ndr, NDR_SCALARS, &r->info0));
    2116           0 :                         break; }
    2117             : 
    2118           0 :                         case 1: {
    2119           0 :                                 NDR_CHECK(ndr_pull_rap_PrintJobInfo1(ndr, NDR_SCALARS, &r->info1));
    2120           0 :                         break; }
    2121             : 
    2122           0 :                         case 2: {
    2123           0 :                                 NDR_CHECK(ndr_pull_rap_PrintJobInfo2(ndr, NDR_SCALARS, &r->info2));
    2124           0 :                         break; }
    2125             : 
    2126           0 :                         case 3: {
    2127           0 :                                 NDR_CHECK(ndr_pull_rap_PrintJobInfo3(ndr, NDR_SCALARS, &r->info3));
    2128           0 :                         break; }
    2129             : 
    2130           0 :                         default:
    2131           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    2132             :                 }
    2133             :         }
    2134           0 :         if (ndr_flags & NDR_BUFFERS) {
    2135           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    2136             :                         /* We didn't get it above, and the token is not needed after this. */
    2137           0 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    2138             :                 }
    2139           0 :                 switch (level) {
    2140           0 :                         case 0:
    2141           0 :                         break;
    2142             : 
    2143           0 :                         case 1:
    2144           0 :                                 NDR_CHECK(ndr_pull_rap_PrintJobInfo1(ndr, NDR_BUFFERS, &r->info1));
    2145           0 :                         break;
    2146             : 
    2147           0 :                         case 2:
    2148           0 :                                 NDR_CHECK(ndr_pull_rap_PrintJobInfo2(ndr, NDR_BUFFERS, &r->info2));
    2149           0 :                         break;
    2150             : 
    2151           0 :                         case 3:
    2152           0 :                                 NDR_CHECK(ndr_pull_rap_PrintJobInfo3(ndr, NDR_BUFFERS, &r->info3));
    2153           0 :                         break;
    2154             : 
    2155           0 :                         default:
    2156           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    2157             :                 }
    2158             :         }
    2159           0 :         return NDR_ERR_SUCCESS;
    2160             : }
    2161             : 
    2162           0 : _PUBLIC_ void ndr_print_rap_printj_info(struct ndr_print *ndr, const char *name, const union rap_printj_info *r)
    2163             : {
    2164           0 :         uint32_t level;
    2165           0 :         level = ndr_print_steal_switch_value(ndr, r);
    2166           0 :         ndr_print_union(ndr, name, level, "rap_printj_info");
    2167           0 :         switch (level) {
    2168           0 :                 case 0:
    2169           0 :                         ndr_print_rap_PrintJobInfo0(ndr, "info0", &r->info0);
    2170           0 :                 break;
    2171             : 
    2172           0 :                 case 1:
    2173           0 :                         ndr_print_rap_PrintJobInfo1(ndr, "info1", &r->info1);
    2174           0 :                 break;
    2175             : 
    2176           0 :                 case 2:
    2177           0 :                         ndr_print_rap_PrintJobInfo2(ndr, "info2", &r->info2);
    2178           0 :                 break;
    2179             : 
    2180           0 :                 case 3:
    2181           0 :                         ndr_print_rap_PrintJobInfo3(ndr, "info3", &r->info3);
    2182           0 :                 break;
    2183             : 
    2184           0 :                 default:
    2185           0 :                         ndr_print_bad_level(ndr, name, level);
    2186             :         }
    2187           0 : }
    2188             : 
    2189           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_PrintQStatusCode(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum rap_PrintQStatusCode r)
    2190             : {
    2191           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
    2192           0 :         return NDR_ERR_SUCCESS;
    2193             : }
    2194             : 
    2195           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_PrintQStatusCode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum rap_PrintQStatusCode *r)
    2196             : {
    2197           0 :         uint16_t v;
    2198           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
    2199           0 :         *r = v;
    2200           0 :         return NDR_ERR_SUCCESS;
    2201             : }
    2202             : 
    2203           0 : _PUBLIC_ void ndr_print_rap_PrintQStatusCode(struct ndr_print *ndr, const char *name, enum rap_PrintQStatusCode r)
    2204             : {
    2205           0 :         const char *val = NULL;
    2206             : 
    2207           0 :         switch (r) {
    2208           0 :                 case PRQ_ACTIVE: val = "PRQ_ACTIVE"; break;
    2209           0 :                 case PRQ_PAUSE: val = "PRQ_PAUSE"; break;
    2210           0 :                 case PRQ_ERROR: val = "PRQ_ERROR"; break;
    2211           0 :                 case PRQ_PENDING: val = "PRQ_PENDING"; break;
    2212             :         }
    2213           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    2214           0 : }
    2215             : 
    2216           0 : static enum ndr_err_code ndr_push_rap_PrintQueue0(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintQueue0 *r)
    2217             : {
    2218           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2219           0 :         if (ndr_flags & NDR_SCALARS) {
    2220           0 :                 NDR_CHECK(ndr_push_align(ndr, 1));
    2221           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->PrintQName, 13, sizeof(uint8_t), CH_DOS));
    2222           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 1));
    2223             :         }
    2224           0 :         if (ndr_flags & NDR_BUFFERS) {
    2225           0 :         }
    2226           0 :         return NDR_ERR_SUCCESS;
    2227             : }
    2228             : 
    2229           0 : static enum ndr_err_code ndr_pull_rap_PrintQueue0(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintQueue0 *r)
    2230             : {
    2231           0 :         uint32_t size_PrintQName_0 = 0;
    2232           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2233           0 :         if (ndr_flags & NDR_SCALARS) {
    2234           0 :                 NDR_CHECK(ndr_pull_align(ndr, 1));
    2235           0 :                 size_PrintQName_0 = 13;
    2236           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->PrintQName, size_PrintQName_0, sizeof(uint8_t), CH_DOS));
    2237           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
    2238             :         }
    2239           0 :         if (ndr_flags & NDR_BUFFERS) {
    2240           0 :         }
    2241           0 :         return NDR_ERR_SUCCESS;
    2242             : }
    2243             : 
    2244           0 : _PUBLIC_ void ndr_print_rap_PrintQueue0(struct ndr_print *ndr, const char *name, const struct rap_PrintQueue0 *r)
    2245             : {
    2246           0 :         ndr_print_struct(ndr, name, "rap_PrintQueue0");
    2247           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2248           0 :         ndr->depth++;
    2249           0 :         ndr_print_string(ndr, "PrintQName", r->PrintQName);
    2250           0 :         ndr->depth--;
    2251             : }
    2252             : 
    2253           0 : static enum ndr_err_code ndr_push_rap_PrintQueue1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintQueue1 *r)
    2254             : {
    2255           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2256           0 :         if (ndr_flags & NDR_SCALARS) {
    2257           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    2258           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->PrintQName, 13, sizeof(uint8_t), CH_DOS));
    2259           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Pad1));
    2260           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Priority));
    2261           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->StartTime));
    2262           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UntilTime));
    2263             :                 {
    2264           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2265           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2266           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->SeparatorPageFilename));
    2267           0 :                         ndr->flags = _flags_save_string;
    2268             :                 }
    2269           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->SeparatorPageFilenameHigh));
    2270             :                 {
    2271           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2272           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2273           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintProcessorDllName));
    2274           0 :                         ndr->flags = _flags_save_string;
    2275             :                 }
    2276           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintProcessorDllNameHigh));
    2277             :                 {
    2278           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2279           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2280           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintDestinationsName));
    2281           0 :                         ndr->flags = _flags_save_string;
    2282             :                 }
    2283           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintDestinationsNameHigh));
    2284             :                 {
    2285           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2286           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2287           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintParameterString));
    2288           0 :                         ndr->flags = _flags_save_string;
    2289             :                 }
    2290           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintParameterStringHigh));
    2291             :                 {
    2292           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2293           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2294           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->CommentString));
    2295           0 :                         ndr->flags = _flags_save_string;
    2296             :                 }
    2297           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CommentStringHigh));
    2298           0 :                 NDR_CHECK(ndr_push_rap_PrintQStatusCode(ndr, NDR_SCALARS, r->PrintQStatus));
    2299           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintJobCount));
    2300           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    2301             :         }
    2302           0 :         if (ndr_flags & NDR_BUFFERS) {
    2303             :                 {
    2304           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2305           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2306           0 :                         if (r->SeparatorPageFilename) {
    2307           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->SeparatorPageFilename));
    2308           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->SeparatorPageFilename));
    2309             :                         }
    2310           0 :                         ndr->flags = _flags_save_string;
    2311             :                 }
    2312             :                 {
    2313           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2314           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2315           0 :                         if (r->PrintProcessorDllName) {
    2316           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintProcessorDllName));
    2317           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintProcessorDllName));
    2318             :                         }
    2319           0 :                         ndr->flags = _flags_save_string;
    2320             :                 }
    2321             :                 {
    2322           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2323           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2324           0 :                         if (r->PrintDestinationsName) {
    2325           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintDestinationsName));
    2326           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintDestinationsName));
    2327             :                         }
    2328           0 :                         ndr->flags = _flags_save_string;
    2329             :                 }
    2330             :                 {
    2331           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2332           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2333           0 :                         if (r->PrintParameterString) {
    2334           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintParameterString));
    2335           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintParameterString));
    2336             :                         }
    2337           0 :                         ndr->flags = _flags_save_string;
    2338             :                 }
    2339             :                 {
    2340           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2341           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2342           0 :                         if (r->CommentString) {
    2343           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->CommentString));
    2344           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->CommentString));
    2345             :                         }
    2346           0 :                         ndr->flags = _flags_save_string;
    2347             :                 }
    2348             :         }
    2349           0 :         return NDR_ERR_SUCCESS;
    2350             : }
    2351             : 
    2352           0 : static enum ndr_err_code ndr_pull_rap_PrintQueue1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintQueue1 *r)
    2353             : {
    2354           0 :         uint32_t size_PrintQName_0 = 0;
    2355           0 :         uint16_t _ptr_SeparatorPageFilename;
    2356           0 :         TALLOC_CTX *_mem_save_SeparatorPageFilename_0 = NULL;
    2357           0 :         uint16_t _ptr_PrintProcessorDllName;
    2358           0 :         TALLOC_CTX *_mem_save_PrintProcessorDllName_0 = NULL;
    2359           0 :         uint16_t _ptr_PrintDestinationsName;
    2360           0 :         TALLOC_CTX *_mem_save_PrintDestinationsName_0 = NULL;
    2361           0 :         uint16_t _ptr_PrintParameterString;
    2362           0 :         TALLOC_CTX *_mem_save_PrintParameterString_0 = NULL;
    2363           0 :         uint16_t _ptr_CommentString;
    2364           0 :         TALLOC_CTX *_mem_save_CommentString_0 = NULL;
    2365           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2366           0 :         if (ndr_flags & NDR_SCALARS) {
    2367           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    2368           0 :                 size_PrintQName_0 = 13;
    2369           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->PrintQName, size_PrintQName_0, sizeof(uint8_t), CH_DOS));
    2370           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Pad1));
    2371           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Priority));
    2372           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->StartTime));
    2373           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UntilTime));
    2374             :                 {
    2375           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2376           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2377           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_SeparatorPageFilename));
    2378           0 :                         if (_ptr_SeparatorPageFilename) {
    2379           0 :                                 NDR_PULL_ALLOC(ndr, r->SeparatorPageFilename);
    2380           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->SeparatorPageFilename, _ptr_SeparatorPageFilename));
    2381             :                         } else {
    2382           0 :                                 r->SeparatorPageFilename = NULL;
    2383             :                         }
    2384           0 :                         ndr->flags = _flags_save_string;
    2385             :                 }
    2386           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->SeparatorPageFilenameHigh));
    2387             :                 {
    2388           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2389           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2390           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintProcessorDllName));
    2391           0 :                         if (_ptr_PrintProcessorDllName) {
    2392           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintProcessorDllName);
    2393           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintProcessorDllName, _ptr_PrintProcessorDllName));
    2394             :                         } else {
    2395           0 :                                 r->PrintProcessorDllName = NULL;
    2396             :                         }
    2397           0 :                         ndr->flags = _flags_save_string;
    2398             :                 }
    2399           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintProcessorDllNameHigh));
    2400             :                 {
    2401           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2402           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2403           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintDestinationsName));
    2404           0 :                         if (_ptr_PrintDestinationsName) {
    2405           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintDestinationsName);
    2406           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintDestinationsName, _ptr_PrintDestinationsName));
    2407             :                         } else {
    2408           0 :                                 r->PrintDestinationsName = NULL;
    2409             :                         }
    2410           0 :                         ndr->flags = _flags_save_string;
    2411             :                 }
    2412           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintDestinationsNameHigh));
    2413             :                 {
    2414           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2415           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2416           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintParameterString));
    2417           0 :                         if (_ptr_PrintParameterString) {
    2418           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintParameterString);
    2419           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintParameterString, _ptr_PrintParameterString));
    2420             :                         } else {
    2421           0 :                                 r->PrintParameterString = NULL;
    2422             :                         }
    2423           0 :                         ndr->flags = _flags_save_string;
    2424             :                 }
    2425           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintParameterStringHigh));
    2426             :                 {
    2427           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2428           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2429           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_CommentString));
    2430           0 :                         if (_ptr_CommentString) {
    2431           0 :                                 NDR_PULL_ALLOC(ndr, r->CommentString);
    2432           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->CommentString, _ptr_CommentString));
    2433             :                         } else {
    2434           0 :                                 r->CommentString = NULL;
    2435             :                         }
    2436           0 :                         ndr->flags = _flags_save_string;
    2437             :                 }
    2438           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CommentStringHigh));
    2439           0 :                 NDR_CHECK(ndr_pull_rap_PrintQStatusCode(ndr, NDR_SCALARS, &r->PrintQStatus));
    2440           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintJobCount));
    2441           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    2442             :         }
    2443           0 :         if (ndr_flags & NDR_BUFFERS) {
    2444             :                 {
    2445           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2446           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2447           0 :                         if (r->SeparatorPageFilename) {
    2448           0 :                                 uint32_t _relative_save_offset;
    2449           0 :                                 _relative_save_offset = ndr->offset;
    2450           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->SeparatorPageFilename));
    2451           0 :                                 _mem_save_SeparatorPageFilename_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2452           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->SeparatorPageFilename, 0);
    2453           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->SeparatorPageFilename));
    2454           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_SeparatorPageFilename_0, 0);
    2455           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    2456           0 :                                         ndr->relative_highest_offset = ndr->offset;
    2457             :                                 }
    2458           0 :                                 ndr->offset = _relative_save_offset;
    2459             :                         }
    2460           0 :                         ndr->flags = _flags_save_string;
    2461             :                 }
    2462             :                 {
    2463           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2464           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2465           0 :                         if (r->PrintProcessorDllName) {
    2466           0 :                                 uint32_t _relative_save_offset;
    2467           0 :                                 _relative_save_offset = ndr->offset;
    2468           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintProcessorDllName));
    2469           0 :                                 _mem_save_PrintProcessorDllName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2470           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintProcessorDllName, 0);
    2471           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintProcessorDllName));
    2472           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintProcessorDllName_0, 0);
    2473           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    2474           0 :                                         ndr->relative_highest_offset = ndr->offset;
    2475             :                                 }
    2476           0 :                                 ndr->offset = _relative_save_offset;
    2477             :                         }
    2478           0 :                         ndr->flags = _flags_save_string;
    2479             :                 }
    2480             :                 {
    2481           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2482           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2483           0 :                         if (r->PrintDestinationsName) {
    2484           0 :                                 uint32_t _relative_save_offset;
    2485           0 :                                 _relative_save_offset = ndr->offset;
    2486           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintDestinationsName));
    2487           0 :                                 _mem_save_PrintDestinationsName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2488           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintDestinationsName, 0);
    2489           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintDestinationsName));
    2490           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintDestinationsName_0, 0);
    2491           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    2492           0 :                                         ndr->relative_highest_offset = ndr->offset;
    2493             :                                 }
    2494           0 :                                 ndr->offset = _relative_save_offset;
    2495             :                         }
    2496           0 :                         ndr->flags = _flags_save_string;
    2497             :                 }
    2498             :                 {
    2499           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2500           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2501           0 :                         if (r->PrintParameterString) {
    2502           0 :                                 uint32_t _relative_save_offset;
    2503           0 :                                 _relative_save_offset = ndr->offset;
    2504           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintParameterString));
    2505           0 :                                 _mem_save_PrintParameterString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2506           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintParameterString, 0);
    2507           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintParameterString));
    2508           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintParameterString_0, 0);
    2509           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    2510           0 :                                         ndr->relative_highest_offset = ndr->offset;
    2511             :                                 }
    2512           0 :                                 ndr->offset = _relative_save_offset;
    2513             :                         }
    2514           0 :                         ndr->flags = _flags_save_string;
    2515             :                 }
    2516             :                 {
    2517           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2518           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2519           0 :                         if (r->CommentString) {
    2520           0 :                                 uint32_t _relative_save_offset;
    2521           0 :                                 _relative_save_offset = ndr->offset;
    2522           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->CommentString));
    2523           0 :                                 _mem_save_CommentString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2524           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->CommentString, 0);
    2525           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->CommentString));
    2526           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_CommentString_0, 0);
    2527           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    2528           0 :                                         ndr->relative_highest_offset = ndr->offset;
    2529             :                                 }
    2530           0 :                                 ndr->offset = _relative_save_offset;
    2531             :                         }
    2532           0 :                         ndr->flags = _flags_save_string;
    2533             :                 }
    2534             :         }
    2535           0 :         return NDR_ERR_SUCCESS;
    2536             : }
    2537             : 
    2538           0 : _PUBLIC_ void ndr_print_rap_PrintQueue1(struct ndr_print *ndr, const char *name, const struct rap_PrintQueue1 *r)
    2539             : {
    2540           0 :         ndr_print_struct(ndr, name, "rap_PrintQueue1");
    2541           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2542           0 :         ndr->depth++;
    2543           0 :         ndr_print_string(ndr, "PrintQName", r->PrintQName);
    2544           0 :         ndr_print_uint8(ndr, "Pad1", r->Pad1);
    2545           0 :         ndr_print_uint16(ndr, "Priority", r->Priority);
    2546           0 :         ndr_print_uint16(ndr, "StartTime", r->StartTime);
    2547           0 :         ndr_print_uint16(ndr, "UntilTime", r->UntilTime);
    2548             :         {
    2549           0 :                 libndr_flags _flags_save_string = ndr->flags;
    2550           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2551           0 :                 ndr_print_ptr(ndr, "SeparatorPageFilename", r->SeparatorPageFilename);
    2552           0 :                 ndr->depth++;
    2553           0 :                 if (r->SeparatorPageFilename) {
    2554           0 :                         ndr_print_string(ndr, "SeparatorPageFilename", r->SeparatorPageFilename);
    2555             :                 }
    2556           0 :                 ndr->depth--;
    2557           0 :                 ndr->flags = _flags_save_string;
    2558             :         }
    2559           0 :         ndr_print_uint16(ndr, "SeparatorPageFilenameHigh", r->SeparatorPageFilenameHigh);
    2560             :         {
    2561           0 :                 libndr_flags _flags_save_string = ndr->flags;
    2562           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2563           0 :                 ndr_print_ptr(ndr, "PrintProcessorDllName", r->PrintProcessorDllName);
    2564           0 :                 ndr->depth++;
    2565           0 :                 if (r->PrintProcessorDllName) {
    2566           0 :                         ndr_print_string(ndr, "PrintProcessorDllName", r->PrintProcessorDllName);
    2567             :                 }
    2568           0 :                 ndr->depth--;
    2569           0 :                 ndr->flags = _flags_save_string;
    2570             :         }
    2571           0 :         ndr_print_uint16(ndr, "PrintProcessorDllNameHigh", r->PrintProcessorDllNameHigh);
    2572             :         {
    2573           0 :                 libndr_flags _flags_save_string = ndr->flags;
    2574           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2575           0 :                 ndr_print_ptr(ndr, "PrintDestinationsName", r->PrintDestinationsName);
    2576           0 :                 ndr->depth++;
    2577           0 :                 if (r->PrintDestinationsName) {
    2578           0 :                         ndr_print_string(ndr, "PrintDestinationsName", r->PrintDestinationsName);
    2579             :                 }
    2580           0 :                 ndr->depth--;
    2581           0 :                 ndr->flags = _flags_save_string;
    2582             :         }
    2583           0 :         ndr_print_uint16(ndr, "PrintDestinationsNameHigh", r->PrintDestinationsNameHigh);
    2584             :         {
    2585           0 :                 libndr_flags _flags_save_string = ndr->flags;
    2586           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2587           0 :                 ndr_print_ptr(ndr, "PrintParameterString", r->PrintParameterString);
    2588           0 :                 ndr->depth++;
    2589           0 :                 if (r->PrintParameterString) {
    2590           0 :                         ndr_print_string(ndr, "PrintParameterString", r->PrintParameterString);
    2591             :                 }
    2592           0 :                 ndr->depth--;
    2593           0 :                 ndr->flags = _flags_save_string;
    2594             :         }
    2595           0 :         ndr_print_uint16(ndr, "PrintParameterStringHigh", r->PrintParameterStringHigh);
    2596             :         {
    2597           0 :                 libndr_flags _flags_save_string = ndr->flags;
    2598           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2599           0 :                 ndr_print_ptr(ndr, "CommentString", r->CommentString);
    2600           0 :                 ndr->depth++;
    2601           0 :                 if (r->CommentString) {
    2602           0 :                         ndr_print_string(ndr, "CommentString", r->CommentString);
    2603             :                 }
    2604           0 :                 ndr->depth--;
    2605           0 :                 ndr->flags = _flags_save_string;
    2606             :         }
    2607           0 :         ndr_print_uint16(ndr, "CommentStringHigh", r->CommentStringHigh);
    2608           0 :         ndr_print_rap_PrintQStatusCode(ndr, "PrintQStatus", r->PrintQStatus);
    2609           0 :         ndr_print_uint16(ndr, "PrintJobCount", r->PrintJobCount);
    2610           0 :         ndr->depth--;
    2611             : }
    2612             : 
    2613           0 : static enum ndr_err_code ndr_push_rap_PrintQueue2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintQueue2 *r)
    2614             : {
    2615           0 :         uint32_t cntr_job_0;
    2616           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2617           0 :         if (ndr_flags & NDR_SCALARS) {
    2618           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    2619           0 :                 NDR_CHECK(ndr_push_rap_PrintQueue1(ndr, NDR_SCALARS, &r->queue));
    2620           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (r->queue.PrintJobCount); cntr_job_0++) {
    2621           0 :                         NDR_CHECK(ndr_push_rap_PrintJobInfo1(ndr, NDR_SCALARS, &r->job[cntr_job_0]));
    2622             :                 }
    2623           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    2624             :         }
    2625           0 :         if (ndr_flags & NDR_BUFFERS) {
    2626           0 :                 NDR_CHECK(ndr_push_rap_PrintQueue1(ndr, NDR_BUFFERS, &r->queue));
    2627           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (r->queue.PrintJobCount); cntr_job_0++) {
    2628           0 :                         NDR_CHECK(ndr_push_rap_PrintJobInfo1(ndr, NDR_BUFFERS, &r->job[cntr_job_0]));
    2629             :                 }
    2630             :         }
    2631           0 :         return NDR_ERR_SUCCESS;
    2632             : }
    2633             : 
    2634           0 : static enum ndr_err_code ndr_pull_rap_PrintQueue2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintQueue2 *r)
    2635             : {
    2636           0 :         uint32_t size_job_0 = 0;
    2637           0 :         uint32_t cntr_job_0;
    2638           0 :         TALLOC_CTX *_mem_save_job_0 = NULL;
    2639           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2640           0 :         if (ndr_flags & NDR_SCALARS) {
    2641           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    2642           0 :                 NDR_CHECK(ndr_pull_rap_PrintQueue1(ndr, NDR_SCALARS, &r->queue));
    2643           0 :                 size_job_0 = r->queue.PrintJobCount;
    2644           0 :                 NDR_PULL_ALLOC_N(ndr, r->job, size_job_0);
    2645           0 :                 _mem_save_job_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2646           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->job, 0);
    2647           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (size_job_0); cntr_job_0++) {
    2648           0 :                         NDR_CHECK(ndr_pull_rap_PrintJobInfo1(ndr, NDR_SCALARS, &r->job[cntr_job_0]));
    2649             :                 }
    2650           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_job_0, 0);
    2651           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    2652             :         }
    2653           0 :         if (ndr_flags & NDR_BUFFERS) {
    2654           0 :                 NDR_CHECK(ndr_pull_rap_PrintQueue1(ndr, NDR_BUFFERS, &r->queue));
    2655           0 :                 size_job_0 = r->queue.PrintJobCount;
    2656           0 :                 _mem_save_job_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2657           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->job, 0);
    2658           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (size_job_0); cntr_job_0++) {
    2659           0 :                         NDR_CHECK(ndr_pull_rap_PrintJobInfo1(ndr, NDR_BUFFERS, &r->job[cntr_job_0]));
    2660             :                 }
    2661           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_job_0, 0);
    2662           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (size_job_0); cntr_job_0++) {
    2663             :                 }
    2664             :         }
    2665           0 :         return NDR_ERR_SUCCESS;
    2666             : }
    2667             : 
    2668           0 : _PUBLIC_ void ndr_print_rap_PrintQueue2(struct ndr_print *ndr, const char *name, const struct rap_PrintQueue2 *r)
    2669             : {
    2670           0 :         uint32_t cntr_job_0;
    2671           0 :         ndr_print_struct(ndr, name, "rap_PrintQueue2");
    2672           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    2673           0 :         ndr->depth++;
    2674           0 :         ndr_print_rap_PrintQueue1(ndr, "queue", &r->queue);
    2675           0 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "job", (uint32_t)(r->queue.PrintJobCount));
    2676           0 :         ndr->depth++;
    2677           0 :         for (cntr_job_0 = 0; cntr_job_0 < (r->queue.PrintJobCount); cntr_job_0++) {
    2678           0 :                 ndr_print_rap_PrintJobInfo1(ndr, "job", &r->job[cntr_job_0]);
    2679             :         }
    2680           0 :         ndr->depth--;
    2681           0 :         ndr->depth--;
    2682             : }
    2683             : 
    2684           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_PrintQueue3(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintQueue3 *r)
    2685             : {
    2686           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    2687           0 :         if (ndr_flags & NDR_SCALARS) {
    2688           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    2689             :                 {
    2690           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2691           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2692           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintQueueName));
    2693           0 :                         ndr->flags = _flags_save_string;
    2694             :                 }
    2695           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintQueueNameHigh));
    2696           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Priority));
    2697           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->StartTime));
    2698           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UntilTime));
    2699           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Pad));
    2700             :                 {
    2701           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2702           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2703           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->SeparatorPageFilename));
    2704           0 :                         ndr->flags = _flags_save_string;
    2705             :                 }
    2706           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->SeparatorPageFilenameHigh));
    2707             :                 {
    2708           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2709           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2710           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintProcessorDllName));
    2711           0 :                         ndr->flags = _flags_save_string;
    2712             :                 }
    2713           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintProcessorDllNameHigh));
    2714             :                 {
    2715           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2716           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2717           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintParameterString));
    2718           0 :                         ndr->flags = _flags_save_string;
    2719             :                 }
    2720           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintParameterStringHigh));
    2721             :                 {
    2722           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2723           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2724           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->CommentString));
    2725           0 :                         ndr->flags = _flags_save_string;
    2726             :                 }
    2727           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CommentStringHigh));
    2728           0 :                 NDR_CHECK(ndr_push_rap_PrintQStatusCode(ndr, NDR_SCALARS, r->PrintQStatus));
    2729           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintJobCount));
    2730             :                 {
    2731           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2732           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2733           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->Printers));
    2734           0 :                         ndr->flags = _flags_save_string;
    2735             :                 }
    2736           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintersHigh));
    2737             :                 {
    2738           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2739           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2740           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->DriverName));
    2741           0 :                         ndr->flags = _flags_save_string;
    2742             :                 }
    2743           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->DriverNameHigh));
    2744             :                 {
    2745           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2746           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2747           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintDriverData));
    2748           0 :                         ndr->flags = _flags_save_string;
    2749             :                 }
    2750           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintDriverDataHigh));
    2751           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    2752             :         }
    2753           0 :         if (ndr_flags & NDR_BUFFERS) {
    2754             :                 {
    2755           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2756           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2757           0 :                         if (r->PrintQueueName) {
    2758           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintQueueName));
    2759           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintQueueName));
    2760             :                         }
    2761           0 :                         ndr->flags = _flags_save_string;
    2762             :                 }
    2763             :                 {
    2764           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2765           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2766           0 :                         if (r->SeparatorPageFilename) {
    2767           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->SeparatorPageFilename));
    2768           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->SeparatorPageFilename));
    2769             :                         }
    2770           0 :                         ndr->flags = _flags_save_string;
    2771             :                 }
    2772             :                 {
    2773           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2774           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2775           0 :                         if (r->PrintProcessorDllName) {
    2776           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintProcessorDllName));
    2777           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintProcessorDllName));
    2778             :                         }
    2779           0 :                         ndr->flags = _flags_save_string;
    2780             :                 }
    2781             :                 {
    2782           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2783           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2784           0 :                         if (r->PrintParameterString) {
    2785           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintParameterString));
    2786           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintParameterString));
    2787             :                         }
    2788           0 :                         ndr->flags = _flags_save_string;
    2789             :                 }
    2790             :                 {
    2791           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2792           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2793           0 :                         if (r->CommentString) {
    2794           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->CommentString));
    2795           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->CommentString));
    2796             :                         }
    2797           0 :                         ndr->flags = _flags_save_string;
    2798             :                 }
    2799             :                 {
    2800           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2801           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2802           0 :                         if (r->Printers) {
    2803           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->Printers));
    2804           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Printers));
    2805             :                         }
    2806           0 :                         ndr->flags = _flags_save_string;
    2807             :                 }
    2808             :                 {
    2809           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2810           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2811           0 :                         if (r->DriverName) {
    2812           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->DriverName));
    2813           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->DriverName));
    2814             :                         }
    2815           0 :                         ndr->flags = _flags_save_string;
    2816             :                 }
    2817             :                 {
    2818           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2819           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2820           0 :                         if (r->PrintDriverData) {
    2821           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintDriverData));
    2822           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintDriverData));
    2823             :                         }
    2824           0 :                         ndr->flags = _flags_save_string;
    2825             :                 }
    2826             :         }
    2827           0 :         return NDR_ERR_SUCCESS;
    2828             : }
    2829             : 
    2830           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_PrintQueue3(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintQueue3 *r)
    2831             : {
    2832           0 :         uint16_t _ptr_PrintQueueName;
    2833           0 :         TALLOC_CTX *_mem_save_PrintQueueName_0 = NULL;
    2834           0 :         uint16_t _ptr_SeparatorPageFilename;
    2835           0 :         TALLOC_CTX *_mem_save_SeparatorPageFilename_0 = NULL;
    2836           0 :         uint16_t _ptr_PrintProcessorDllName;
    2837           0 :         TALLOC_CTX *_mem_save_PrintProcessorDllName_0 = NULL;
    2838           0 :         uint16_t _ptr_PrintParameterString;
    2839           0 :         TALLOC_CTX *_mem_save_PrintParameterString_0 = NULL;
    2840           0 :         uint16_t _ptr_CommentString;
    2841           0 :         TALLOC_CTX *_mem_save_CommentString_0 = NULL;
    2842           0 :         uint16_t _ptr_Printers;
    2843           0 :         TALLOC_CTX *_mem_save_Printers_0 = NULL;
    2844           0 :         uint16_t _ptr_DriverName;
    2845           0 :         TALLOC_CTX *_mem_save_DriverName_0 = NULL;
    2846           0 :         uint16_t _ptr_PrintDriverData;
    2847           0 :         TALLOC_CTX *_mem_save_PrintDriverData_0 = NULL;
    2848           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    2849           0 :         if (ndr_flags & NDR_SCALARS) {
    2850           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    2851             :                 {
    2852           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2853           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2854           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintQueueName));
    2855           0 :                         if (_ptr_PrintQueueName) {
    2856           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintQueueName);
    2857           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintQueueName, _ptr_PrintQueueName));
    2858             :                         } else {
    2859           0 :                                 r->PrintQueueName = NULL;
    2860             :                         }
    2861           0 :                         ndr->flags = _flags_save_string;
    2862             :                 }
    2863           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintQueueNameHigh));
    2864           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Priority));
    2865           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->StartTime));
    2866           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UntilTime));
    2867           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Pad));
    2868             :                 {
    2869           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2870           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2871           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_SeparatorPageFilename));
    2872           0 :                         if (_ptr_SeparatorPageFilename) {
    2873           0 :                                 NDR_PULL_ALLOC(ndr, r->SeparatorPageFilename);
    2874           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->SeparatorPageFilename, _ptr_SeparatorPageFilename));
    2875             :                         } else {
    2876           0 :                                 r->SeparatorPageFilename = NULL;
    2877             :                         }
    2878           0 :                         ndr->flags = _flags_save_string;
    2879             :                 }
    2880           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->SeparatorPageFilenameHigh));
    2881             :                 {
    2882           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2883           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2884           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintProcessorDllName));
    2885           0 :                         if (_ptr_PrintProcessorDllName) {
    2886           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintProcessorDllName);
    2887           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintProcessorDllName, _ptr_PrintProcessorDllName));
    2888             :                         } else {
    2889           0 :                                 r->PrintProcessorDllName = NULL;
    2890             :                         }
    2891           0 :                         ndr->flags = _flags_save_string;
    2892             :                 }
    2893           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintProcessorDllNameHigh));
    2894             :                 {
    2895           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2896           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2897           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintParameterString));
    2898           0 :                         if (_ptr_PrintParameterString) {
    2899           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintParameterString);
    2900           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintParameterString, _ptr_PrintParameterString));
    2901             :                         } else {
    2902           0 :                                 r->PrintParameterString = NULL;
    2903             :                         }
    2904           0 :                         ndr->flags = _flags_save_string;
    2905             :                 }
    2906           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintParameterStringHigh));
    2907             :                 {
    2908           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2909           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2910           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_CommentString));
    2911           0 :                         if (_ptr_CommentString) {
    2912           0 :                                 NDR_PULL_ALLOC(ndr, r->CommentString);
    2913           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->CommentString, _ptr_CommentString));
    2914             :                         } else {
    2915           0 :                                 r->CommentString = NULL;
    2916             :                         }
    2917           0 :                         ndr->flags = _flags_save_string;
    2918             :                 }
    2919           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CommentStringHigh));
    2920           0 :                 NDR_CHECK(ndr_pull_rap_PrintQStatusCode(ndr, NDR_SCALARS, &r->PrintQStatus));
    2921           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintJobCount));
    2922             :                 {
    2923           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2924           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2925           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_Printers));
    2926           0 :                         if (_ptr_Printers) {
    2927           0 :                                 NDR_PULL_ALLOC(ndr, r->Printers);
    2928           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->Printers, _ptr_Printers));
    2929             :                         } else {
    2930           0 :                                 r->Printers = NULL;
    2931             :                         }
    2932           0 :                         ndr->flags = _flags_save_string;
    2933             :                 }
    2934           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintersHigh));
    2935             :                 {
    2936           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2937           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2938           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_DriverName));
    2939           0 :                         if (_ptr_DriverName) {
    2940           0 :                                 NDR_PULL_ALLOC(ndr, r->DriverName);
    2941           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->DriverName, _ptr_DriverName));
    2942             :                         } else {
    2943           0 :                                 r->DriverName = NULL;
    2944             :                         }
    2945           0 :                         ndr->flags = _flags_save_string;
    2946             :                 }
    2947           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->DriverNameHigh));
    2948             :                 {
    2949           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2950           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2951           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintDriverData));
    2952           0 :                         if (_ptr_PrintDriverData) {
    2953           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintDriverData);
    2954           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintDriverData, _ptr_PrintDriverData));
    2955             :                         } else {
    2956           0 :                                 r->PrintDriverData = NULL;
    2957             :                         }
    2958           0 :                         ndr->flags = _flags_save_string;
    2959             :                 }
    2960           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintDriverDataHigh));
    2961           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    2962             :         }
    2963           0 :         if (ndr_flags & NDR_BUFFERS) {
    2964             :                 {
    2965           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2966           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2967           0 :                         if (r->PrintQueueName) {
    2968           0 :                                 uint32_t _relative_save_offset;
    2969           0 :                                 _relative_save_offset = ndr->offset;
    2970           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintQueueName));
    2971           0 :                                 _mem_save_PrintQueueName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2972           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintQueueName, 0);
    2973           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintQueueName));
    2974           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintQueueName_0, 0);
    2975           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    2976           0 :                                         ndr->relative_highest_offset = ndr->offset;
    2977             :                                 }
    2978           0 :                                 ndr->offset = _relative_save_offset;
    2979             :                         }
    2980           0 :                         ndr->flags = _flags_save_string;
    2981             :                 }
    2982             :                 {
    2983           0 :                         libndr_flags _flags_save_string = ndr->flags;
    2984           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    2985           0 :                         if (r->SeparatorPageFilename) {
    2986           0 :                                 uint32_t _relative_save_offset;
    2987           0 :                                 _relative_save_offset = ndr->offset;
    2988           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->SeparatorPageFilename));
    2989           0 :                                 _mem_save_SeparatorPageFilename_0 = NDR_PULL_GET_MEM_CTX(ndr);
    2990           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->SeparatorPageFilename, 0);
    2991           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->SeparatorPageFilename));
    2992           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_SeparatorPageFilename_0, 0);
    2993           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    2994           0 :                                         ndr->relative_highest_offset = ndr->offset;
    2995             :                                 }
    2996           0 :                                 ndr->offset = _relative_save_offset;
    2997             :                         }
    2998           0 :                         ndr->flags = _flags_save_string;
    2999             :                 }
    3000             :                 {
    3001           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3002           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3003           0 :                         if (r->PrintProcessorDllName) {
    3004           0 :                                 uint32_t _relative_save_offset;
    3005           0 :                                 _relative_save_offset = ndr->offset;
    3006           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintProcessorDllName));
    3007           0 :                                 _mem_save_PrintProcessorDllName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3008           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintProcessorDllName, 0);
    3009           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintProcessorDllName));
    3010           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintProcessorDllName_0, 0);
    3011           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    3012           0 :                                         ndr->relative_highest_offset = ndr->offset;
    3013             :                                 }
    3014           0 :                                 ndr->offset = _relative_save_offset;
    3015             :                         }
    3016           0 :                         ndr->flags = _flags_save_string;
    3017             :                 }
    3018             :                 {
    3019           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3020           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3021           0 :                         if (r->PrintParameterString) {
    3022           0 :                                 uint32_t _relative_save_offset;
    3023           0 :                                 _relative_save_offset = ndr->offset;
    3024           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintParameterString));
    3025           0 :                                 _mem_save_PrintParameterString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3026           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintParameterString, 0);
    3027           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintParameterString));
    3028           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintParameterString_0, 0);
    3029           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    3030           0 :                                         ndr->relative_highest_offset = ndr->offset;
    3031             :                                 }
    3032           0 :                                 ndr->offset = _relative_save_offset;
    3033             :                         }
    3034           0 :                         ndr->flags = _flags_save_string;
    3035             :                 }
    3036             :                 {
    3037           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3038           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3039           0 :                         if (r->CommentString) {
    3040           0 :                                 uint32_t _relative_save_offset;
    3041           0 :                                 _relative_save_offset = ndr->offset;
    3042           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->CommentString));
    3043           0 :                                 _mem_save_CommentString_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3044           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->CommentString, 0);
    3045           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->CommentString));
    3046           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_CommentString_0, 0);
    3047           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    3048           0 :                                         ndr->relative_highest_offset = ndr->offset;
    3049             :                                 }
    3050           0 :                                 ndr->offset = _relative_save_offset;
    3051             :                         }
    3052           0 :                         ndr->flags = _flags_save_string;
    3053             :                 }
    3054             :                 {
    3055           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3056           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3057           0 :                         if (r->Printers) {
    3058           0 :                                 uint32_t _relative_save_offset;
    3059           0 :                                 _relative_save_offset = ndr->offset;
    3060           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->Printers));
    3061           0 :                                 _mem_save_Printers_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3062           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->Printers, 0);
    3063           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Printers));
    3064           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Printers_0, 0);
    3065           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    3066           0 :                                         ndr->relative_highest_offset = ndr->offset;
    3067             :                                 }
    3068           0 :                                 ndr->offset = _relative_save_offset;
    3069             :                         }
    3070           0 :                         ndr->flags = _flags_save_string;
    3071             :                 }
    3072             :                 {
    3073           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3074           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3075           0 :                         if (r->DriverName) {
    3076           0 :                                 uint32_t _relative_save_offset;
    3077           0 :                                 _relative_save_offset = ndr->offset;
    3078           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->DriverName));
    3079           0 :                                 _mem_save_DriverName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3080           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->DriverName, 0);
    3081           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->DriverName));
    3082           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_DriverName_0, 0);
    3083           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    3084           0 :                                         ndr->relative_highest_offset = ndr->offset;
    3085             :                                 }
    3086           0 :                                 ndr->offset = _relative_save_offset;
    3087             :                         }
    3088           0 :                         ndr->flags = _flags_save_string;
    3089             :                 }
    3090             :                 {
    3091           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3092           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3093           0 :                         if (r->PrintDriverData) {
    3094           0 :                                 uint32_t _relative_save_offset;
    3095           0 :                                 _relative_save_offset = ndr->offset;
    3096           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintDriverData));
    3097           0 :                                 _mem_save_PrintDriverData_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3098           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintDriverData, 0);
    3099           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintDriverData));
    3100           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintDriverData_0, 0);
    3101           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    3102           0 :                                         ndr->relative_highest_offset = ndr->offset;
    3103             :                                 }
    3104           0 :                                 ndr->offset = _relative_save_offset;
    3105             :                         }
    3106           0 :                         ndr->flags = _flags_save_string;
    3107             :                 }
    3108             :         }
    3109           0 :         return NDR_ERR_SUCCESS;
    3110             : }
    3111             : 
    3112           0 : static void ndr_print_flags_rap_PrintQueue3(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct rap_PrintQueue3 *r)
    3113             : {
    3114           0 :         ndr_print_rap_PrintQueue3(ndr, name, r);
    3115           0 : }
    3116             : 
    3117           0 : _PUBLIC_ void ndr_print_rap_PrintQueue3(struct ndr_print *ndr, const char *name, const struct rap_PrintQueue3 *r)
    3118             : {
    3119           0 :         ndr_print_struct(ndr, name, "rap_PrintQueue3");
    3120           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3121           0 :         ndr->depth++;
    3122             :         {
    3123           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3124           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3125           0 :                 ndr_print_ptr(ndr, "PrintQueueName", r->PrintQueueName);
    3126           0 :                 ndr->depth++;
    3127           0 :                 if (r->PrintQueueName) {
    3128           0 :                         ndr_print_string(ndr, "PrintQueueName", r->PrintQueueName);
    3129             :                 }
    3130           0 :                 ndr->depth--;
    3131           0 :                 ndr->flags = _flags_save_string;
    3132             :         }
    3133           0 :         ndr_print_uint16(ndr, "PrintQueueNameHigh", r->PrintQueueNameHigh);
    3134           0 :         ndr_print_uint16(ndr, "Priority", r->Priority);
    3135           0 :         ndr_print_uint16(ndr, "StartTime", r->StartTime);
    3136           0 :         ndr_print_uint16(ndr, "UntilTime", r->UntilTime);
    3137           0 :         ndr_print_uint16(ndr, "Pad", r->Pad);
    3138             :         {
    3139           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3140           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3141           0 :                 ndr_print_ptr(ndr, "SeparatorPageFilename", r->SeparatorPageFilename);
    3142           0 :                 ndr->depth++;
    3143           0 :                 if (r->SeparatorPageFilename) {
    3144           0 :                         ndr_print_string(ndr, "SeparatorPageFilename", r->SeparatorPageFilename);
    3145             :                 }
    3146           0 :                 ndr->depth--;
    3147           0 :                 ndr->flags = _flags_save_string;
    3148             :         }
    3149           0 :         ndr_print_uint16(ndr, "SeparatorPageFilenameHigh", r->SeparatorPageFilenameHigh);
    3150             :         {
    3151           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3152           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3153           0 :                 ndr_print_ptr(ndr, "PrintProcessorDllName", r->PrintProcessorDllName);
    3154           0 :                 ndr->depth++;
    3155           0 :                 if (r->PrintProcessorDllName) {
    3156           0 :                         ndr_print_string(ndr, "PrintProcessorDllName", r->PrintProcessorDllName);
    3157             :                 }
    3158           0 :                 ndr->depth--;
    3159           0 :                 ndr->flags = _flags_save_string;
    3160             :         }
    3161           0 :         ndr_print_uint16(ndr, "PrintProcessorDllNameHigh", r->PrintProcessorDllNameHigh);
    3162             :         {
    3163           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3164           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3165           0 :                 ndr_print_ptr(ndr, "PrintParameterString", r->PrintParameterString);
    3166           0 :                 ndr->depth++;
    3167           0 :                 if (r->PrintParameterString) {
    3168           0 :                         ndr_print_string(ndr, "PrintParameterString", r->PrintParameterString);
    3169             :                 }
    3170           0 :                 ndr->depth--;
    3171           0 :                 ndr->flags = _flags_save_string;
    3172             :         }
    3173           0 :         ndr_print_uint16(ndr, "PrintParameterStringHigh", r->PrintParameterStringHigh);
    3174             :         {
    3175           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3176           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3177           0 :                 ndr_print_ptr(ndr, "CommentString", r->CommentString);
    3178           0 :                 ndr->depth++;
    3179           0 :                 if (r->CommentString) {
    3180           0 :                         ndr_print_string(ndr, "CommentString", r->CommentString);
    3181             :                 }
    3182           0 :                 ndr->depth--;
    3183           0 :                 ndr->flags = _flags_save_string;
    3184             :         }
    3185           0 :         ndr_print_uint16(ndr, "CommentStringHigh", r->CommentStringHigh);
    3186           0 :         ndr_print_rap_PrintQStatusCode(ndr, "PrintQStatus", r->PrintQStatus);
    3187           0 :         ndr_print_uint16(ndr, "PrintJobCount", r->PrintJobCount);
    3188             :         {
    3189           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3190           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3191           0 :                 ndr_print_ptr(ndr, "Printers", r->Printers);
    3192           0 :                 ndr->depth++;
    3193           0 :                 if (r->Printers) {
    3194           0 :                         ndr_print_string(ndr, "Printers", r->Printers);
    3195             :                 }
    3196           0 :                 ndr->depth--;
    3197           0 :                 ndr->flags = _flags_save_string;
    3198             :         }
    3199           0 :         ndr_print_uint16(ndr, "PrintersHigh", r->PrintersHigh);
    3200             :         {
    3201           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3202           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3203           0 :                 ndr_print_ptr(ndr, "DriverName", r->DriverName);
    3204           0 :                 ndr->depth++;
    3205           0 :                 if (r->DriverName) {
    3206           0 :                         ndr_print_string(ndr, "DriverName", r->DriverName);
    3207             :                 }
    3208           0 :                 ndr->depth--;
    3209           0 :                 ndr->flags = _flags_save_string;
    3210             :         }
    3211           0 :         ndr_print_uint16(ndr, "DriverNameHigh", r->DriverNameHigh);
    3212             :         {
    3213           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3214           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3215           0 :                 ndr_print_ptr(ndr, "PrintDriverData", r->PrintDriverData);
    3216           0 :                 ndr->depth++;
    3217           0 :                 if (r->PrintDriverData) {
    3218           0 :                         ndr_print_string(ndr, "PrintDriverData", r->PrintDriverData);
    3219             :                 }
    3220           0 :                 ndr->depth--;
    3221           0 :                 ndr->flags = _flags_save_string;
    3222             :         }
    3223           0 :         ndr_print_uint16(ndr, "PrintDriverDataHigh", r->PrintDriverDataHigh);
    3224           0 :         ndr->depth--;
    3225             : }
    3226             : 
    3227           0 : static enum ndr_err_code ndr_push_rap_PrintQueue4(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintQueue4 *r)
    3228             : {
    3229           0 :         uint32_t cntr_job_0;
    3230           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    3231           0 :         if (ndr_flags & NDR_SCALARS) {
    3232           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    3233           0 :                 NDR_CHECK(ndr_push_rap_PrintQueue3(ndr, NDR_SCALARS, &r->queue));
    3234           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (r->queue.PrintJobCount); cntr_job_0++) {
    3235           0 :                         NDR_CHECK(ndr_push_rap_PrintJobInfo2(ndr, NDR_SCALARS, &r->job[cntr_job_0]));
    3236             :                 }
    3237           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    3238             :         }
    3239           0 :         if (ndr_flags & NDR_BUFFERS) {
    3240           0 :                 NDR_CHECK(ndr_push_rap_PrintQueue3(ndr, NDR_BUFFERS, &r->queue));
    3241           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (r->queue.PrintJobCount); cntr_job_0++) {
    3242           0 :                         NDR_CHECK(ndr_push_rap_PrintJobInfo2(ndr, NDR_BUFFERS, &r->job[cntr_job_0]));
    3243             :                 }
    3244             :         }
    3245           0 :         return NDR_ERR_SUCCESS;
    3246             : }
    3247             : 
    3248           0 : static enum ndr_err_code ndr_pull_rap_PrintQueue4(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintQueue4 *r)
    3249             : {
    3250           0 :         uint32_t size_job_0 = 0;
    3251           0 :         uint32_t cntr_job_0;
    3252           0 :         TALLOC_CTX *_mem_save_job_0 = NULL;
    3253           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    3254           0 :         if (ndr_flags & NDR_SCALARS) {
    3255           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    3256           0 :                 NDR_CHECK(ndr_pull_rap_PrintQueue3(ndr, NDR_SCALARS, &r->queue));
    3257           0 :                 size_job_0 = r->queue.PrintJobCount;
    3258           0 :                 NDR_PULL_ALLOC_N(ndr, r->job, size_job_0);
    3259           0 :                 _mem_save_job_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3260           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->job, 0);
    3261           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (size_job_0); cntr_job_0++) {
    3262           0 :                         NDR_CHECK(ndr_pull_rap_PrintJobInfo2(ndr, NDR_SCALARS, &r->job[cntr_job_0]));
    3263             :                 }
    3264           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_job_0, 0);
    3265           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    3266             :         }
    3267           0 :         if (ndr_flags & NDR_BUFFERS) {
    3268           0 :                 NDR_CHECK(ndr_pull_rap_PrintQueue3(ndr, NDR_BUFFERS, &r->queue));
    3269           0 :                 size_job_0 = r->queue.PrintJobCount;
    3270           0 :                 _mem_save_job_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3271           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->job, 0);
    3272           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (size_job_0); cntr_job_0++) {
    3273           0 :                         NDR_CHECK(ndr_pull_rap_PrintJobInfo2(ndr, NDR_BUFFERS, &r->job[cntr_job_0]));
    3274             :                 }
    3275           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_job_0, 0);
    3276           0 :                 for (cntr_job_0 = 0; cntr_job_0 < (size_job_0); cntr_job_0++) {
    3277             :                 }
    3278             :         }
    3279           0 :         return NDR_ERR_SUCCESS;
    3280             : }
    3281             : 
    3282           0 : _PUBLIC_ void ndr_print_rap_PrintQueue4(struct ndr_print *ndr, const char *name, const struct rap_PrintQueue4 *r)
    3283             : {
    3284           0 :         uint32_t cntr_job_0;
    3285           0 :         ndr_print_struct(ndr, name, "rap_PrintQueue4");
    3286           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3287           0 :         ndr->depth++;
    3288           0 :         ndr_print_rap_PrintQueue3(ndr, "queue", &r->queue);
    3289           0 :         ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "job", (uint32_t)(r->queue.PrintJobCount));
    3290           0 :         ndr->depth++;
    3291           0 :         for (cntr_job_0 = 0; cntr_job_0 < (r->queue.PrintJobCount); cntr_job_0++) {
    3292           0 :                 ndr_print_rap_PrintJobInfo2(ndr, "job", &r->job[cntr_job_0]);
    3293             :         }
    3294           0 :         ndr->depth--;
    3295           0 :         ndr->depth--;
    3296             : }
    3297             : 
    3298           0 : static enum ndr_err_code ndr_push_rap_PrintQueue5(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintQueue5 *r)
    3299             : {
    3300           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    3301           0 :         if (ndr_flags & NDR_SCALARS) {
    3302           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    3303             :                 {
    3304           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3305           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3306           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrintQueueName));
    3307           0 :                         ndr->flags = _flags_save_string;
    3308             :                 }
    3309           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintQueueNameHigh));
    3310           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    3311             :         }
    3312           0 :         if (ndr_flags & NDR_BUFFERS) {
    3313             :                 {
    3314           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3315           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3316           0 :                         if (r->PrintQueueName) {
    3317           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrintQueueName));
    3318           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrintQueueName));
    3319             :                         }
    3320           0 :                         ndr->flags = _flags_save_string;
    3321             :                 }
    3322             :         }
    3323           0 :         return NDR_ERR_SUCCESS;
    3324             : }
    3325             : 
    3326           0 : static enum ndr_err_code ndr_pull_rap_PrintQueue5(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintQueue5 *r)
    3327             : {
    3328           0 :         uint16_t _ptr_PrintQueueName;
    3329           0 :         TALLOC_CTX *_mem_save_PrintQueueName_0 = NULL;
    3330           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    3331           0 :         if (ndr_flags & NDR_SCALARS) {
    3332           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    3333             :                 {
    3334           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3335           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3336           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrintQueueName));
    3337           0 :                         if (_ptr_PrintQueueName) {
    3338           0 :                                 NDR_PULL_ALLOC(ndr, r->PrintQueueName);
    3339           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrintQueueName, _ptr_PrintQueueName));
    3340             :                         } else {
    3341           0 :                                 r->PrintQueueName = NULL;
    3342             :                         }
    3343           0 :                         ndr->flags = _flags_save_string;
    3344             :                 }
    3345           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintQueueNameHigh));
    3346           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    3347             :         }
    3348           0 :         if (ndr_flags & NDR_BUFFERS) {
    3349             :                 {
    3350           0 :                         libndr_flags _flags_save_string = ndr->flags;
    3351           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3352           0 :                         if (r->PrintQueueName) {
    3353           0 :                                 uint32_t _relative_save_offset;
    3354           0 :                                 _relative_save_offset = ndr->offset;
    3355           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrintQueueName));
    3356           0 :                                 _mem_save_PrintQueueName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    3357           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrintQueueName, 0);
    3358           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrintQueueName));
    3359           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrintQueueName_0, 0);
    3360           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    3361           0 :                                         ndr->relative_highest_offset = ndr->offset;
    3362             :                                 }
    3363           0 :                                 ndr->offset = _relative_save_offset;
    3364             :                         }
    3365           0 :                         ndr->flags = _flags_save_string;
    3366             :                 }
    3367             :         }
    3368           0 :         return NDR_ERR_SUCCESS;
    3369             : }
    3370             : 
    3371           0 : _PUBLIC_ void ndr_print_rap_PrintQueue5(struct ndr_print *ndr, const char *name, const struct rap_PrintQueue5 *r)
    3372             : {
    3373           0 :         ndr_print_struct(ndr, name, "rap_PrintQueue5");
    3374           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3375           0 :         ndr->depth++;
    3376             :         {
    3377           0 :                 libndr_flags _flags_save_string = ndr->flags;
    3378           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3379           0 :                 ndr_print_ptr(ndr, "PrintQueueName", r->PrintQueueName);
    3380           0 :                 ndr->depth++;
    3381           0 :                 if (r->PrintQueueName) {
    3382           0 :                         ndr_print_string(ndr, "PrintQueueName", r->PrintQueueName);
    3383             :                 }
    3384           0 :                 ndr->depth--;
    3385           0 :                 ndr->flags = _flags_save_string;
    3386             :         }
    3387           0 :         ndr_print_uint16(ndr, "PrintQueueNameHigh", r->PrintQueueNameHigh);
    3388           0 :         ndr->depth--;
    3389             : }
    3390             : 
    3391           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_printq_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union rap_printq_info *r)
    3392             : {
    3393           0 :         uint32_t level;
    3394           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    3395           0 :         if (ndr_flags & NDR_SCALARS) {
    3396             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    3397           0 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    3398           0 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
    3399           0 :                 switch (level) {
    3400           0 :                         case 0: {
    3401           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue0(ndr, NDR_SCALARS, &r->info0));
    3402           0 :                         break; }
    3403             : 
    3404           0 :                         case 1: {
    3405           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue1(ndr, NDR_SCALARS, &r->info1));
    3406           0 :                         break; }
    3407             : 
    3408           0 :                         case 2: {
    3409           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue2(ndr, NDR_SCALARS, &r->info2));
    3410           0 :                         break; }
    3411             : 
    3412           0 :                         case 3: {
    3413           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue3(ndr, NDR_SCALARS, &r->info3));
    3414           0 :                         break; }
    3415             : 
    3416           0 :                         case 4: {
    3417           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue4(ndr, NDR_SCALARS, &r->info4));
    3418           0 :                         break; }
    3419             : 
    3420           0 :                         case 5: {
    3421           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue5(ndr, NDR_SCALARS, &r->info5));
    3422           0 :                         break; }
    3423             : 
    3424           0 :                         default:
    3425           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    3426             :                 }
    3427             :         }
    3428           0 :         if (ndr_flags & NDR_BUFFERS) {
    3429           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    3430             :                         /* We didn't get it above, and the token is not needed after this. */
    3431           0 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    3432             :                 }
    3433           0 :                 switch (level) {
    3434           0 :                         case 0:
    3435           0 :                         break;
    3436             : 
    3437           0 :                         case 1:
    3438           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue1(ndr, NDR_BUFFERS, &r->info1));
    3439           0 :                         break;
    3440             : 
    3441           0 :                         case 2:
    3442           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue2(ndr, NDR_BUFFERS, &r->info2));
    3443           0 :                         break;
    3444             : 
    3445           0 :                         case 3:
    3446           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue3(ndr, NDR_BUFFERS, &r->info3));
    3447           0 :                         break;
    3448             : 
    3449           0 :                         case 4:
    3450           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue4(ndr, NDR_BUFFERS, &r->info4));
    3451           0 :                         break;
    3452             : 
    3453           0 :                         case 5:
    3454           0 :                                 NDR_CHECK(ndr_push_rap_PrintQueue5(ndr, NDR_BUFFERS, &r->info5));
    3455           0 :                         break;
    3456             : 
    3457           0 :                         default:
    3458           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    3459             :                 }
    3460             :         }
    3461           0 :         return NDR_ERR_SUCCESS;
    3462             : }
    3463             : 
    3464           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_printq_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union rap_printq_info *r)
    3465             : {
    3466           0 :         uint32_t level;
    3467           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    3468           0 :         if (ndr_flags & NDR_SCALARS) {
    3469             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    3470           0 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    3471           0 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
    3472           0 :                 switch (level) {
    3473           0 :                         case 0: {
    3474           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue0(ndr, NDR_SCALARS, &r->info0));
    3475           0 :                         break; }
    3476             : 
    3477           0 :                         case 1: {
    3478           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue1(ndr, NDR_SCALARS, &r->info1));
    3479           0 :                         break; }
    3480             : 
    3481           0 :                         case 2: {
    3482           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue2(ndr, NDR_SCALARS, &r->info2));
    3483           0 :                         break; }
    3484             : 
    3485           0 :                         case 3: {
    3486           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue3(ndr, NDR_SCALARS, &r->info3));
    3487           0 :                         break; }
    3488             : 
    3489           0 :                         case 4: {
    3490           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue4(ndr, NDR_SCALARS, &r->info4));
    3491           0 :                         break; }
    3492             : 
    3493           0 :                         case 5: {
    3494           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue5(ndr, NDR_SCALARS, &r->info5));
    3495           0 :                         break; }
    3496             : 
    3497           0 :                         default:
    3498           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    3499             :                 }
    3500             :         }
    3501           0 :         if (ndr_flags & NDR_BUFFERS) {
    3502           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    3503             :                         /* We didn't get it above, and the token is not needed after this. */
    3504           0 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    3505             :                 }
    3506           0 :                 switch (level) {
    3507           0 :                         case 0:
    3508           0 :                         break;
    3509             : 
    3510           0 :                         case 1:
    3511           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue1(ndr, NDR_BUFFERS, &r->info1));
    3512           0 :                         break;
    3513             : 
    3514           0 :                         case 2:
    3515           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue2(ndr, NDR_BUFFERS, &r->info2));
    3516           0 :                         break;
    3517             : 
    3518           0 :                         case 3:
    3519           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue3(ndr, NDR_BUFFERS, &r->info3));
    3520           0 :                         break;
    3521             : 
    3522           0 :                         case 4:
    3523           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue4(ndr, NDR_BUFFERS, &r->info4));
    3524           0 :                         break;
    3525             : 
    3526           0 :                         case 5:
    3527           0 :                                 NDR_CHECK(ndr_pull_rap_PrintQueue5(ndr, NDR_BUFFERS, &r->info5));
    3528           0 :                         break;
    3529             : 
    3530           0 :                         default:
    3531           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    3532             :                 }
    3533             :         }
    3534           0 :         return NDR_ERR_SUCCESS;
    3535             : }
    3536             : 
    3537           0 : _PUBLIC_ void ndr_print_rap_printq_info(struct ndr_print *ndr, const char *name, const union rap_printq_info *r)
    3538             : {
    3539           0 :         uint32_t level;
    3540           0 :         level = ndr_print_steal_switch_value(ndr, r);
    3541           0 :         ndr_print_union(ndr, name, level, "rap_printq_info");
    3542           0 :         switch (level) {
    3543           0 :                 case 0:
    3544           0 :                         ndr_print_rap_PrintQueue0(ndr, "info0", &r->info0);
    3545           0 :                 break;
    3546             : 
    3547           0 :                 case 1:
    3548           0 :                         ndr_print_rap_PrintQueue1(ndr, "info1", &r->info1);
    3549           0 :                 break;
    3550             : 
    3551           0 :                 case 2:
    3552           0 :                         ndr_print_rap_PrintQueue2(ndr, "info2", &r->info2);
    3553           0 :                 break;
    3554             : 
    3555           0 :                 case 3:
    3556           0 :                         ndr_print_rap_PrintQueue3(ndr, "info3", &r->info3);
    3557           0 :                 break;
    3558             : 
    3559           0 :                 case 4:
    3560           0 :                         ndr_print_rap_PrintQueue4(ndr, "info4", &r->info4);
    3561           0 :                 break;
    3562             : 
    3563           0 :                 case 5:
    3564           0 :                         ndr_print_rap_PrintQueue5(ndr, "info5", &r->info5);
    3565           0 :                 break;
    3566             : 
    3567           0 :                 default:
    3568           0 :                         ndr_print_bad_level(ndr, name, level);
    3569             :         }
    3570           0 : }
    3571             : 
    3572           0 : static enum ndr_err_code ndr_push_rap_JobInfoParamNum(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum rap_JobInfoParamNum r)
    3573             : {
    3574           0 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
    3575           0 :         return NDR_ERR_SUCCESS;
    3576             : }
    3577             : 
    3578           0 : static enum ndr_err_code ndr_pull_rap_JobInfoParamNum(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum rap_JobInfoParamNum *r)
    3579             : {
    3580           0 :         uint16_t v;
    3581           0 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
    3582           0 :         *r = v;
    3583           0 :         return NDR_ERR_SUCCESS;
    3584             : }
    3585             : 
    3586           0 : _PUBLIC_ void ndr_print_rap_JobInfoParamNum(struct ndr_print *ndr, const char *name, enum rap_JobInfoParamNum r)
    3587             : {
    3588           0 :         const char *val = NULL;
    3589             : 
    3590           0 :         switch (r) {
    3591           0 :                 case RAP_PARAM_JOBNUM: val = "RAP_PARAM_JOBNUM"; break;
    3592           0 :                 case RAP_PARAM_USERNAME: val = "RAP_PARAM_USERNAME"; break;
    3593           0 :                 case RAP_PARAM_NOTIFYNAME: val = "RAP_PARAM_NOTIFYNAME"; break;
    3594           0 :                 case RAP_PARAM_DATATYPE: val = "RAP_PARAM_DATATYPE"; break;
    3595           0 :                 case RAP_PARAM_PARAMETERS_STRING: val = "RAP_PARAM_PARAMETERS_STRING"; break;
    3596           0 :                 case RAP_PARAM_JOBPOSITION: val = "RAP_PARAM_JOBPOSITION"; break;
    3597           0 :                 case RAP_PARAM_JOBSTATUS: val = "RAP_PARAM_JOBSTATUS"; break;
    3598           0 :                 case RAP_PARAM_JOBSTATUSSTR: val = "RAP_PARAM_JOBSTATUSSTR"; break;
    3599           0 :                 case RAP_PARAM_TIMESUBMITTED: val = "RAP_PARAM_TIMESUBMITTED"; break;
    3600           0 :                 case RAP_PARAM_JOBSIZE: val = "RAP_PARAM_JOBSIZE"; break;
    3601           0 :                 case RAP_PARAM_JOBCOMMENT: val = "RAP_PARAM_JOBCOMMENT"; break;
    3602             :         }
    3603           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    3604           0 : }
    3605             : 
    3606           0 : static enum ndr_err_code ndr_push_rap_JobInfoParam(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union rap_JobInfoParam *r)
    3607             : {
    3608           0 :         uint32_t level;
    3609           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    3610           0 :         if (ndr_flags & NDR_SCALARS) {
    3611             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    3612           0 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    3613           0 :                 NDR_CHECK(ndr_push_union_align(ndr, 4));
    3614           0 :                 switch (level) {
    3615           0 :                         case RAP_PARAM_JOBNUM: {
    3616           0 :                                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->value));
    3617           0 :                         break; }
    3618             : 
    3619           0 :                         case RAP_PARAM_USERNAME: {
    3620             :                                 {
    3621           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3622           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3623           0 :                                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
    3624           0 :                                         ndr->flags = _flags_save_string;
    3625             :                                 }
    3626           0 :                         break; }
    3627             : 
    3628           0 :                         case RAP_PARAM_NOTIFYNAME: {
    3629             :                                 {
    3630           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3631           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3632           0 :                                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
    3633           0 :                                         ndr->flags = _flags_save_string;
    3634             :                                 }
    3635           0 :                         break; }
    3636             : 
    3637           0 :                         case RAP_PARAM_DATATYPE: {
    3638             :                                 {
    3639           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3640           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3641           0 :                                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
    3642           0 :                                         ndr->flags = _flags_save_string;
    3643             :                                 }
    3644           0 :                         break; }
    3645             : 
    3646           0 :                         case RAP_PARAM_PARAMETERS_STRING: {
    3647             :                                 {
    3648           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3649           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3650           0 :                                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
    3651           0 :                                         ndr->flags = _flags_save_string;
    3652             :                                 }
    3653           0 :                         break; }
    3654             : 
    3655           0 :                         case RAP_PARAM_JOBPOSITION: {
    3656           0 :                                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->value));
    3657           0 :                         break; }
    3658             : 
    3659           0 :                         case RAP_PARAM_JOBSTATUS: {
    3660           0 :                                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->value));
    3661           0 :                         break; }
    3662             : 
    3663           0 :                         case RAP_PARAM_JOBSTATUSSTR: {
    3664             :                                 {
    3665           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3666           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3667           0 :                                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
    3668           0 :                                         ndr->flags = _flags_save_string;
    3669             :                                 }
    3670           0 :                         break; }
    3671             : 
    3672           0 :                         case RAP_PARAM_TIMESUBMITTED: {
    3673           0 :                                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->value4));
    3674           0 :                         break; }
    3675             : 
    3676           0 :                         case RAP_PARAM_JOBSIZE: {
    3677           0 :                                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->value4));
    3678           0 :                         break; }
    3679             : 
    3680           0 :                         case RAP_PARAM_JOBCOMMENT: {
    3681             :                                 {
    3682           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3683           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3684           0 :                                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
    3685           0 :                                         ndr->flags = _flags_save_string;
    3686             :                                 }
    3687           0 :                         break; }
    3688             : 
    3689           0 :                         default:
    3690           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    3691             :                 }
    3692             :         }
    3693           0 :         if (ndr_flags & NDR_BUFFERS) {
    3694           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    3695             :                         /* We didn't get it above, and the token is not needed after this. */
    3696           0 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    3697             :                 }
    3698           0 :                 switch (level) {
    3699           0 :                         case RAP_PARAM_JOBNUM:
    3700           0 :                         break;
    3701             : 
    3702           0 :                         case RAP_PARAM_USERNAME:
    3703           0 :                         break;
    3704             : 
    3705           0 :                         case RAP_PARAM_NOTIFYNAME:
    3706           0 :                         break;
    3707             : 
    3708           0 :                         case RAP_PARAM_DATATYPE:
    3709           0 :                         break;
    3710             : 
    3711           0 :                         case RAP_PARAM_PARAMETERS_STRING:
    3712           0 :                         break;
    3713             : 
    3714           0 :                         case RAP_PARAM_JOBPOSITION:
    3715           0 :                         break;
    3716             : 
    3717           0 :                         case RAP_PARAM_JOBSTATUS:
    3718           0 :                         break;
    3719             : 
    3720           0 :                         case RAP_PARAM_JOBSTATUSSTR:
    3721           0 :                         break;
    3722             : 
    3723           0 :                         case RAP_PARAM_TIMESUBMITTED:
    3724           0 :                         break;
    3725             : 
    3726           0 :                         case RAP_PARAM_JOBSIZE:
    3727           0 :                         break;
    3728             : 
    3729           0 :                         case RAP_PARAM_JOBCOMMENT:
    3730           0 :                         break;
    3731             : 
    3732           0 :                         default:
    3733           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    3734             :                 }
    3735             :         }
    3736           0 :         return NDR_ERR_SUCCESS;
    3737             : }
    3738             : 
    3739           0 : static enum ndr_err_code ndr_pull_rap_JobInfoParam(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union rap_JobInfoParam *r)
    3740             : {
    3741           0 :         uint32_t level;
    3742           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    3743           0 :         if (ndr_flags & NDR_SCALARS) {
    3744             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    3745           0 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    3746           0 :                 NDR_CHECK(ndr_pull_union_align(ndr, 4));
    3747           0 :                 switch (level) {
    3748           0 :                         case RAP_PARAM_JOBNUM: {
    3749           0 :                                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->value));
    3750           0 :                         break; }
    3751             : 
    3752           0 :                         case RAP_PARAM_USERNAME: {
    3753             :                                 {
    3754           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3755           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3756           0 :                                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
    3757           0 :                                         ndr->flags = _flags_save_string;
    3758             :                                 }
    3759           0 :                         break; }
    3760             : 
    3761           0 :                         case RAP_PARAM_NOTIFYNAME: {
    3762             :                                 {
    3763           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3764           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3765           0 :                                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
    3766           0 :                                         ndr->flags = _flags_save_string;
    3767             :                                 }
    3768           0 :                         break; }
    3769             : 
    3770           0 :                         case RAP_PARAM_DATATYPE: {
    3771             :                                 {
    3772           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3773           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3774           0 :                                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
    3775           0 :                                         ndr->flags = _flags_save_string;
    3776             :                                 }
    3777           0 :                         break; }
    3778             : 
    3779           0 :                         case RAP_PARAM_PARAMETERS_STRING: {
    3780             :                                 {
    3781           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3782           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3783           0 :                                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
    3784           0 :                                         ndr->flags = _flags_save_string;
    3785             :                                 }
    3786           0 :                         break; }
    3787             : 
    3788           0 :                         case RAP_PARAM_JOBPOSITION: {
    3789           0 :                                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->value));
    3790           0 :                         break; }
    3791             : 
    3792           0 :                         case RAP_PARAM_JOBSTATUS: {
    3793           0 :                                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->value));
    3794           0 :                         break; }
    3795             : 
    3796           0 :                         case RAP_PARAM_JOBSTATUSSTR: {
    3797             :                                 {
    3798           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3799           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3800           0 :                                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
    3801           0 :                                         ndr->flags = _flags_save_string;
    3802             :                                 }
    3803           0 :                         break; }
    3804             : 
    3805           0 :                         case RAP_PARAM_TIMESUBMITTED: {
    3806           0 :                                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->value4));
    3807           0 :                         break; }
    3808             : 
    3809           0 :                         case RAP_PARAM_JOBSIZE: {
    3810           0 :                                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->value4));
    3811           0 :                         break; }
    3812             : 
    3813           0 :                         case RAP_PARAM_JOBCOMMENT: {
    3814             :                                 {
    3815           0 :                                         libndr_flags _flags_save_string = ndr->flags;
    3816           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3817           0 :                                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
    3818           0 :                                         ndr->flags = _flags_save_string;
    3819             :                                 }
    3820           0 :                         break; }
    3821             : 
    3822           0 :                         default:
    3823           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    3824             :                 }
    3825             :         }
    3826           0 :         if (ndr_flags & NDR_BUFFERS) {
    3827           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    3828             :                         /* We didn't get it above, and the token is not needed after this. */
    3829           0 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    3830             :                 }
    3831           0 :                 switch (level) {
    3832           0 :                         case RAP_PARAM_JOBNUM:
    3833           0 :                         break;
    3834             : 
    3835           0 :                         case RAP_PARAM_USERNAME:
    3836           0 :                         break;
    3837             : 
    3838           0 :                         case RAP_PARAM_NOTIFYNAME:
    3839           0 :                         break;
    3840             : 
    3841           0 :                         case RAP_PARAM_DATATYPE:
    3842           0 :                         break;
    3843             : 
    3844           0 :                         case RAP_PARAM_PARAMETERS_STRING:
    3845           0 :                         break;
    3846             : 
    3847           0 :                         case RAP_PARAM_JOBPOSITION:
    3848           0 :                         break;
    3849             : 
    3850           0 :                         case RAP_PARAM_JOBSTATUS:
    3851           0 :                         break;
    3852             : 
    3853           0 :                         case RAP_PARAM_JOBSTATUSSTR:
    3854           0 :                         break;
    3855             : 
    3856           0 :                         case RAP_PARAM_TIMESUBMITTED:
    3857           0 :                         break;
    3858             : 
    3859           0 :                         case RAP_PARAM_JOBSIZE:
    3860           0 :                         break;
    3861             : 
    3862           0 :                         case RAP_PARAM_JOBCOMMENT:
    3863           0 :                         break;
    3864             : 
    3865           0 :                         default:
    3866           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    3867             :                 }
    3868             :         }
    3869           0 :         return NDR_ERR_SUCCESS;
    3870             : }
    3871             : 
    3872           0 : _PUBLIC_ void ndr_print_rap_JobInfoParam(struct ndr_print *ndr, const char *name, const union rap_JobInfoParam *r)
    3873             : {
    3874           0 :         uint32_t level;
    3875           0 :         level = ndr_print_steal_switch_value(ndr, r);
    3876           0 :         ndr_print_union(ndr, name, level, "rap_JobInfoParam");
    3877           0 :         switch (level) {
    3878           0 :                 case RAP_PARAM_JOBNUM:
    3879           0 :                         ndr_print_uint16(ndr, "value", r->value);
    3880           0 :                 break;
    3881             : 
    3882           0 :                 case RAP_PARAM_USERNAME:
    3883             :                         {
    3884           0 :                                 libndr_flags _flags_save_string = ndr->flags;
    3885           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3886           0 :                                 ndr_print_string(ndr, "string", r->string);
    3887           0 :                                 ndr->flags = _flags_save_string;
    3888             :                         }
    3889           0 :                 break;
    3890             : 
    3891           0 :                 case RAP_PARAM_NOTIFYNAME:
    3892             :                         {
    3893           0 :                                 libndr_flags _flags_save_string = ndr->flags;
    3894           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3895           0 :                                 ndr_print_string(ndr, "string", r->string);
    3896           0 :                                 ndr->flags = _flags_save_string;
    3897             :                         }
    3898           0 :                 break;
    3899             : 
    3900           0 :                 case RAP_PARAM_DATATYPE:
    3901             :                         {
    3902           0 :                                 libndr_flags _flags_save_string = ndr->flags;
    3903           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3904           0 :                                 ndr_print_string(ndr, "string", r->string);
    3905           0 :                                 ndr->flags = _flags_save_string;
    3906             :                         }
    3907           0 :                 break;
    3908             : 
    3909           0 :                 case RAP_PARAM_PARAMETERS_STRING:
    3910             :                         {
    3911           0 :                                 libndr_flags _flags_save_string = ndr->flags;
    3912           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3913           0 :                                 ndr_print_string(ndr, "string", r->string);
    3914           0 :                                 ndr->flags = _flags_save_string;
    3915             :                         }
    3916           0 :                 break;
    3917             : 
    3918           0 :                 case RAP_PARAM_JOBPOSITION:
    3919           0 :                         ndr_print_uint16(ndr, "value", r->value);
    3920           0 :                 break;
    3921             : 
    3922           0 :                 case RAP_PARAM_JOBSTATUS:
    3923           0 :                         ndr_print_uint16(ndr, "value", r->value);
    3924           0 :                 break;
    3925             : 
    3926           0 :                 case RAP_PARAM_JOBSTATUSSTR:
    3927             :                         {
    3928           0 :                                 libndr_flags _flags_save_string = ndr->flags;
    3929           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3930           0 :                                 ndr_print_string(ndr, "string", r->string);
    3931           0 :                                 ndr->flags = _flags_save_string;
    3932             :                         }
    3933           0 :                 break;
    3934             : 
    3935           0 :                 case RAP_PARAM_TIMESUBMITTED:
    3936           0 :                         ndr_print_uint32(ndr, "value4", r->value4);
    3937           0 :                 break;
    3938             : 
    3939           0 :                 case RAP_PARAM_JOBSIZE:
    3940           0 :                         ndr_print_uint32(ndr, "value4", r->value4);
    3941           0 :                 break;
    3942             : 
    3943           0 :                 case RAP_PARAM_JOBCOMMENT:
    3944             :                         {
    3945           0 :                                 libndr_flags _flags_save_string = ndr->flags;
    3946           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    3947           0 :                                 ndr_print_string(ndr, "string", r->string);
    3948           0 :                                 ndr->flags = _flags_save_string;
    3949             :                         }
    3950           0 :                 break;
    3951             : 
    3952           0 :                 default:
    3953           0 :                         ndr_print_bad_level(ndr, name, level);
    3954             :         }
    3955           0 : }
    3956             : 
    3957           0 : static enum ndr_err_code ndr_push_rap_PrintDest0(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintDest0 *r)
    3958             : {
    3959           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    3960           0 :         if (ndr_flags & NDR_SCALARS) {
    3961           0 :                 NDR_CHECK(ndr_push_align(ndr, 1));
    3962           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->PrintDestName, 9, sizeof(uint8_t), CH_DOS));
    3963           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 1));
    3964             :         }
    3965           0 :         if (ndr_flags & NDR_BUFFERS) {
    3966           0 :         }
    3967           0 :         return NDR_ERR_SUCCESS;
    3968             : }
    3969             : 
    3970           0 : static enum ndr_err_code ndr_pull_rap_PrintDest0(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintDest0 *r)
    3971             : {
    3972           0 :         uint32_t size_PrintDestName_0 = 0;
    3973           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    3974           0 :         if (ndr_flags & NDR_SCALARS) {
    3975           0 :                 NDR_CHECK(ndr_pull_align(ndr, 1));
    3976           0 :                 size_PrintDestName_0 = 9;
    3977           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->PrintDestName, size_PrintDestName_0, sizeof(uint8_t), CH_DOS));
    3978           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
    3979             :         }
    3980           0 :         if (ndr_flags & NDR_BUFFERS) {
    3981           0 :         }
    3982           0 :         return NDR_ERR_SUCCESS;
    3983             : }
    3984             : 
    3985           0 : _PUBLIC_ void ndr_print_rap_PrintDest0(struct ndr_print *ndr, const char *name, const struct rap_PrintDest0 *r)
    3986             : {
    3987           0 :         ndr_print_struct(ndr, name, "rap_PrintDest0");
    3988           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    3989           0 :         ndr->depth++;
    3990           0 :         ndr_print_string(ndr, "PrintDestName", r->PrintDestName);
    3991           0 :         ndr->depth--;
    3992             : }
    3993             : 
    3994           0 : static enum ndr_err_code ndr_push_rap_PrintDest1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintDest1 *r)
    3995             : {
    3996           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    3997           0 :         if (ndr_flags & NDR_SCALARS) {
    3998           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    3999           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->PrintDestName, 9, sizeof(uint8_t), CH_DOS));
    4000           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->UserName, 21, sizeof(uint8_t), CH_DOS));
    4001           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobId));
    4002           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Status));
    4003             :                 {
    4004           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4005           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4006           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->StatusStringName));
    4007           0 :                         ndr->flags = _flags_save_string;
    4008             :                 }
    4009           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintQueueNameHigh));
    4010           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Time));
    4011           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    4012             :         }
    4013           0 :         if (ndr_flags & NDR_BUFFERS) {
    4014             :                 {
    4015           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4016           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4017           0 :                         if (r->StatusStringName) {
    4018           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->StatusStringName));
    4019           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->StatusStringName));
    4020             :                         }
    4021           0 :                         ndr->flags = _flags_save_string;
    4022             :                 }
    4023             :         }
    4024           0 :         return NDR_ERR_SUCCESS;
    4025             : }
    4026             : 
    4027           0 : static enum ndr_err_code ndr_pull_rap_PrintDest1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintDest1 *r)
    4028             : {
    4029           0 :         uint32_t size_PrintDestName_0 = 0;
    4030           0 :         uint32_t size_UserName_0 = 0;
    4031           0 :         uint16_t _ptr_StatusStringName;
    4032           0 :         TALLOC_CTX *_mem_save_StatusStringName_0 = NULL;
    4033           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    4034           0 :         if (ndr_flags & NDR_SCALARS) {
    4035           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    4036           0 :                 size_PrintDestName_0 = 9;
    4037           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->PrintDestName, size_PrintDestName_0, sizeof(uint8_t), CH_DOS));
    4038           0 :                 size_UserName_0 = 21;
    4039           0 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->UserName, size_UserName_0, sizeof(uint8_t), CH_DOS));
    4040           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobId));
    4041           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Status));
    4042             :                 {
    4043           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4044           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4045           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_StatusStringName));
    4046           0 :                         if (_ptr_StatusStringName) {
    4047           0 :                                 NDR_PULL_ALLOC(ndr, r->StatusStringName);
    4048           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->StatusStringName, _ptr_StatusStringName));
    4049             :                         } else {
    4050           0 :                                 r->StatusStringName = NULL;
    4051             :                         }
    4052           0 :                         ndr->flags = _flags_save_string;
    4053             :                 }
    4054           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintQueueNameHigh));
    4055           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Time));
    4056           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    4057             :         }
    4058           0 :         if (ndr_flags & NDR_BUFFERS) {
    4059             :                 {
    4060           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4061           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4062           0 :                         if (r->StatusStringName) {
    4063           0 :                                 uint32_t _relative_save_offset;
    4064           0 :                                 _relative_save_offset = ndr->offset;
    4065           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->StatusStringName));
    4066           0 :                                 _mem_save_StatusStringName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4067           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->StatusStringName, 0);
    4068           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->StatusStringName));
    4069           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_StatusStringName_0, 0);
    4070           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4071           0 :                                         ndr->relative_highest_offset = ndr->offset;
    4072             :                                 }
    4073           0 :                                 ndr->offset = _relative_save_offset;
    4074             :                         }
    4075           0 :                         ndr->flags = _flags_save_string;
    4076             :                 }
    4077             :         }
    4078           0 :         return NDR_ERR_SUCCESS;
    4079             : }
    4080             : 
    4081           0 : _PUBLIC_ void ndr_print_rap_PrintDest1(struct ndr_print *ndr, const char *name, const struct rap_PrintDest1 *r)
    4082             : {
    4083           0 :         ndr_print_struct(ndr, name, "rap_PrintDest1");
    4084           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4085           0 :         ndr->depth++;
    4086           0 :         ndr_print_string(ndr, "PrintDestName", r->PrintDestName);
    4087           0 :         ndr_print_string(ndr, "UserName", r->UserName);
    4088           0 :         ndr_print_uint16(ndr, "JobId", r->JobId);
    4089           0 :         ndr_print_uint16(ndr, "Status", r->Status);
    4090             :         {
    4091           0 :                 libndr_flags _flags_save_string = ndr->flags;
    4092           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4093           0 :                 ndr_print_ptr(ndr, "StatusStringName", r->StatusStringName);
    4094           0 :                 ndr->depth++;
    4095           0 :                 if (r->StatusStringName) {
    4096           0 :                         ndr_print_string(ndr, "StatusStringName", r->StatusStringName);
    4097             :                 }
    4098           0 :                 ndr->depth--;
    4099           0 :                 ndr->flags = _flags_save_string;
    4100             :         }
    4101           0 :         ndr_print_uint16(ndr, "PrintQueueNameHigh", r->PrintQueueNameHigh);
    4102           0 :         ndr_print_uint16(ndr, "Time", r->Time);
    4103           0 :         ndr->depth--;
    4104             : }
    4105             : 
    4106           0 : static enum ndr_err_code ndr_push_rap_PrintDest2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintDest2 *r)
    4107             : {
    4108           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    4109           0 :         if (ndr_flags & NDR_SCALARS) {
    4110           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    4111             :                 {
    4112           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4113           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4114           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrinterName));
    4115           0 :                         ndr->flags = _flags_save_string;
    4116             :                 }
    4117           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrinterNameHigh));
    4118           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    4119             :         }
    4120           0 :         if (ndr_flags & NDR_BUFFERS) {
    4121             :                 {
    4122           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4123           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4124           0 :                         if (r->PrinterName) {
    4125           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrinterName));
    4126           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrinterName));
    4127             :                         }
    4128           0 :                         ndr->flags = _flags_save_string;
    4129             :                 }
    4130             :         }
    4131           0 :         return NDR_ERR_SUCCESS;
    4132             : }
    4133             : 
    4134           0 : static enum ndr_err_code ndr_pull_rap_PrintDest2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintDest2 *r)
    4135             : {
    4136           0 :         uint16_t _ptr_PrinterName;
    4137           0 :         TALLOC_CTX *_mem_save_PrinterName_0 = NULL;
    4138           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    4139           0 :         if (ndr_flags & NDR_SCALARS) {
    4140           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    4141             :                 {
    4142           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4143           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4144           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrinterName));
    4145           0 :                         if (_ptr_PrinterName) {
    4146           0 :                                 NDR_PULL_ALLOC(ndr, r->PrinterName);
    4147           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrinterName, _ptr_PrinterName));
    4148             :                         } else {
    4149           0 :                                 r->PrinterName = NULL;
    4150             :                         }
    4151           0 :                         ndr->flags = _flags_save_string;
    4152             :                 }
    4153           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrinterNameHigh));
    4154           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    4155             :         }
    4156           0 :         if (ndr_flags & NDR_BUFFERS) {
    4157             :                 {
    4158           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4159           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4160           0 :                         if (r->PrinterName) {
    4161           0 :                                 uint32_t _relative_save_offset;
    4162           0 :                                 _relative_save_offset = ndr->offset;
    4163           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrinterName));
    4164           0 :                                 _mem_save_PrinterName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4165           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrinterName, 0);
    4166           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrinterName));
    4167           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrinterName_0, 0);
    4168           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4169           0 :                                         ndr->relative_highest_offset = ndr->offset;
    4170             :                                 }
    4171           0 :                                 ndr->offset = _relative_save_offset;
    4172             :                         }
    4173           0 :                         ndr->flags = _flags_save_string;
    4174             :                 }
    4175             :         }
    4176           0 :         return NDR_ERR_SUCCESS;
    4177             : }
    4178             : 
    4179           0 : _PUBLIC_ void ndr_print_rap_PrintDest2(struct ndr_print *ndr, const char *name, const struct rap_PrintDest2 *r)
    4180             : {
    4181           0 :         ndr_print_struct(ndr, name, "rap_PrintDest2");
    4182           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4183           0 :         ndr->depth++;
    4184             :         {
    4185           0 :                 libndr_flags _flags_save_string = ndr->flags;
    4186           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4187           0 :                 ndr_print_ptr(ndr, "PrinterName", r->PrinterName);
    4188           0 :                 ndr->depth++;
    4189           0 :                 if (r->PrinterName) {
    4190           0 :                         ndr_print_string(ndr, "PrinterName", r->PrinterName);
    4191             :                 }
    4192           0 :                 ndr->depth--;
    4193           0 :                 ndr->flags = _flags_save_string;
    4194             :         }
    4195           0 :         ndr_print_uint16(ndr, "PrinterNameHigh", r->PrinterNameHigh);
    4196           0 :         ndr->depth--;
    4197             : }
    4198             : 
    4199           0 : static enum ndr_err_code ndr_push_rap_PrintDest3(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_PrintDest3 *r)
    4200             : {
    4201           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    4202           0 :         if (ndr_flags & NDR_SCALARS) {
    4203           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    4204             :                 {
    4205           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4206           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4207           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->PrinterName));
    4208           0 :                         ndr->flags = _flags_save_string;
    4209             :                 }
    4210           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrinterNameHigh));
    4211             :                 {
    4212           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4213           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4214           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->UserName));
    4215           0 :                         ndr->flags = _flags_save_string;
    4216             :                 }
    4217           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UserNameHigh));
    4218             :                 {
    4219           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4220           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4221           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->LogAddr));
    4222           0 :                         ndr->flags = _flags_save_string;
    4223             :                 }
    4224           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->LogAddrHigh));
    4225           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->JobId));
    4226           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Status));
    4227             :                 {
    4228           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4229           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4230           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->StatusStringName));
    4231           0 :                         ndr->flags = _flags_save_string;
    4232             :                 }
    4233           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->PrintQueueNameHigh));
    4234             :                 {
    4235           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4236           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4237           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->Comment));
    4238           0 :                         ndr->flags = _flags_save_string;
    4239             :                 }
    4240           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CommentHigh));
    4241             :                 {
    4242           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4243           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4244           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->Drivers));
    4245           0 :                         ndr->flags = _flags_save_string;
    4246             :                 }
    4247           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->DriversHigh));
    4248           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Time));
    4249           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Pad1));
    4250           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    4251             :         }
    4252           0 :         if (ndr_flags & NDR_BUFFERS) {
    4253             :                 {
    4254           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4255           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4256           0 :                         if (r->PrinterName) {
    4257           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->PrinterName));
    4258           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->PrinterName));
    4259             :                         }
    4260           0 :                         ndr->flags = _flags_save_string;
    4261             :                 }
    4262             :                 {
    4263           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4264           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4265           0 :                         if (r->UserName) {
    4266           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->UserName));
    4267           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->UserName));
    4268             :                         }
    4269           0 :                         ndr->flags = _flags_save_string;
    4270             :                 }
    4271             :                 {
    4272           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4273           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4274           0 :                         if (r->LogAddr) {
    4275           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->LogAddr));
    4276           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->LogAddr));
    4277             :                         }
    4278           0 :                         ndr->flags = _flags_save_string;
    4279             :                 }
    4280             :                 {
    4281           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4282           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4283           0 :                         if (r->StatusStringName) {
    4284           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->StatusStringName));
    4285           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->StatusStringName));
    4286             :                         }
    4287           0 :                         ndr->flags = _flags_save_string;
    4288             :                 }
    4289             :                 {
    4290           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4291           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4292           0 :                         if (r->Comment) {
    4293           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->Comment));
    4294           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Comment));
    4295             :                         }
    4296           0 :                         ndr->flags = _flags_save_string;
    4297             :                 }
    4298             :                 {
    4299           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4300           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4301           0 :                         if (r->Drivers) {
    4302           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->Drivers));
    4303           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Drivers));
    4304             :                         }
    4305           0 :                         ndr->flags = _flags_save_string;
    4306             :                 }
    4307             :         }
    4308           0 :         return NDR_ERR_SUCCESS;
    4309             : }
    4310             : 
    4311           0 : static enum ndr_err_code ndr_pull_rap_PrintDest3(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_PrintDest3 *r)
    4312             : {
    4313           0 :         uint16_t _ptr_PrinterName;
    4314           0 :         TALLOC_CTX *_mem_save_PrinterName_0 = NULL;
    4315           0 :         uint16_t _ptr_UserName;
    4316           0 :         TALLOC_CTX *_mem_save_UserName_0 = NULL;
    4317           0 :         uint16_t _ptr_LogAddr;
    4318           0 :         TALLOC_CTX *_mem_save_LogAddr_0 = NULL;
    4319           0 :         uint16_t _ptr_StatusStringName;
    4320           0 :         TALLOC_CTX *_mem_save_StatusStringName_0 = NULL;
    4321           0 :         uint16_t _ptr_Comment;
    4322           0 :         TALLOC_CTX *_mem_save_Comment_0 = NULL;
    4323           0 :         uint16_t _ptr_Drivers;
    4324           0 :         TALLOC_CTX *_mem_save_Drivers_0 = NULL;
    4325           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    4326           0 :         if (ndr_flags & NDR_SCALARS) {
    4327           0 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    4328             :                 {
    4329           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4330           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4331           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_PrinterName));
    4332           0 :                         if (_ptr_PrinterName) {
    4333           0 :                                 NDR_PULL_ALLOC(ndr, r->PrinterName);
    4334           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->PrinterName, _ptr_PrinterName));
    4335             :                         } else {
    4336           0 :                                 r->PrinterName = NULL;
    4337             :                         }
    4338           0 :                         ndr->flags = _flags_save_string;
    4339             :                 }
    4340           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrinterNameHigh));
    4341             :                 {
    4342           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4343           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4344           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_UserName));
    4345           0 :                         if (_ptr_UserName) {
    4346           0 :                                 NDR_PULL_ALLOC(ndr, r->UserName);
    4347           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->UserName, _ptr_UserName));
    4348             :                         } else {
    4349           0 :                                 r->UserName = NULL;
    4350             :                         }
    4351           0 :                         ndr->flags = _flags_save_string;
    4352             :                 }
    4353           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UserNameHigh));
    4354             :                 {
    4355           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4356           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4357           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_LogAddr));
    4358           0 :                         if (_ptr_LogAddr) {
    4359           0 :                                 NDR_PULL_ALLOC(ndr, r->LogAddr);
    4360           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->LogAddr, _ptr_LogAddr));
    4361             :                         } else {
    4362           0 :                                 r->LogAddr = NULL;
    4363             :                         }
    4364           0 :                         ndr->flags = _flags_save_string;
    4365             :                 }
    4366           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->LogAddrHigh));
    4367           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->JobId));
    4368           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Status));
    4369             :                 {
    4370           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4371           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4372           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_StatusStringName));
    4373           0 :                         if (_ptr_StatusStringName) {
    4374           0 :                                 NDR_PULL_ALLOC(ndr, r->StatusStringName);
    4375           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->StatusStringName, _ptr_StatusStringName));
    4376             :                         } else {
    4377           0 :                                 r->StatusStringName = NULL;
    4378             :                         }
    4379           0 :                         ndr->flags = _flags_save_string;
    4380             :                 }
    4381           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->PrintQueueNameHigh));
    4382             :                 {
    4383           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4384           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4385           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_Comment));
    4386           0 :                         if (_ptr_Comment) {
    4387           0 :                                 NDR_PULL_ALLOC(ndr, r->Comment);
    4388           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->Comment, _ptr_Comment));
    4389             :                         } else {
    4390           0 :                                 r->Comment = NULL;
    4391             :                         }
    4392           0 :                         ndr->flags = _flags_save_string;
    4393             :                 }
    4394           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CommentHigh));
    4395             :                 {
    4396           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4397           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4398           0 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_Drivers));
    4399           0 :                         if (_ptr_Drivers) {
    4400           0 :                                 NDR_PULL_ALLOC(ndr, r->Drivers);
    4401           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->Drivers, _ptr_Drivers));
    4402             :                         } else {
    4403           0 :                                 r->Drivers = NULL;
    4404             :                         }
    4405           0 :                         ndr->flags = _flags_save_string;
    4406             :                 }
    4407           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->DriversHigh));
    4408           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Time));
    4409           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Pad1));
    4410           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    4411             :         }
    4412           0 :         if (ndr_flags & NDR_BUFFERS) {
    4413             :                 {
    4414           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4415           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4416           0 :                         if (r->PrinterName) {
    4417           0 :                                 uint32_t _relative_save_offset;
    4418           0 :                                 _relative_save_offset = ndr->offset;
    4419           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->PrinterName));
    4420           0 :                                 _mem_save_PrinterName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4421           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->PrinterName, 0);
    4422           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->PrinterName));
    4423           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_PrinterName_0, 0);
    4424           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4425           0 :                                         ndr->relative_highest_offset = ndr->offset;
    4426             :                                 }
    4427           0 :                                 ndr->offset = _relative_save_offset;
    4428             :                         }
    4429           0 :                         ndr->flags = _flags_save_string;
    4430             :                 }
    4431             :                 {
    4432           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4433           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4434           0 :                         if (r->UserName) {
    4435           0 :                                 uint32_t _relative_save_offset;
    4436           0 :                                 _relative_save_offset = ndr->offset;
    4437           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->UserName));
    4438           0 :                                 _mem_save_UserName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4439           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->UserName, 0);
    4440           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->UserName));
    4441           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_UserName_0, 0);
    4442           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4443           0 :                                         ndr->relative_highest_offset = ndr->offset;
    4444             :                                 }
    4445           0 :                                 ndr->offset = _relative_save_offset;
    4446             :                         }
    4447           0 :                         ndr->flags = _flags_save_string;
    4448             :                 }
    4449             :                 {
    4450           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4451           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4452           0 :                         if (r->LogAddr) {
    4453           0 :                                 uint32_t _relative_save_offset;
    4454           0 :                                 _relative_save_offset = ndr->offset;
    4455           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->LogAddr));
    4456           0 :                                 _mem_save_LogAddr_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4457           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->LogAddr, 0);
    4458           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->LogAddr));
    4459           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_LogAddr_0, 0);
    4460           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4461           0 :                                         ndr->relative_highest_offset = ndr->offset;
    4462             :                                 }
    4463           0 :                                 ndr->offset = _relative_save_offset;
    4464             :                         }
    4465           0 :                         ndr->flags = _flags_save_string;
    4466             :                 }
    4467             :                 {
    4468           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4469           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4470           0 :                         if (r->StatusStringName) {
    4471           0 :                                 uint32_t _relative_save_offset;
    4472           0 :                                 _relative_save_offset = ndr->offset;
    4473           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->StatusStringName));
    4474           0 :                                 _mem_save_StatusStringName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4475           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->StatusStringName, 0);
    4476           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->StatusStringName));
    4477           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_StatusStringName_0, 0);
    4478           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4479           0 :                                         ndr->relative_highest_offset = ndr->offset;
    4480             :                                 }
    4481           0 :                                 ndr->offset = _relative_save_offset;
    4482             :                         }
    4483           0 :                         ndr->flags = _flags_save_string;
    4484             :                 }
    4485             :                 {
    4486           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4487           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4488           0 :                         if (r->Comment) {
    4489           0 :                                 uint32_t _relative_save_offset;
    4490           0 :                                 _relative_save_offset = ndr->offset;
    4491           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->Comment));
    4492           0 :                                 _mem_save_Comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4493           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->Comment, 0);
    4494           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Comment));
    4495           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Comment_0, 0);
    4496           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4497           0 :                                         ndr->relative_highest_offset = ndr->offset;
    4498             :                                 }
    4499           0 :                                 ndr->offset = _relative_save_offset;
    4500             :                         }
    4501           0 :                         ndr->flags = _flags_save_string;
    4502             :                 }
    4503             :                 {
    4504           0 :                         libndr_flags _flags_save_string = ndr->flags;
    4505           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4506           0 :                         if (r->Drivers) {
    4507           0 :                                 uint32_t _relative_save_offset;
    4508           0 :                                 _relative_save_offset = ndr->offset;
    4509           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->Drivers));
    4510           0 :                                 _mem_save_Drivers_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4511           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->Drivers, 0);
    4512           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Drivers));
    4513           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Drivers_0, 0);
    4514           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4515           0 :                                         ndr->relative_highest_offset = ndr->offset;
    4516             :                                 }
    4517           0 :                                 ndr->offset = _relative_save_offset;
    4518             :                         }
    4519           0 :                         ndr->flags = _flags_save_string;
    4520             :                 }
    4521             :         }
    4522           0 :         return NDR_ERR_SUCCESS;
    4523             : }
    4524             : 
    4525           0 : _PUBLIC_ void ndr_print_rap_PrintDest3(struct ndr_print *ndr, const char *name, const struct rap_PrintDest3 *r)
    4526             : {
    4527           0 :         ndr_print_struct(ndr, name, "rap_PrintDest3");
    4528           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4529           0 :         ndr->depth++;
    4530             :         {
    4531           0 :                 libndr_flags _flags_save_string = ndr->flags;
    4532           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4533           0 :                 ndr_print_ptr(ndr, "PrinterName", r->PrinterName);
    4534           0 :                 ndr->depth++;
    4535           0 :                 if (r->PrinterName) {
    4536           0 :                         ndr_print_string(ndr, "PrinterName", r->PrinterName);
    4537             :                 }
    4538           0 :                 ndr->depth--;
    4539           0 :                 ndr->flags = _flags_save_string;
    4540             :         }
    4541           0 :         ndr_print_uint16(ndr, "PrinterNameHigh", r->PrinterNameHigh);
    4542             :         {
    4543           0 :                 libndr_flags _flags_save_string = ndr->flags;
    4544           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4545           0 :                 ndr_print_ptr(ndr, "UserName", r->UserName);
    4546           0 :                 ndr->depth++;
    4547           0 :                 if (r->UserName) {
    4548           0 :                         ndr_print_string(ndr, "UserName", r->UserName);
    4549             :                 }
    4550           0 :                 ndr->depth--;
    4551           0 :                 ndr->flags = _flags_save_string;
    4552             :         }
    4553           0 :         ndr_print_uint16(ndr, "UserNameHigh", r->UserNameHigh);
    4554             :         {
    4555           0 :                 libndr_flags _flags_save_string = ndr->flags;
    4556           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4557           0 :                 ndr_print_ptr(ndr, "LogAddr", r->LogAddr);
    4558           0 :                 ndr->depth++;
    4559           0 :                 if (r->LogAddr) {
    4560           0 :                         ndr_print_string(ndr, "LogAddr", r->LogAddr);
    4561             :                 }
    4562           0 :                 ndr->depth--;
    4563           0 :                 ndr->flags = _flags_save_string;
    4564             :         }
    4565           0 :         ndr_print_uint16(ndr, "LogAddrHigh", r->LogAddrHigh);
    4566           0 :         ndr_print_uint16(ndr, "JobId", r->JobId);
    4567           0 :         ndr_print_uint16(ndr, "Status", r->Status);
    4568             :         {
    4569           0 :                 libndr_flags _flags_save_string = ndr->flags;
    4570           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4571           0 :                 ndr_print_ptr(ndr, "StatusStringName", r->StatusStringName);
    4572           0 :                 ndr->depth++;
    4573           0 :                 if (r->StatusStringName) {
    4574           0 :                         ndr_print_string(ndr, "StatusStringName", r->StatusStringName);
    4575             :                 }
    4576           0 :                 ndr->depth--;
    4577           0 :                 ndr->flags = _flags_save_string;
    4578             :         }
    4579           0 :         ndr_print_uint16(ndr, "PrintQueueNameHigh", r->PrintQueueNameHigh);
    4580             :         {
    4581           0 :                 libndr_flags _flags_save_string = ndr->flags;
    4582           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4583           0 :                 ndr_print_ptr(ndr, "Comment", r->Comment);
    4584           0 :                 ndr->depth++;
    4585           0 :                 if (r->Comment) {
    4586           0 :                         ndr_print_string(ndr, "Comment", r->Comment);
    4587             :                 }
    4588           0 :                 ndr->depth--;
    4589           0 :                 ndr->flags = _flags_save_string;
    4590             :         }
    4591           0 :         ndr_print_uint16(ndr, "CommentHigh", r->CommentHigh);
    4592             :         {
    4593           0 :                 libndr_flags _flags_save_string = ndr->flags;
    4594           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4595           0 :                 ndr_print_ptr(ndr, "Drivers", r->Drivers);
    4596           0 :                 ndr->depth++;
    4597           0 :                 if (r->Drivers) {
    4598           0 :                         ndr_print_string(ndr, "Drivers", r->Drivers);
    4599             :                 }
    4600           0 :                 ndr->depth--;
    4601           0 :                 ndr->flags = _flags_save_string;
    4602             :         }
    4603           0 :         ndr_print_uint16(ndr, "DriversHigh", r->DriversHigh);
    4604           0 :         ndr_print_uint16(ndr, "Time", r->Time);
    4605           0 :         ndr_print_uint16(ndr, "Pad1", r->Pad1);
    4606           0 :         ndr->depth--;
    4607             : }
    4608             : 
    4609           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_printdest_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union rap_printdest_info *r)
    4610             : {
    4611           0 :         uint32_t level;
    4612           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    4613           0 :         if (ndr_flags & NDR_SCALARS) {
    4614             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    4615           0 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    4616           0 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
    4617           0 :                 switch (level) {
    4618           0 :                         case 0: {
    4619           0 :                                 NDR_CHECK(ndr_push_rap_PrintDest0(ndr, NDR_SCALARS, &r->info0));
    4620           0 :                         break; }
    4621             : 
    4622           0 :                         case 1: {
    4623           0 :                                 NDR_CHECK(ndr_push_rap_PrintDest1(ndr, NDR_SCALARS, &r->info1));
    4624           0 :                         break; }
    4625             : 
    4626           0 :                         case 2: {
    4627           0 :                                 NDR_CHECK(ndr_push_rap_PrintDest2(ndr, NDR_SCALARS, &r->info2));
    4628           0 :                         break; }
    4629             : 
    4630           0 :                         case 3: {
    4631           0 :                                 NDR_CHECK(ndr_push_rap_PrintDest3(ndr, NDR_SCALARS, &r->info3));
    4632           0 :                         break; }
    4633             : 
    4634           0 :                         default:
    4635           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    4636             :                 }
    4637             :         }
    4638           0 :         if (ndr_flags & NDR_BUFFERS) {
    4639           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    4640             :                         /* We didn't get it above, and the token is not needed after this. */
    4641           0 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    4642             :                 }
    4643           0 :                 switch (level) {
    4644           0 :                         case 0:
    4645           0 :                         break;
    4646             : 
    4647           0 :                         case 1:
    4648           0 :                                 NDR_CHECK(ndr_push_rap_PrintDest1(ndr, NDR_BUFFERS, &r->info1));
    4649           0 :                         break;
    4650             : 
    4651           0 :                         case 2:
    4652           0 :                                 NDR_CHECK(ndr_push_rap_PrintDest2(ndr, NDR_BUFFERS, &r->info2));
    4653           0 :                         break;
    4654             : 
    4655           0 :                         case 3:
    4656           0 :                                 NDR_CHECK(ndr_push_rap_PrintDest3(ndr, NDR_BUFFERS, &r->info3));
    4657           0 :                         break;
    4658             : 
    4659           0 :                         default:
    4660           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    4661             :                 }
    4662             :         }
    4663           0 :         return NDR_ERR_SUCCESS;
    4664             : }
    4665             : 
    4666           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_printdest_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union rap_printdest_info *r)
    4667             : {
    4668           0 :         uint32_t level;
    4669           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    4670           0 :         if (ndr_flags & NDR_SCALARS) {
    4671             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    4672           0 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    4673           0 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
    4674           0 :                 switch (level) {
    4675           0 :                         case 0: {
    4676           0 :                                 NDR_CHECK(ndr_pull_rap_PrintDest0(ndr, NDR_SCALARS, &r->info0));
    4677           0 :                         break; }
    4678             : 
    4679           0 :                         case 1: {
    4680           0 :                                 NDR_CHECK(ndr_pull_rap_PrintDest1(ndr, NDR_SCALARS, &r->info1));
    4681           0 :                         break; }
    4682             : 
    4683           0 :                         case 2: {
    4684           0 :                                 NDR_CHECK(ndr_pull_rap_PrintDest2(ndr, NDR_SCALARS, &r->info2));
    4685           0 :                         break; }
    4686             : 
    4687           0 :                         case 3: {
    4688           0 :                                 NDR_CHECK(ndr_pull_rap_PrintDest3(ndr, NDR_SCALARS, &r->info3));
    4689           0 :                         break; }
    4690             : 
    4691           0 :                         default:
    4692           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    4693             :                 }
    4694             :         }
    4695           0 :         if (ndr_flags & NDR_BUFFERS) {
    4696           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    4697             :                         /* We didn't get it above, and the token is not needed after this. */
    4698           0 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    4699             :                 }
    4700           0 :                 switch (level) {
    4701           0 :                         case 0:
    4702           0 :                         break;
    4703             : 
    4704           0 :                         case 1:
    4705           0 :                                 NDR_CHECK(ndr_pull_rap_PrintDest1(ndr, NDR_BUFFERS, &r->info1));
    4706           0 :                         break;
    4707             : 
    4708           0 :                         case 2:
    4709           0 :                                 NDR_CHECK(ndr_pull_rap_PrintDest2(ndr, NDR_BUFFERS, &r->info2));
    4710           0 :                         break;
    4711             : 
    4712           0 :                         case 3:
    4713           0 :                                 NDR_CHECK(ndr_pull_rap_PrintDest3(ndr, NDR_BUFFERS, &r->info3));
    4714           0 :                         break;
    4715             : 
    4716           0 :                         default:
    4717           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    4718             :                 }
    4719             :         }
    4720           0 :         return NDR_ERR_SUCCESS;
    4721             : }
    4722             : 
    4723           0 : _PUBLIC_ void ndr_print_rap_printdest_info(struct ndr_print *ndr, const char *name, const union rap_printdest_info *r)
    4724             : {
    4725           0 :         uint32_t level;
    4726           0 :         level = ndr_print_steal_switch_value(ndr, r);
    4727           0 :         ndr_print_union(ndr, name, level, "rap_printdest_info");
    4728           0 :         switch (level) {
    4729           0 :                 case 0:
    4730           0 :                         ndr_print_rap_PrintDest0(ndr, "info0", &r->info0);
    4731           0 :                 break;
    4732             : 
    4733           0 :                 case 1:
    4734           0 :                         ndr_print_rap_PrintDest1(ndr, "info1", &r->info1);
    4735           0 :                 break;
    4736             : 
    4737           0 :                 case 2:
    4738           0 :                         ndr_print_rap_PrintDest2(ndr, "info2", &r->info2);
    4739           0 :                 break;
    4740             : 
    4741           0 :                 case 3:
    4742           0 :                         ndr_print_rap_PrintDest3(ndr, "info3", &r->info3);
    4743           0 :                 break;
    4744             : 
    4745           0 :                 default:
    4746           0 :                         ndr_print_bad_level(ndr, name, level);
    4747             :         }
    4748           0 : }
    4749             : 
    4750           0 : static enum ndr_err_code ndr_push_rap_NetUserInfo0(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_NetUserInfo0 *r)
    4751             : {
    4752           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    4753           0 :         if (ndr_flags & NDR_SCALARS) {
    4754           0 :                 NDR_CHECK(ndr_push_align(ndr, 1));
    4755           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, 21, sizeof(uint8_t), CH_DOS));
    4756           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 1));
    4757             :         }
    4758           0 :         if (ndr_flags & NDR_BUFFERS) {
    4759           0 :         }
    4760           0 :         return NDR_ERR_SUCCESS;
    4761             : }
    4762             : 
    4763           4 : static enum ndr_err_code ndr_pull_rap_NetUserInfo0(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_NetUserInfo0 *r)
    4764             : {
    4765           4 :         uint32_t size_Name_0 = 0;
    4766           4 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    4767           4 :         if (ndr_flags & NDR_SCALARS) {
    4768           4 :                 NDR_CHECK(ndr_pull_align(ndr, 1));
    4769           4 :                 size_Name_0 = 21;
    4770           4 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, size_Name_0, sizeof(uint8_t), CH_DOS));
    4771           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
    4772             :         }
    4773           4 :         if (ndr_flags & NDR_BUFFERS) {
    4774           0 :         }
    4775           4 :         return NDR_ERR_SUCCESS;
    4776             : }
    4777             : 
    4778           0 : _PUBLIC_ void ndr_print_rap_NetUserInfo0(struct ndr_print *ndr, const char *name, const struct rap_NetUserInfo0 *r)
    4779             : {
    4780           0 :         ndr_print_struct(ndr, name, "rap_NetUserInfo0");
    4781           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    4782           0 :         ndr->depth++;
    4783           0 :         ndr_print_string(ndr, "Name", r->Name);
    4784           0 :         ndr->depth--;
    4785             : }
    4786             : 
    4787           8 : _PUBLIC_ enum ndr_err_code ndr_push_rap_UserPriv(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum rap_UserPriv r)
    4788             : {
    4789           8 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
    4790           8 :         return NDR_ERR_SUCCESS;
    4791             : }
    4792             : 
    4793          12 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_UserPriv(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum rap_UserPriv *r)
    4794             : {
    4795           0 :         uint16_t v;
    4796          12 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
    4797          12 :         *r = v;
    4798          12 :         return NDR_ERR_SUCCESS;
    4799             : }
    4800             : 
    4801           0 : _PUBLIC_ void ndr_print_rap_UserPriv(struct ndr_print *ndr, const char *name, enum rap_UserPriv r)
    4802             : {
    4803           0 :         const char *val = NULL;
    4804             : 
    4805           0 :         switch (r) {
    4806           0 :                 case USER_PRIV_GUEST: val = "USER_PRIV_GUEST"; break;
    4807           0 :                 case USER_PRIV_USER: val = "USER_PRIV_USER"; break;
    4808           0 :                 case USER_PRIV_ADMIN: val = "USER_PRIV_ADMIN"; break;
    4809             :         }
    4810           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    4811           0 : }
    4812             : 
    4813          16 : static enum ndr_err_code ndr_push_rap_NetUserInfo1(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_NetUserInfo1 *r)
    4814             : {
    4815          16 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    4816          16 :         if (ndr_flags & NDR_SCALARS) {
    4817           8 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    4818           8 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, 21, sizeof(uint8_t), CH_DOS));
    4819           8 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Pad));
    4820           8 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->Password, 16));
    4821           8 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->PasswordAge));
    4822           8 :                 NDR_CHECK(ndr_push_rap_UserPriv(ndr, NDR_SCALARS, r->Priv));
    4823             :                 {
    4824           8 :                         libndr_flags _flags_save_string = ndr->flags;
    4825           8 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4826           8 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->HomeDir));
    4827           8 :                         ndr->flags = _flags_save_string;
    4828             :                 }
    4829           8 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->HomeDirHigh));
    4830             :                 {
    4831           8 :                         libndr_flags _flags_save_string = ndr->flags;
    4832           8 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4833           8 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->Comment));
    4834           8 :                         ndr->flags = _flags_save_string;
    4835             :                 }
    4836           8 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CommentHigh));
    4837           8 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Flags));
    4838             :                 {
    4839           8 :                         libndr_flags _flags_save_string = ndr->flags;
    4840           8 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4841           8 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->ScriptPath));
    4842           8 :                         ndr->flags = _flags_save_string;
    4843             :                 }
    4844           8 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->ScriptPathHigh));
    4845           8 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    4846             :         }
    4847          16 :         if (ndr_flags & NDR_BUFFERS) {
    4848             :                 {
    4849           8 :                         libndr_flags _flags_save_string = ndr->flags;
    4850           8 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4851           8 :                         if (r->HomeDir) {
    4852           4 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->HomeDir));
    4853           4 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->HomeDir));
    4854             :                         }
    4855           8 :                         ndr->flags = _flags_save_string;
    4856             :                 }
    4857             :                 {
    4858           8 :                         libndr_flags _flags_save_string = ndr->flags;
    4859           8 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4860           8 :                         if (r->Comment) {
    4861           4 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->Comment));
    4862           4 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Comment));
    4863             :                         }
    4864           8 :                         ndr->flags = _flags_save_string;
    4865             :                 }
    4866             :                 {
    4867           8 :                         libndr_flags _flags_save_string = ndr->flags;
    4868           8 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4869           8 :                         if (r->ScriptPath) {
    4870           4 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->ScriptPath));
    4871           4 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->ScriptPath));
    4872             :                         }
    4873           8 :                         ndr->flags = _flags_save_string;
    4874             :                 }
    4875             :         }
    4876          16 :         return NDR_ERR_SUCCESS;
    4877             : }
    4878             : 
    4879           8 : static enum ndr_err_code ndr_pull_rap_NetUserInfo1(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_NetUserInfo1 *r)
    4880             : {
    4881           8 :         uint32_t size_Name_0 = 0;
    4882           8 :         uint32_t size_Password_0 = 0;
    4883           0 :         uint16_t _ptr_HomeDir;
    4884           8 :         TALLOC_CTX *_mem_save_HomeDir_0 = NULL;
    4885           0 :         uint16_t _ptr_Comment;
    4886           8 :         TALLOC_CTX *_mem_save_Comment_0 = NULL;
    4887           0 :         uint16_t _ptr_ScriptPath;
    4888           8 :         TALLOC_CTX *_mem_save_ScriptPath_0 = NULL;
    4889           8 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    4890           8 :         if (ndr_flags & NDR_SCALARS) {
    4891           4 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    4892           4 :                 size_Name_0 = 21;
    4893           4 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, size_Name_0, sizeof(uint8_t), CH_DOS));
    4894           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Pad));
    4895           4 :                 size_Password_0 = 16;
    4896           4 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->Password, size_Password_0));
    4897           4 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->PasswordAge));
    4898           4 :                 NDR_CHECK(ndr_pull_rap_UserPriv(ndr, NDR_SCALARS, &r->Priv));
    4899             :                 {
    4900           4 :                         libndr_flags _flags_save_string = ndr->flags;
    4901           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4902           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_HomeDir));
    4903           4 :                         if (_ptr_HomeDir) {
    4904           4 :                                 NDR_PULL_ALLOC(ndr, r->HomeDir);
    4905           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->HomeDir, _ptr_HomeDir));
    4906             :                         } else {
    4907           0 :                                 r->HomeDir = NULL;
    4908             :                         }
    4909           4 :                         ndr->flags = _flags_save_string;
    4910             :                 }
    4911           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->HomeDirHigh));
    4912             :                 {
    4913           4 :                         libndr_flags _flags_save_string = ndr->flags;
    4914           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4915           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_Comment));
    4916           4 :                         if (_ptr_Comment) {
    4917           4 :                                 NDR_PULL_ALLOC(ndr, r->Comment);
    4918           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->Comment, _ptr_Comment));
    4919             :                         } else {
    4920           0 :                                 r->Comment = NULL;
    4921             :                         }
    4922           4 :                         ndr->flags = _flags_save_string;
    4923             :                 }
    4924           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CommentHigh));
    4925           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Flags));
    4926             :                 {
    4927           4 :                         libndr_flags _flags_save_string = ndr->flags;
    4928           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4929           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_ScriptPath));
    4930           4 :                         if (_ptr_ScriptPath) {
    4931           4 :                                 NDR_PULL_ALLOC(ndr, r->ScriptPath);
    4932           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->ScriptPath, _ptr_ScriptPath));
    4933             :                         } else {
    4934           0 :                                 r->ScriptPath = NULL;
    4935             :                         }
    4936           4 :                         ndr->flags = _flags_save_string;
    4937             :                 }
    4938           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->ScriptPathHigh));
    4939           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    4940             :         }
    4941           8 :         if (ndr_flags & NDR_BUFFERS) {
    4942             :                 {
    4943           4 :                         libndr_flags _flags_save_string = ndr->flags;
    4944           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4945           4 :                         if (r->HomeDir) {
    4946           0 :                                 uint32_t _relative_save_offset;
    4947           4 :                                 _relative_save_offset = ndr->offset;
    4948           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->HomeDir));
    4949           4 :                                 _mem_save_HomeDir_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4950           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->HomeDir, 0);
    4951           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->HomeDir));
    4952           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_HomeDir_0, 0);
    4953           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4954           4 :                                         ndr->relative_highest_offset = ndr->offset;
    4955             :                                 }
    4956           4 :                                 ndr->offset = _relative_save_offset;
    4957             :                         }
    4958           4 :                         ndr->flags = _flags_save_string;
    4959             :                 }
    4960             :                 {
    4961           4 :                         libndr_flags _flags_save_string = ndr->flags;
    4962           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4963           4 :                         if (r->Comment) {
    4964           0 :                                 uint32_t _relative_save_offset;
    4965           4 :                                 _relative_save_offset = ndr->offset;
    4966           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->Comment));
    4967           4 :                                 _mem_save_Comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4968           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->Comment, 0);
    4969           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Comment));
    4970           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Comment_0, 0);
    4971           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4972           4 :                                         ndr->relative_highest_offset = ndr->offset;
    4973             :                                 }
    4974           4 :                                 ndr->offset = _relative_save_offset;
    4975             :                         }
    4976           4 :                         ndr->flags = _flags_save_string;
    4977             :                 }
    4978             :                 {
    4979           4 :                         libndr_flags _flags_save_string = ndr->flags;
    4980           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    4981           4 :                         if (r->ScriptPath) {
    4982           0 :                                 uint32_t _relative_save_offset;
    4983           4 :                                 _relative_save_offset = ndr->offset;
    4984           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->ScriptPath));
    4985           4 :                                 _mem_save_ScriptPath_0 = NDR_PULL_GET_MEM_CTX(ndr);
    4986           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->ScriptPath, 0);
    4987           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->ScriptPath));
    4988           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ScriptPath_0, 0);
    4989           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    4990           4 :                                         ndr->relative_highest_offset = ndr->offset;
    4991             :                                 }
    4992           4 :                                 ndr->offset = _relative_save_offset;
    4993             :                         }
    4994           4 :                         ndr->flags = _flags_save_string;
    4995             :                 }
    4996             :         }
    4997           8 :         return NDR_ERR_SUCCESS;
    4998             : }
    4999             : 
    5000           0 : _PUBLIC_ void ndr_print_rap_NetUserInfo1(struct ndr_print *ndr, const char *name, const struct rap_NetUserInfo1 *r)
    5001             : {
    5002           0 :         ndr_print_struct(ndr, name, "rap_NetUserInfo1");
    5003           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5004           0 :         ndr->depth++;
    5005           0 :         ndr_print_string(ndr, "Name", r->Name);
    5006           0 :         ndr_print_uint8(ndr, "Pad", r->Pad);
    5007           0 :         ndr_print_array_uint8(ndr, "Password", r->Password, 16);
    5008           0 :         ndr_print_time_t(ndr, "PasswordAge", r->PasswordAge);
    5009           0 :         ndr_print_rap_UserPriv(ndr, "Priv", r->Priv);
    5010             :         {
    5011           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5012           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5013           0 :                 ndr_print_ptr(ndr, "HomeDir", r->HomeDir);
    5014           0 :                 ndr->depth++;
    5015           0 :                 if (r->HomeDir) {
    5016           0 :                         ndr_print_string(ndr, "HomeDir", r->HomeDir);
    5017             :                 }
    5018           0 :                 ndr->depth--;
    5019           0 :                 ndr->flags = _flags_save_string;
    5020             :         }
    5021           0 :         ndr_print_uint16(ndr, "HomeDirHigh", r->HomeDirHigh);
    5022             :         {
    5023           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5024           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5025           0 :                 ndr_print_ptr(ndr, "Comment", r->Comment);
    5026           0 :                 ndr->depth++;
    5027           0 :                 if (r->Comment) {
    5028           0 :                         ndr_print_string(ndr, "Comment", r->Comment);
    5029             :                 }
    5030           0 :                 ndr->depth--;
    5031           0 :                 ndr->flags = _flags_save_string;
    5032             :         }
    5033           0 :         ndr_print_uint16(ndr, "CommentHigh", r->CommentHigh);
    5034           0 :         ndr_print_uint16(ndr, "Flags", r->Flags);
    5035             :         {
    5036           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5037           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5038           0 :                 ndr_print_ptr(ndr, "ScriptPath", r->ScriptPath);
    5039           0 :                 ndr->depth++;
    5040           0 :                 if (r->ScriptPath) {
    5041           0 :                         ndr_print_string(ndr, "ScriptPath", r->ScriptPath);
    5042             :                 }
    5043           0 :                 ndr->depth--;
    5044           0 :                 ndr->flags = _flags_save_string;
    5045             :         }
    5046           0 :         ndr_print_uint16(ndr, "ScriptPathHigh", r->ScriptPathHigh);
    5047           0 :         ndr->depth--;
    5048             : }
    5049             : 
    5050           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_AuthFlags(struct ndr_push *ndr, ndr_flags_type ndr_flags, enum rap_AuthFlags r)
    5051             : {
    5052           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
    5053           0 :         return NDR_ERR_SUCCESS;
    5054             : }
    5055             : 
    5056           8 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_AuthFlags(struct ndr_pull *ndr, ndr_flags_type ndr_flags, enum rap_AuthFlags *r)
    5057             : {
    5058           0 :         uint32_t v;
    5059           8 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
    5060           8 :         *r = v;
    5061           8 :         return NDR_ERR_SUCCESS;
    5062             : }
    5063             : 
    5064           0 : _PUBLIC_ void ndr_print_rap_AuthFlags(struct ndr_print *ndr, const char *name, enum rap_AuthFlags r)
    5065             : {
    5066           0 :         const char *val = NULL;
    5067             : 
    5068           0 :         switch (r) {
    5069           0 :                 case AF_OP_PRINT: val = "AF_OP_PRINT"; break;
    5070           0 :                 case AF_OP_COMM: val = "AF_OP_COMM"; break;
    5071           0 :                 case AF_OP_SERVER: val = "AF_OP_SERVER"; break;
    5072           0 :                 case AF_OP_ACCOUNTS: val = "AF_OP_ACCOUNTS"; break;
    5073             :         }
    5074           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
    5075           0 : }
    5076             : 
    5077           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_LogonHours(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_LogonHours *r)
    5078             : {
    5079           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    5080           0 :         if (ndr_flags & NDR_SCALARS) {
    5081           0 :                 NDR_CHECK(ndr_push_align(ndr, 1));
    5082           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->LogonHours, 21));
    5083           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 1));
    5084             :         }
    5085           0 :         if (ndr_flags & NDR_BUFFERS) {
    5086           0 :         }
    5087           0 :         return NDR_ERR_SUCCESS;
    5088             : }
    5089             : 
    5090           8 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_LogonHours(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_LogonHours *r)
    5091             : {
    5092           8 :         uint32_t size_LogonHours_0 = 0;
    5093           8 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    5094           8 :         if (ndr_flags & NDR_SCALARS) {
    5095           8 :                 NDR_CHECK(ndr_pull_align(ndr, 1));
    5096           8 :                 size_LogonHours_0 = 21;
    5097           8 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->LogonHours, size_LogonHours_0));
    5098           8 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 1));
    5099             :         }
    5100           8 :         if (ndr_flags & NDR_BUFFERS) {
    5101           0 :         }
    5102           8 :         return NDR_ERR_SUCCESS;
    5103             : }
    5104             : 
    5105           0 : static void ndr_print_flags_rap_LogonHours(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct rap_LogonHours *r)
    5106             : {
    5107           0 :         ndr_print_rap_LogonHours(ndr, name, r);
    5108           0 : }
    5109             : 
    5110           0 : _PUBLIC_ void ndr_print_rap_LogonHours(struct ndr_print *ndr, const char *name, const struct rap_LogonHours *r)
    5111             : {
    5112           0 :         ndr_print_struct(ndr, name, "rap_LogonHours");
    5113           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5114           0 :         ndr->depth++;
    5115           0 :         ndr_print_array_uint8(ndr, "LogonHours", r->LogonHours, 21);
    5116           0 :         ndr->depth--;
    5117             : }
    5118             : 
    5119           0 : static enum ndr_err_code ndr_push_rap_NetUserInfo2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_NetUserInfo2 *r)
    5120             : {
    5121           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    5122           0 :         if (ndr_flags & NDR_SCALARS) {
    5123           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    5124           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, 21, sizeof(uint8_t), CH_DOS));
    5125           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Pad));
    5126           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->Password, 16));
    5127           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->PasswordAge));
    5128           0 :                 NDR_CHECK(ndr_push_rap_UserPriv(ndr, NDR_SCALARS, r->Priv));
    5129             :                 {
    5130           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5131           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5132           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->HomeDir));
    5133           0 :                         ndr->flags = _flags_save_string;
    5134             :                 }
    5135           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->HomeDirHigh));
    5136             :                 {
    5137           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5138           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5139           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->Comment));
    5140           0 :                         ndr->flags = _flags_save_string;
    5141             :                 }
    5142           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CommentHigh));
    5143           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Flags));
    5144             :                 {
    5145           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5146           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5147           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->ScriptPath));
    5148           0 :                         ndr->flags = _flags_save_string;
    5149             :                 }
    5150           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->ScriptPathHigh));
    5151           0 :                 NDR_CHECK(ndr_push_rap_AuthFlags(ndr, NDR_SCALARS, r->AuthFlags));
    5152             :                 {
    5153           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5154           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5155           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->FullName));
    5156           0 :                         ndr->flags = _flags_save_string;
    5157             :                 }
    5158           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->FullNameHigh));
    5159             :                 {
    5160           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5161           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5162           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->UsrComment));
    5163           0 :                         ndr->flags = _flags_save_string;
    5164             :                 }
    5165           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UsrCommentHigh));
    5166             :                 {
    5167           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5168           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5169           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->pParms));
    5170           0 :                         ndr->flags = _flags_save_string;
    5171             :                 }
    5172           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->pParmsHigh));
    5173             :                 {
    5174           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5175           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5176           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->WorkStations));
    5177           0 :                         ndr->flags = _flags_save_string;
    5178             :                 }
    5179           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->WorkStationsHigh));
    5180           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->LastLogon));
    5181           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->LastLogOff));
    5182           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->AcctExpires));
    5183           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->MaxStorage));
    5184           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UnitsPerWeek));
    5185           0 :                 NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->LogonHours));
    5186           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->LogonHoursHigh));
    5187           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->BadPwCount));
    5188           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->NumLogons));
    5189             :                 {
    5190           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5191           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5192           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->LogonServer));
    5193           0 :                         ndr->flags = _flags_save_string;
    5194             :                 }
    5195           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->LogonServerHigh));
    5196           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CountryCode));
    5197           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CodePage));
    5198           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    5199             :         }
    5200           0 :         if (ndr_flags & NDR_BUFFERS) {
    5201             :                 {
    5202           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5203           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5204           0 :                         if (r->HomeDir) {
    5205           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->HomeDir));
    5206           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->HomeDir));
    5207             :                         }
    5208           0 :                         ndr->flags = _flags_save_string;
    5209             :                 }
    5210             :                 {
    5211           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5212           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5213           0 :                         if (r->Comment) {
    5214           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->Comment));
    5215           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Comment));
    5216             :                         }
    5217           0 :                         ndr->flags = _flags_save_string;
    5218             :                 }
    5219             :                 {
    5220           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5221           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5222           0 :                         if (r->ScriptPath) {
    5223           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->ScriptPath));
    5224           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->ScriptPath));
    5225             :                         }
    5226           0 :                         ndr->flags = _flags_save_string;
    5227             :                 }
    5228             :                 {
    5229           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5230           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5231           0 :                         if (r->FullName) {
    5232           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->FullName));
    5233           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->FullName));
    5234             :                         }
    5235           0 :                         ndr->flags = _flags_save_string;
    5236             :                 }
    5237             :                 {
    5238           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5239           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5240           0 :                         if (r->UsrComment) {
    5241           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->UsrComment));
    5242           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->UsrComment));
    5243             :                         }
    5244           0 :                         ndr->flags = _flags_save_string;
    5245             :                 }
    5246             :                 {
    5247           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5248           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5249           0 :                         if (r->pParms) {
    5250           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->pParms));
    5251           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->pParms));
    5252             :                         }
    5253           0 :                         ndr->flags = _flags_save_string;
    5254             :                 }
    5255             :                 {
    5256           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5257           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5258           0 :                         if (r->WorkStations) {
    5259           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->WorkStations));
    5260           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->WorkStations));
    5261             :                         }
    5262           0 :                         ndr->flags = _flags_save_string;
    5263             :                 }
    5264           0 :                 if (r->LogonHours) {
    5265           0 :                         NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->LogonHours));
    5266           0 :                         NDR_CHECK(ndr_push_rap_LogonHours(ndr, NDR_SCALARS, r->LogonHours));
    5267             :                 }
    5268             :                 {
    5269           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5270           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5271           0 :                         if (r->LogonServer) {
    5272           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->LogonServer));
    5273           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->LogonServer));
    5274             :                         }
    5275           0 :                         ndr->flags = _flags_save_string;
    5276             :                 }
    5277             :         }
    5278           0 :         return NDR_ERR_SUCCESS;
    5279             : }
    5280             : 
    5281           8 : static enum ndr_err_code ndr_pull_rap_NetUserInfo2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_NetUserInfo2 *r)
    5282             : {
    5283           8 :         uint32_t size_Name_0 = 0;
    5284           8 :         uint32_t size_Password_0 = 0;
    5285           0 :         uint16_t _ptr_HomeDir;
    5286           8 :         TALLOC_CTX *_mem_save_HomeDir_0 = NULL;
    5287           0 :         uint16_t _ptr_Comment;
    5288           8 :         TALLOC_CTX *_mem_save_Comment_0 = NULL;
    5289           0 :         uint16_t _ptr_ScriptPath;
    5290           8 :         TALLOC_CTX *_mem_save_ScriptPath_0 = NULL;
    5291           0 :         uint16_t _ptr_FullName;
    5292           8 :         TALLOC_CTX *_mem_save_FullName_0 = NULL;
    5293           0 :         uint16_t _ptr_UsrComment;
    5294           8 :         TALLOC_CTX *_mem_save_UsrComment_0 = NULL;
    5295           0 :         uint16_t _ptr_pParms;
    5296           8 :         TALLOC_CTX *_mem_save_pParms_0 = NULL;
    5297           0 :         uint16_t _ptr_WorkStations;
    5298           8 :         TALLOC_CTX *_mem_save_WorkStations_0 = NULL;
    5299           0 :         uint16_t _ptr_LogonHours;
    5300           8 :         TALLOC_CTX *_mem_save_LogonHours_0 = NULL;
    5301           0 :         uint16_t _ptr_LogonServer;
    5302           8 :         TALLOC_CTX *_mem_save_LogonServer_0 = NULL;
    5303           8 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    5304           8 :         if (ndr_flags & NDR_SCALARS) {
    5305           4 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    5306           4 :                 size_Name_0 = 21;
    5307           4 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, size_Name_0, sizeof(uint8_t), CH_DOS));
    5308           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Pad));
    5309           4 :                 size_Password_0 = 16;
    5310           4 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->Password, size_Password_0));
    5311           4 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->PasswordAge));
    5312           4 :                 NDR_CHECK(ndr_pull_rap_UserPriv(ndr, NDR_SCALARS, &r->Priv));
    5313             :                 {
    5314           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5315           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5316           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_HomeDir));
    5317           4 :                         if (_ptr_HomeDir) {
    5318           4 :                                 NDR_PULL_ALLOC(ndr, r->HomeDir);
    5319           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->HomeDir, _ptr_HomeDir));
    5320             :                         } else {
    5321           0 :                                 r->HomeDir = NULL;
    5322             :                         }
    5323           4 :                         ndr->flags = _flags_save_string;
    5324             :                 }
    5325           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->HomeDirHigh));
    5326             :                 {
    5327           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5328           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5329           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_Comment));
    5330           4 :                         if (_ptr_Comment) {
    5331           4 :                                 NDR_PULL_ALLOC(ndr, r->Comment);
    5332           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->Comment, _ptr_Comment));
    5333             :                         } else {
    5334           0 :                                 r->Comment = NULL;
    5335             :                         }
    5336           4 :                         ndr->flags = _flags_save_string;
    5337             :                 }
    5338           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CommentHigh));
    5339           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Flags));
    5340             :                 {
    5341           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5342           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5343           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_ScriptPath));
    5344           4 :                         if (_ptr_ScriptPath) {
    5345           4 :                                 NDR_PULL_ALLOC(ndr, r->ScriptPath);
    5346           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->ScriptPath, _ptr_ScriptPath));
    5347             :                         } else {
    5348           0 :                                 r->ScriptPath = NULL;
    5349             :                         }
    5350           4 :                         ndr->flags = _flags_save_string;
    5351             :                 }
    5352           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->ScriptPathHigh));
    5353           4 :                 NDR_CHECK(ndr_pull_rap_AuthFlags(ndr, NDR_SCALARS, &r->AuthFlags));
    5354             :                 {
    5355           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5356           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5357           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_FullName));
    5358           4 :                         if (_ptr_FullName) {
    5359           4 :                                 NDR_PULL_ALLOC(ndr, r->FullName);
    5360           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->FullName, _ptr_FullName));
    5361             :                         } else {
    5362           0 :                                 r->FullName = NULL;
    5363             :                         }
    5364           4 :                         ndr->flags = _flags_save_string;
    5365             :                 }
    5366           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->FullNameHigh));
    5367             :                 {
    5368           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5369           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5370           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_UsrComment));
    5371           4 :                         if (_ptr_UsrComment) {
    5372           0 :                                 NDR_PULL_ALLOC(ndr, r->UsrComment);
    5373           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->UsrComment, _ptr_UsrComment));
    5374             :                         } else {
    5375           4 :                                 r->UsrComment = NULL;
    5376             :                         }
    5377           4 :                         ndr->flags = _flags_save_string;
    5378             :                 }
    5379           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UsrCommentHigh));
    5380             :                 {
    5381           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5382           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5383           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_pParms));
    5384           4 :                         if (_ptr_pParms) {
    5385           4 :                                 NDR_PULL_ALLOC(ndr, r->pParms);
    5386           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->pParms, _ptr_pParms));
    5387             :                         } else {
    5388           0 :                                 r->pParms = NULL;
    5389             :                         }
    5390           4 :                         ndr->flags = _flags_save_string;
    5391             :                 }
    5392           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->pParmsHigh));
    5393             :                 {
    5394           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5395           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5396           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_WorkStations));
    5397           4 :                         if (_ptr_WorkStations) {
    5398           0 :                                 NDR_PULL_ALLOC(ndr, r->WorkStations);
    5399           0 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->WorkStations, _ptr_WorkStations));
    5400             :                         } else {
    5401           4 :                                 r->WorkStations = NULL;
    5402             :                         }
    5403           4 :                         ndr->flags = _flags_save_string;
    5404             :                 }
    5405           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->WorkStationsHigh));
    5406           4 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->LastLogon));
    5407           4 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->LastLogOff));
    5408           4 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->AcctExpires));
    5409           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->MaxStorage));
    5410           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UnitsPerWeek));
    5411           4 :                 NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_LogonHours));
    5412           4 :                 if (_ptr_LogonHours) {
    5413           4 :                         NDR_PULL_ALLOC(ndr, r->LogonHours);
    5414           4 :                         NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->LogonHours, _ptr_LogonHours));
    5415             :                 } else {
    5416           0 :                         r->LogonHours = NULL;
    5417             :                 }
    5418           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->LogonHoursHigh));
    5419           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->BadPwCount));
    5420           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->NumLogons));
    5421             :                 {
    5422           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5423           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5424           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_LogonServer));
    5425           4 :                         if (_ptr_LogonServer) {
    5426           4 :                                 NDR_PULL_ALLOC(ndr, r->LogonServer);
    5427           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->LogonServer, _ptr_LogonServer));
    5428             :                         } else {
    5429           0 :                                 r->LogonServer = NULL;
    5430             :                         }
    5431           4 :                         ndr->flags = _flags_save_string;
    5432             :                 }
    5433           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->LogonServerHigh));
    5434           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CountryCode));
    5435           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CodePage));
    5436           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    5437             :         }
    5438           8 :         if (ndr_flags & NDR_BUFFERS) {
    5439             :                 {
    5440           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5441           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5442           4 :                         if (r->HomeDir) {
    5443           0 :                                 uint32_t _relative_save_offset;
    5444           4 :                                 _relative_save_offset = ndr->offset;
    5445           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->HomeDir));
    5446           4 :                                 _mem_save_HomeDir_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5447           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->HomeDir, 0);
    5448           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->HomeDir));
    5449           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_HomeDir_0, 0);
    5450           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5451           4 :                                         ndr->relative_highest_offset = ndr->offset;
    5452             :                                 }
    5453           4 :                                 ndr->offset = _relative_save_offset;
    5454             :                         }
    5455           4 :                         ndr->flags = _flags_save_string;
    5456             :                 }
    5457             :                 {
    5458           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5459           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5460           4 :                         if (r->Comment) {
    5461           0 :                                 uint32_t _relative_save_offset;
    5462           4 :                                 _relative_save_offset = ndr->offset;
    5463           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->Comment));
    5464           4 :                                 _mem_save_Comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5465           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->Comment, 0);
    5466           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Comment));
    5467           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Comment_0, 0);
    5468           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5469           2 :                                         ndr->relative_highest_offset = ndr->offset;
    5470             :                                 }
    5471           4 :                                 ndr->offset = _relative_save_offset;
    5472             :                         }
    5473           4 :                         ndr->flags = _flags_save_string;
    5474             :                 }
    5475             :                 {
    5476           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5477           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5478           4 :                         if (r->ScriptPath) {
    5479           0 :                                 uint32_t _relative_save_offset;
    5480           4 :                                 _relative_save_offset = ndr->offset;
    5481           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->ScriptPath));
    5482           4 :                                 _mem_save_ScriptPath_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5483           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->ScriptPath, 0);
    5484           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->ScriptPath));
    5485           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ScriptPath_0, 0);
    5486           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5487           2 :                                         ndr->relative_highest_offset = ndr->offset;
    5488             :                                 }
    5489           4 :                                 ndr->offset = _relative_save_offset;
    5490             :                         }
    5491           4 :                         ndr->flags = _flags_save_string;
    5492             :                 }
    5493             :                 {
    5494           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5495           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5496           4 :                         if (r->FullName) {
    5497           0 :                                 uint32_t _relative_save_offset;
    5498           4 :                                 _relative_save_offset = ndr->offset;
    5499           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->FullName));
    5500           4 :                                 _mem_save_FullName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5501           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->FullName, 0);
    5502           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->FullName));
    5503           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_FullName_0, 0);
    5504           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5505           2 :                                         ndr->relative_highest_offset = ndr->offset;
    5506             :                                 }
    5507           4 :                                 ndr->offset = _relative_save_offset;
    5508             :                         }
    5509           4 :                         ndr->flags = _flags_save_string;
    5510             :                 }
    5511             :                 {
    5512           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5513           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5514           4 :                         if (r->UsrComment) {
    5515           0 :                                 uint32_t _relative_save_offset;
    5516           0 :                                 _relative_save_offset = ndr->offset;
    5517           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->UsrComment));
    5518           0 :                                 _mem_save_UsrComment_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5519           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->UsrComment, 0);
    5520           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->UsrComment));
    5521           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_UsrComment_0, 0);
    5522           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5523           0 :                                         ndr->relative_highest_offset = ndr->offset;
    5524             :                                 }
    5525           0 :                                 ndr->offset = _relative_save_offset;
    5526             :                         }
    5527           4 :                         ndr->flags = _flags_save_string;
    5528             :                 }
    5529             :                 {
    5530           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5531           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5532           4 :                         if (r->pParms) {
    5533           0 :                                 uint32_t _relative_save_offset;
    5534           4 :                                 _relative_save_offset = ndr->offset;
    5535           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->pParms));
    5536           4 :                                 _mem_save_pParms_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5537           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->pParms, 0);
    5538           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->pParms));
    5539           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_pParms_0, 0);
    5540           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5541           4 :                                         ndr->relative_highest_offset = ndr->offset;
    5542             :                                 }
    5543           4 :                                 ndr->offset = _relative_save_offset;
    5544             :                         }
    5545           4 :                         ndr->flags = _flags_save_string;
    5546             :                 }
    5547             :                 {
    5548           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5549           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5550           4 :                         if (r->WorkStations) {
    5551           0 :                                 uint32_t _relative_save_offset;
    5552           0 :                                 _relative_save_offset = ndr->offset;
    5553           0 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->WorkStations));
    5554           0 :                                 _mem_save_WorkStations_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5555           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->WorkStations, 0);
    5556           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->WorkStations));
    5557           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_WorkStations_0, 0);
    5558           0 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5559           0 :                                         ndr->relative_highest_offset = ndr->offset;
    5560             :                                 }
    5561           0 :                                 ndr->offset = _relative_save_offset;
    5562             :                         }
    5563           4 :                         ndr->flags = _flags_save_string;
    5564             :                 }
    5565           4 :                 if (r->LogonHours) {
    5566           0 :                         uint32_t _relative_save_offset;
    5567           4 :                         _relative_save_offset = ndr->offset;
    5568           4 :                         NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->LogonHours));
    5569           4 :                         _mem_save_LogonHours_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5570           4 :                         NDR_PULL_SET_MEM_CTX(ndr, r->LogonHours, 0);
    5571           4 :                         NDR_CHECK(ndr_pull_rap_LogonHours(ndr, NDR_SCALARS, r->LogonHours));
    5572           4 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_LogonHours_0, 0);
    5573           4 :                         if (ndr->offset > ndr->relative_highest_offset) {
    5574           4 :                                 ndr->relative_highest_offset = ndr->offset;
    5575             :                         }
    5576           4 :                         ndr->offset = _relative_save_offset;
    5577             :                 }
    5578             :                 {
    5579           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5580           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5581           4 :                         if (r->LogonServer) {
    5582           0 :                                 uint32_t _relative_save_offset;
    5583           4 :                                 _relative_save_offset = ndr->offset;
    5584           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->LogonServer));
    5585           4 :                                 _mem_save_LogonServer_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5586           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->LogonServer, 0);
    5587           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->LogonServer));
    5588           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_LogonServer_0, 0);
    5589           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5590           4 :                                         ndr->relative_highest_offset = ndr->offset;
    5591             :                                 }
    5592           4 :                                 ndr->offset = _relative_save_offset;
    5593             :                         }
    5594           4 :                         ndr->flags = _flags_save_string;
    5595             :                 }
    5596             :         }
    5597           8 :         return NDR_ERR_SUCCESS;
    5598             : }
    5599             : 
    5600           0 : _PUBLIC_ void ndr_print_rap_NetUserInfo2(struct ndr_print *ndr, const char *name, const struct rap_NetUserInfo2 *r)
    5601             : {
    5602           0 :         ndr_print_struct(ndr, name, "rap_NetUserInfo2");
    5603           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5604           0 :         ndr->depth++;
    5605           0 :         ndr_print_string(ndr, "Name", r->Name);
    5606           0 :         ndr_print_uint8(ndr, "Pad", r->Pad);
    5607           0 :         ndr_print_array_uint8(ndr, "Password", r->Password, 16);
    5608           0 :         ndr_print_time_t(ndr, "PasswordAge", r->PasswordAge);
    5609           0 :         ndr_print_rap_UserPriv(ndr, "Priv", r->Priv);
    5610             :         {
    5611           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5612           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5613           0 :                 ndr_print_ptr(ndr, "HomeDir", r->HomeDir);
    5614           0 :                 ndr->depth++;
    5615           0 :                 if (r->HomeDir) {
    5616           0 :                         ndr_print_string(ndr, "HomeDir", r->HomeDir);
    5617             :                 }
    5618           0 :                 ndr->depth--;
    5619           0 :                 ndr->flags = _flags_save_string;
    5620             :         }
    5621           0 :         ndr_print_uint16(ndr, "HomeDirHigh", r->HomeDirHigh);
    5622             :         {
    5623           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5624           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5625           0 :                 ndr_print_ptr(ndr, "Comment", r->Comment);
    5626           0 :                 ndr->depth++;
    5627           0 :                 if (r->Comment) {
    5628           0 :                         ndr_print_string(ndr, "Comment", r->Comment);
    5629             :                 }
    5630           0 :                 ndr->depth--;
    5631           0 :                 ndr->flags = _flags_save_string;
    5632             :         }
    5633           0 :         ndr_print_uint16(ndr, "CommentHigh", r->CommentHigh);
    5634           0 :         ndr_print_uint16(ndr, "Flags", r->Flags);
    5635             :         {
    5636           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5637           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5638           0 :                 ndr_print_ptr(ndr, "ScriptPath", r->ScriptPath);
    5639           0 :                 ndr->depth++;
    5640           0 :                 if (r->ScriptPath) {
    5641           0 :                         ndr_print_string(ndr, "ScriptPath", r->ScriptPath);
    5642             :                 }
    5643           0 :                 ndr->depth--;
    5644           0 :                 ndr->flags = _flags_save_string;
    5645             :         }
    5646           0 :         ndr_print_uint16(ndr, "ScriptPathHigh", r->ScriptPathHigh);
    5647           0 :         ndr_print_rap_AuthFlags(ndr, "AuthFlags", r->AuthFlags);
    5648             :         {
    5649           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5650           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5651           0 :                 ndr_print_ptr(ndr, "FullName", r->FullName);
    5652           0 :                 ndr->depth++;
    5653           0 :                 if (r->FullName) {
    5654           0 :                         ndr_print_string(ndr, "FullName", r->FullName);
    5655             :                 }
    5656           0 :                 ndr->depth--;
    5657           0 :                 ndr->flags = _flags_save_string;
    5658             :         }
    5659           0 :         ndr_print_uint16(ndr, "FullNameHigh", r->FullNameHigh);
    5660             :         {
    5661           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5662           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5663           0 :                 ndr_print_ptr(ndr, "UsrComment", r->UsrComment);
    5664           0 :                 ndr->depth++;
    5665           0 :                 if (r->UsrComment) {
    5666           0 :                         ndr_print_string(ndr, "UsrComment", r->UsrComment);
    5667             :                 }
    5668           0 :                 ndr->depth--;
    5669           0 :                 ndr->flags = _flags_save_string;
    5670             :         }
    5671           0 :         ndr_print_uint16(ndr, "UsrCommentHigh", r->UsrCommentHigh);
    5672             :         {
    5673           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5674           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5675           0 :                 ndr_print_ptr(ndr, "pParms", r->pParms);
    5676           0 :                 ndr->depth++;
    5677           0 :                 if (r->pParms) {
    5678           0 :                         ndr_print_string(ndr, "pParms", r->pParms);
    5679             :                 }
    5680           0 :                 ndr->depth--;
    5681           0 :                 ndr->flags = _flags_save_string;
    5682             :         }
    5683           0 :         ndr_print_uint16(ndr, "pParmsHigh", r->pParmsHigh);
    5684             :         {
    5685           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5686           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5687           0 :                 ndr_print_ptr(ndr, "WorkStations", r->WorkStations);
    5688           0 :                 ndr->depth++;
    5689           0 :                 if (r->WorkStations) {
    5690           0 :                         ndr_print_string(ndr, "WorkStations", r->WorkStations);
    5691             :                 }
    5692           0 :                 ndr->depth--;
    5693           0 :                 ndr->flags = _flags_save_string;
    5694             :         }
    5695           0 :         ndr_print_uint16(ndr, "WorkStationsHigh", r->WorkStationsHigh);
    5696           0 :         ndr_print_time_t(ndr, "LastLogon", r->LastLogon);
    5697           0 :         ndr_print_time_t(ndr, "LastLogOff", r->LastLogOff);
    5698           0 :         ndr_print_time_t(ndr, "AcctExpires", r->AcctExpires);
    5699           0 :         ndr_print_uint32(ndr, "MaxStorage", r->MaxStorage);
    5700           0 :         ndr_print_uint16(ndr, "UnitsPerWeek", r->UnitsPerWeek);
    5701           0 :         ndr_print_ptr(ndr, "LogonHours", r->LogonHours);
    5702           0 :         ndr->depth++;
    5703           0 :         if (r->LogonHours) {
    5704           0 :                 ndr_print_rap_LogonHours(ndr, "LogonHours", r->LogonHours);
    5705             :         }
    5706           0 :         ndr->depth--;
    5707           0 :         ndr_print_uint16(ndr, "LogonHoursHigh", r->LogonHoursHigh);
    5708           0 :         ndr_print_uint16(ndr, "BadPwCount", r->BadPwCount);
    5709           0 :         ndr_print_uint16(ndr, "NumLogons", r->NumLogons);
    5710             :         {
    5711           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5712           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5713           0 :                 ndr_print_ptr(ndr, "LogonServer", r->LogonServer);
    5714           0 :                 ndr->depth++;
    5715           0 :                 if (r->LogonServer) {
    5716           0 :                         ndr_print_string(ndr, "LogonServer", r->LogonServer);
    5717             :                 }
    5718           0 :                 ndr->depth--;
    5719           0 :                 ndr->flags = _flags_save_string;
    5720             :         }
    5721           0 :         ndr_print_uint16(ndr, "LogonServerHigh", r->LogonServerHigh);
    5722           0 :         ndr_print_uint16(ndr, "CountryCode", r->CountryCode);
    5723           0 :         ndr_print_uint16(ndr, "CodePage", r->CodePage);
    5724           0 :         ndr->depth--;
    5725             : }
    5726             : 
    5727           0 : static enum ndr_err_code ndr_push_rap_NetUserInfo10(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_NetUserInfo10 *r)
    5728             : {
    5729           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    5730           0 :         if (ndr_flags & NDR_SCALARS) {
    5731           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    5732           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, 21, sizeof(uint8_t), CH_DOS));
    5733           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Pad));
    5734             :                 {
    5735           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5736           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5737           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->Comment));
    5738           0 :                         ndr->flags = _flags_save_string;
    5739             :                 }
    5740           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CommentHigh));
    5741             :                 {
    5742           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5743           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5744           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->UsrComment));
    5745           0 :                         ndr->flags = _flags_save_string;
    5746             :                 }
    5747           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UsrCommentHigh));
    5748             :                 {
    5749           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5750           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5751           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->FullName));
    5752           0 :                         ndr->flags = _flags_save_string;
    5753             :                 }
    5754           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->FullNameHigh));
    5755           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    5756             :         }
    5757           0 :         if (ndr_flags & NDR_BUFFERS) {
    5758             :                 {
    5759           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5760           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5761           0 :                         if (r->Comment) {
    5762           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->Comment));
    5763           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Comment));
    5764             :                         }
    5765           0 :                         ndr->flags = _flags_save_string;
    5766             :                 }
    5767             :                 {
    5768           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5769           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5770           0 :                         if (r->UsrComment) {
    5771           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->UsrComment));
    5772           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->UsrComment));
    5773             :                         }
    5774           0 :                         ndr->flags = _flags_save_string;
    5775             :                 }
    5776             :                 {
    5777           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5778           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5779           0 :                         if (r->FullName) {
    5780           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->FullName));
    5781           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->FullName));
    5782             :                         }
    5783           0 :                         ndr->flags = _flags_save_string;
    5784             :                 }
    5785             :         }
    5786           0 :         return NDR_ERR_SUCCESS;
    5787             : }
    5788             : 
    5789           8 : static enum ndr_err_code ndr_pull_rap_NetUserInfo10(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_NetUserInfo10 *r)
    5790             : {
    5791           8 :         uint32_t size_Name_0 = 0;
    5792           0 :         uint16_t _ptr_Comment;
    5793           8 :         TALLOC_CTX *_mem_save_Comment_0 = NULL;
    5794           0 :         uint16_t _ptr_UsrComment;
    5795           8 :         TALLOC_CTX *_mem_save_UsrComment_0 = NULL;
    5796           0 :         uint16_t _ptr_FullName;
    5797           8 :         TALLOC_CTX *_mem_save_FullName_0 = NULL;
    5798           8 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    5799           8 :         if (ndr_flags & NDR_SCALARS) {
    5800           4 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    5801           4 :                 size_Name_0 = 21;
    5802           4 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, size_Name_0, sizeof(uint8_t), CH_DOS));
    5803           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Pad));
    5804             :                 {
    5805           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5806           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5807           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_Comment));
    5808           4 :                         if (_ptr_Comment) {
    5809           4 :                                 NDR_PULL_ALLOC(ndr, r->Comment);
    5810           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->Comment, _ptr_Comment));
    5811             :                         } else {
    5812           0 :                                 r->Comment = NULL;
    5813             :                         }
    5814           4 :                         ndr->flags = _flags_save_string;
    5815             :                 }
    5816           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CommentHigh));
    5817             :                 {
    5818           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5819           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5820           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_UsrComment));
    5821           4 :                         if (_ptr_UsrComment) {
    5822           4 :                                 NDR_PULL_ALLOC(ndr, r->UsrComment);
    5823           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->UsrComment, _ptr_UsrComment));
    5824             :                         } else {
    5825           0 :                                 r->UsrComment = NULL;
    5826             :                         }
    5827           4 :                         ndr->flags = _flags_save_string;
    5828             :                 }
    5829           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UsrCommentHigh));
    5830             :                 {
    5831           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5832           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5833           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_FullName));
    5834           4 :                         if (_ptr_FullName) {
    5835           4 :                                 NDR_PULL_ALLOC(ndr, r->FullName);
    5836           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->FullName, _ptr_FullName));
    5837             :                         } else {
    5838           0 :                                 r->FullName = NULL;
    5839             :                         }
    5840           4 :                         ndr->flags = _flags_save_string;
    5841             :                 }
    5842           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->FullNameHigh));
    5843           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    5844             :         }
    5845           8 :         if (ndr_flags & NDR_BUFFERS) {
    5846             :                 {
    5847           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5848           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5849           4 :                         if (r->Comment) {
    5850           0 :                                 uint32_t _relative_save_offset;
    5851           4 :                                 _relative_save_offset = ndr->offset;
    5852           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->Comment));
    5853           4 :                                 _mem_save_Comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5854           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->Comment, 0);
    5855           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Comment));
    5856           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Comment_0, 0);
    5857           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5858           4 :                                         ndr->relative_highest_offset = ndr->offset;
    5859             :                                 }
    5860           4 :                                 ndr->offset = _relative_save_offset;
    5861             :                         }
    5862           4 :                         ndr->flags = _flags_save_string;
    5863             :                 }
    5864             :                 {
    5865           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5866           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5867           4 :                         if (r->UsrComment) {
    5868           0 :                                 uint32_t _relative_save_offset;
    5869           4 :                                 _relative_save_offset = ndr->offset;
    5870           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->UsrComment));
    5871           4 :                                 _mem_save_UsrComment_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5872           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->UsrComment, 0);
    5873           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->UsrComment));
    5874           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_UsrComment_0, 0);
    5875           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5876           4 :                                         ndr->relative_highest_offset = ndr->offset;
    5877             :                                 }
    5878           4 :                                 ndr->offset = _relative_save_offset;
    5879             :                         }
    5880           4 :                         ndr->flags = _flags_save_string;
    5881             :                 }
    5882             :                 {
    5883           4 :                         libndr_flags _flags_save_string = ndr->flags;
    5884           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5885           4 :                         if (r->FullName) {
    5886           0 :                                 uint32_t _relative_save_offset;
    5887           4 :                                 _relative_save_offset = ndr->offset;
    5888           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->FullName));
    5889           4 :                                 _mem_save_FullName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    5890           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->FullName, 0);
    5891           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->FullName));
    5892           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_FullName_0, 0);
    5893           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    5894           4 :                                         ndr->relative_highest_offset = ndr->offset;
    5895             :                                 }
    5896           4 :                                 ndr->offset = _relative_save_offset;
    5897             :                         }
    5898           4 :                         ndr->flags = _flags_save_string;
    5899             :                 }
    5900             :         }
    5901           8 :         return NDR_ERR_SUCCESS;
    5902             : }
    5903             : 
    5904           0 : _PUBLIC_ void ndr_print_rap_NetUserInfo10(struct ndr_print *ndr, const char *name, const struct rap_NetUserInfo10 *r)
    5905             : {
    5906           0 :         ndr_print_struct(ndr, name, "rap_NetUserInfo10");
    5907           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    5908           0 :         ndr->depth++;
    5909           0 :         ndr_print_string(ndr, "Name", r->Name);
    5910           0 :         ndr_print_uint8(ndr, "Pad", r->Pad);
    5911             :         {
    5912           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5913           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5914           0 :                 ndr_print_ptr(ndr, "Comment", r->Comment);
    5915           0 :                 ndr->depth++;
    5916           0 :                 if (r->Comment) {
    5917           0 :                         ndr_print_string(ndr, "Comment", r->Comment);
    5918             :                 }
    5919           0 :                 ndr->depth--;
    5920           0 :                 ndr->flags = _flags_save_string;
    5921             :         }
    5922           0 :         ndr_print_uint16(ndr, "CommentHigh", r->CommentHigh);
    5923             :         {
    5924           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5925           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5926           0 :                 ndr_print_ptr(ndr, "UsrComment", r->UsrComment);
    5927           0 :                 ndr->depth++;
    5928           0 :                 if (r->UsrComment) {
    5929           0 :                         ndr_print_string(ndr, "UsrComment", r->UsrComment);
    5930             :                 }
    5931           0 :                 ndr->depth--;
    5932           0 :                 ndr->flags = _flags_save_string;
    5933             :         }
    5934           0 :         ndr_print_uint16(ndr, "UsrCommentHigh", r->UsrCommentHigh);
    5935             :         {
    5936           0 :                 libndr_flags _flags_save_string = ndr->flags;
    5937           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5938           0 :                 ndr_print_ptr(ndr, "FullName", r->FullName);
    5939           0 :                 ndr->depth++;
    5940           0 :                 if (r->FullName) {
    5941           0 :                         ndr_print_string(ndr, "FullName", r->FullName);
    5942             :                 }
    5943           0 :                 ndr->depth--;
    5944           0 :                 ndr->flags = _flags_save_string;
    5945             :         }
    5946           0 :         ndr_print_uint16(ndr, "FullNameHigh", r->FullNameHigh);
    5947           0 :         ndr->depth--;
    5948             : }
    5949             : 
    5950           0 : static enum ndr_err_code ndr_push_rap_NetUserInfo11(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_NetUserInfo11 *r)
    5951             : {
    5952           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    5953           0 :         if (ndr_flags & NDR_SCALARS) {
    5954           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    5955           0 :                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->Name, 21, sizeof(uint8_t), CH_DOS));
    5956           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Pad));
    5957             :                 {
    5958           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5959           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5960           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->Comment));
    5961           0 :                         ndr->flags = _flags_save_string;
    5962             :                 }
    5963           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CommentHigh));
    5964             :                 {
    5965           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5966           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5967           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->UsrComment));
    5968           0 :                         ndr->flags = _flags_save_string;
    5969             :                 }
    5970           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UsrCommentHigh));
    5971             :                 {
    5972           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5973           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5974           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->FullName));
    5975           0 :                         ndr->flags = _flags_save_string;
    5976             :                 }
    5977           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->FullNameHigh));
    5978           0 :                 NDR_CHECK(ndr_push_rap_UserPriv(ndr, NDR_SCALARS, r->Priv));
    5979           0 :                 NDR_CHECK(ndr_push_rap_AuthFlags(ndr, NDR_SCALARS, r->AuthFlags));
    5980           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->PasswordAge));
    5981             :                 {
    5982           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5983           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5984           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->HomeDir));
    5985           0 :                         ndr->flags = _flags_save_string;
    5986             :                 }
    5987           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->HomeDirHigh));
    5988             :                 {
    5989           0 :                         libndr_flags _flags_save_string = ndr->flags;
    5990           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    5991           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->Parms));
    5992           0 :                         ndr->flags = _flags_save_string;
    5993             :                 }
    5994           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->ParmsHigh));
    5995           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->LastLogon));
    5996           0 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->LastLogOff));
    5997           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->BadPWCount));
    5998           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->NumLogons));
    5999             :                 {
    6000           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6001           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6002           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->LogonServer));
    6003           0 :                         ndr->flags = _flags_save_string;
    6004             :                 }
    6005           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->LogonServerHigh));
    6006           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CountryCode));
    6007             :                 {
    6008           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6009           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6010           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->WorkStations));
    6011           0 :                         ndr->flags = _flags_save_string;
    6012             :                 }
    6013           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->WorkStationsHigh));
    6014           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->MaxStorage));
    6015           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UnitsPerWeek));
    6016           0 :                 NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->LogonHours));
    6017           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->LogonHoursHigh));
    6018           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CodePage));
    6019           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    6020             :         }
    6021           0 :         if (ndr_flags & NDR_BUFFERS) {
    6022             :                 {
    6023           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6024           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6025           0 :                         if (r->Comment) {
    6026           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->Comment));
    6027           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Comment));
    6028             :                         }
    6029           0 :                         ndr->flags = _flags_save_string;
    6030             :                 }
    6031             :                 {
    6032           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6033           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6034           0 :                         if (r->UsrComment) {
    6035           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->UsrComment));
    6036           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->UsrComment));
    6037             :                         }
    6038           0 :                         ndr->flags = _flags_save_string;
    6039             :                 }
    6040             :                 {
    6041           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6042           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6043           0 :                         if (r->FullName) {
    6044           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->FullName));
    6045           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->FullName));
    6046             :                         }
    6047           0 :                         ndr->flags = _flags_save_string;
    6048             :                 }
    6049             :                 {
    6050           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6051           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6052           0 :                         if (r->HomeDir) {
    6053           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->HomeDir));
    6054           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->HomeDir));
    6055             :                         }
    6056           0 :                         ndr->flags = _flags_save_string;
    6057             :                 }
    6058             :                 {
    6059           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6060           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6061           0 :                         if (r->Parms) {
    6062           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->Parms));
    6063           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->Parms));
    6064             :                         }
    6065           0 :                         ndr->flags = _flags_save_string;
    6066             :                 }
    6067             :                 {
    6068           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6069           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6070           0 :                         if (r->LogonServer) {
    6071           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->LogonServer));
    6072           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->LogonServer));
    6073             :                         }
    6074           0 :                         ndr->flags = _flags_save_string;
    6075             :                 }
    6076             :                 {
    6077           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6078           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6079           0 :                         if (r->WorkStations) {
    6080           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->WorkStations));
    6081           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->WorkStations));
    6082             :                         }
    6083           0 :                         ndr->flags = _flags_save_string;
    6084             :                 }
    6085           0 :                 if (r->LogonHours) {
    6086           0 :                         NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->LogonHours));
    6087           0 :                         NDR_CHECK(ndr_push_rap_LogonHours(ndr, NDR_SCALARS, r->LogonHours));
    6088             :                 }
    6089             :         }
    6090           0 :         return NDR_ERR_SUCCESS;
    6091             : }
    6092             : 
    6093           8 : static enum ndr_err_code ndr_pull_rap_NetUserInfo11(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_NetUserInfo11 *r)
    6094             : {
    6095           8 :         uint32_t size_Name_0 = 0;
    6096           0 :         uint16_t _ptr_Comment;
    6097           8 :         TALLOC_CTX *_mem_save_Comment_0 = NULL;
    6098           0 :         uint16_t _ptr_UsrComment;
    6099           8 :         TALLOC_CTX *_mem_save_UsrComment_0 = NULL;
    6100           0 :         uint16_t _ptr_FullName;
    6101           8 :         TALLOC_CTX *_mem_save_FullName_0 = NULL;
    6102           0 :         uint16_t _ptr_HomeDir;
    6103           8 :         TALLOC_CTX *_mem_save_HomeDir_0 = NULL;
    6104           0 :         uint16_t _ptr_Parms;
    6105           8 :         TALLOC_CTX *_mem_save_Parms_0 = NULL;
    6106           0 :         uint16_t _ptr_LogonServer;
    6107           8 :         TALLOC_CTX *_mem_save_LogonServer_0 = NULL;
    6108           0 :         uint16_t _ptr_WorkStations;
    6109           8 :         TALLOC_CTX *_mem_save_WorkStations_0 = NULL;
    6110           0 :         uint16_t _ptr_LogonHours;
    6111           8 :         TALLOC_CTX *_mem_save_LogonHours_0 = NULL;
    6112           8 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    6113           8 :         if (ndr_flags & NDR_SCALARS) {
    6114           4 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    6115           4 :                 size_Name_0 = 21;
    6116           4 :                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->Name, size_Name_0, sizeof(uint8_t), CH_DOS));
    6117           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Pad));
    6118             :                 {
    6119           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6120           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6121           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_Comment));
    6122           4 :                         if (_ptr_Comment) {
    6123           4 :                                 NDR_PULL_ALLOC(ndr, r->Comment);
    6124           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->Comment, _ptr_Comment));
    6125             :                         } else {
    6126           0 :                                 r->Comment = NULL;
    6127             :                         }
    6128           4 :                         ndr->flags = _flags_save_string;
    6129             :                 }
    6130           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CommentHigh));
    6131             :                 {
    6132           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6133           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6134           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_UsrComment));
    6135           4 :                         if (_ptr_UsrComment) {
    6136           4 :                                 NDR_PULL_ALLOC(ndr, r->UsrComment);
    6137           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->UsrComment, _ptr_UsrComment));
    6138             :                         } else {
    6139           0 :                                 r->UsrComment = NULL;
    6140             :                         }
    6141           4 :                         ndr->flags = _flags_save_string;
    6142             :                 }
    6143           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UsrCommentHigh));
    6144             :                 {
    6145           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6146           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6147           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_FullName));
    6148           4 :                         if (_ptr_FullName) {
    6149           4 :                                 NDR_PULL_ALLOC(ndr, r->FullName);
    6150           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->FullName, _ptr_FullName));
    6151             :                         } else {
    6152           0 :                                 r->FullName = NULL;
    6153             :                         }
    6154           4 :                         ndr->flags = _flags_save_string;
    6155             :                 }
    6156           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->FullNameHigh));
    6157           4 :                 NDR_CHECK(ndr_pull_rap_UserPriv(ndr, NDR_SCALARS, &r->Priv));
    6158           4 :                 NDR_CHECK(ndr_pull_rap_AuthFlags(ndr, NDR_SCALARS, &r->AuthFlags));
    6159           4 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->PasswordAge));
    6160             :                 {
    6161           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6162           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6163           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_HomeDir));
    6164           4 :                         if (_ptr_HomeDir) {
    6165           4 :                                 NDR_PULL_ALLOC(ndr, r->HomeDir);
    6166           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->HomeDir, _ptr_HomeDir));
    6167             :                         } else {
    6168           0 :                                 r->HomeDir = NULL;
    6169             :                         }
    6170           4 :                         ndr->flags = _flags_save_string;
    6171             :                 }
    6172           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->HomeDirHigh));
    6173             :                 {
    6174           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6175           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6176           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_Parms));
    6177           4 :                         if (_ptr_Parms) {
    6178           4 :                                 NDR_PULL_ALLOC(ndr, r->Parms);
    6179           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->Parms, _ptr_Parms));
    6180             :                         } else {
    6181           0 :                                 r->Parms = NULL;
    6182             :                         }
    6183           4 :                         ndr->flags = _flags_save_string;
    6184             :                 }
    6185           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->ParmsHigh));
    6186           4 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->LastLogon));
    6187           4 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->LastLogOff));
    6188           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->BadPWCount));
    6189           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->NumLogons));
    6190             :                 {
    6191           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6192           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6193           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_LogonServer));
    6194           4 :                         if (_ptr_LogonServer) {
    6195           4 :                                 NDR_PULL_ALLOC(ndr, r->LogonServer);
    6196           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->LogonServer, _ptr_LogonServer));
    6197             :                         } else {
    6198           0 :                                 r->LogonServer = NULL;
    6199             :                         }
    6200           4 :                         ndr->flags = _flags_save_string;
    6201             :                 }
    6202           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->LogonServerHigh));
    6203           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CountryCode));
    6204             :                 {
    6205           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6206           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6207           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_WorkStations));
    6208           4 :                         if (_ptr_WorkStations) {
    6209           4 :                                 NDR_PULL_ALLOC(ndr, r->WorkStations);
    6210           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->WorkStations, _ptr_WorkStations));
    6211             :                         } else {
    6212           0 :                                 r->WorkStations = NULL;
    6213             :                         }
    6214           4 :                         ndr->flags = _flags_save_string;
    6215             :                 }
    6216           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->WorkStationsHigh));
    6217           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->MaxStorage));
    6218           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UnitsPerWeek));
    6219           4 :                 NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_LogonHours));
    6220           4 :                 if (_ptr_LogonHours) {
    6221           4 :                         NDR_PULL_ALLOC(ndr, r->LogonHours);
    6222           4 :                         NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->LogonHours, _ptr_LogonHours));
    6223             :                 } else {
    6224           0 :                         r->LogonHours = NULL;
    6225             :                 }
    6226           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->LogonHoursHigh));
    6227           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CodePage));
    6228           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    6229             :         }
    6230           8 :         if (ndr_flags & NDR_BUFFERS) {
    6231             :                 {
    6232           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6233           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6234           4 :                         if (r->Comment) {
    6235           0 :                                 uint32_t _relative_save_offset;
    6236           4 :                                 _relative_save_offset = ndr->offset;
    6237           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->Comment));
    6238           4 :                                 _mem_save_Comment_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6239           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->Comment, 0);
    6240           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Comment));
    6241           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Comment_0, 0);
    6242           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6243           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6244             :                                 }
    6245           4 :                                 ndr->offset = _relative_save_offset;
    6246             :                         }
    6247           4 :                         ndr->flags = _flags_save_string;
    6248             :                 }
    6249             :                 {
    6250           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6251           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6252           4 :                         if (r->UsrComment) {
    6253           0 :                                 uint32_t _relative_save_offset;
    6254           4 :                                 _relative_save_offset = ndr->offset;
    6255           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->UsrComment));
    6256           4 :                                 _mem_save_UsrComment_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6257           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->UsrComment, 0);
    6258           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->UsrComment));
    6259           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_UsrComment_0, 0);
    6260           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6261           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6262             :                                 }
    6263           4 :                                 ndr->offset = _relative_save_offset;
    6264             :                         }
    6265           4 :                         ndr->flags = _flags_save_string;
    6266             :                 }
    6267             :                 {
    6268           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6269           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6270           4 :                         if (r->FullName) {
    6271           0 :                                 uint32_t _relative_save_offset;
    6272           4 :                                 _relative_save_offset = ndr->offset;
    6273           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->FullName));
    6274           4 :                                 _mem_save_FullName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6275           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->FullName, 0);
    6276           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->FullName));
    6277           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_FullName_0, 0);
    6278           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6279           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6280             :                                 }
    6281           4 :                                 ndr->offset = _relative_save_offset;
    6282             :                         }
    6283           4 :                         ndr->flags = _flags_save_string;
    6284             :                 }
    6285             :                 {
    6286           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6287           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6288           4 :                         if (r->HomeDir) {
    6289           0 :                                 uint32_t _relative_save_offset;
    6290           4 :                                 _relative_save_offset = ndr->offset;
    6291           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->HomeDir));
    6292           4 :                                 _mem_save_HomeDir_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6293           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->HomeDir, 0);
    6294           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->HomeDir));
    6295           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_HomeDir_0, 0);
    6296           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6297           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6298             :                                 }
    6299           4 :                                 ndr->offset = _relative_save_offset;
    6300             :                         }
    6301           4 :                         ndr->flags = _flags_save_string;
    6302             :                 }
    6303             :                 {
    6304           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6305           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6306           4 :                         if (r->Parms) {
    6307           0 :                                 uint32_t _relative_save_offset;
    6308           4 :                                 _relative_save_offset = ndr->offset;
    6309           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->Parms));
    6310           4 :                                 _mem_save_Parms_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6311           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->Parms, 0);
    6312           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->Parms));
    6313           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_Parms_0, 0);
    6314           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6315           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6316             :                                 }
    6317           4 :                                 ndr->offset = _relative_save_offset;
    6318             :                         }
    6319           4 :                         ndr->flags = _flags_save_string;
    6320             :                 }
    6321             :                 {
    6322           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6323           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6324           4 :                         if (r->LogonServer) {
    6325           0 :                                 uint32_t _relative_save_offset;
    6326           4 :                                 _relative_save_offset = ndr->offset;
    6327           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->LogonServer));
    6328           4 :                                 _mem_save_LogonServer_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6329           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->LogonServer, 0);
    6330           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->LogonServer));
    6331           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_LogonServer_0, 0);
    6332           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6333           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6334             :                                 }
    6335           4 :                                 ndr->offset = _relative_save_offset;
    6336             :                         }
    6337           4 :                         ndr->flags = _flags_save_string;
    6338             :                 }
    6339             :                 {
    6340           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6341           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6342           4 :                         if (r->WorkStations) {
    6343           0 :                                 uint32_t _relative_save_offset;
    6344           4 :                                 _relative_save_offset = ndr->offset;
    6345           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->WorkStations));
    6346           4 :                                 _mem_save_WorkStations_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6347           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->WorkStations, 0);
    6348           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->WorkStations));
    6349           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_WorkStations_0, 0);
    6350           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6351           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6352             :                                 }
    6353           4 :                                 ndr->offset = _relative_save_offset;
    6354             :                         }
    6355           4 :                         ndr->flags = _flags_save_string;
    6356             :                 }
    6357           4 :                 if (r->LogonHours) {
    6358           0 :                         uint32_t _relative_save_offset;
    6359           4 :                         _relative_save_offset = ndr->offset;
    6360           4 :                         NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->LogonHours));
    6361           4 :                         _mem_save_LogonHours_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6362           4 :                         NDR_PULL_SET_MEM_CTX(ndr, r->LogonHours, 0);
    6363           4 :                         NDR_CHECK(ndr_pull_rap_LogonHours(ndr, NDR_SCALARS, r->LogonHours));
    6364           4 :                         NDR_PULL_SET_MEM_CTX(ndr, _mem_save_LogonHours_0, 0);
    6365           4 :                         if (ndr->offset > ndr->relative_highest_offset) {
    6366           4 :                                 ndr->relative_highest_offset = ndr->offset;
    6367             :                         }
    6368           4 :                         ndr->offset = _relative_save_offset;
    6369             :                 }
    6370             :         }
    6371           8 :         return NDR_ERR_SUCCESS;
    6372             : }
    6373             : 
    6374           0 : _PUBLIC_ void ndr_print_rap_NetUserInfo11(struct ndr_print *ndr, const char *name, const struct rap_NetUserInfo11 *r)
    6375             : {
    6376           0 :         ndr_print_struct(ndr, name, "rap_NetUserInfo11");
    6377           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6378           0 :         ndr->depth++;
    6379           0 :         ndr_print_string(ndr, "Name", r->Name);
    6380           0 :         ndr_print_uint8(ndr, "Pad", r->Pad);
    6381             :         {
    6382           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6383           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6384           0 :                 ndr_print_ptr(ndr, "Comment", r->Comment);
    6385           0 :                 ndr->depth++;
    6386           0 :                 if (r->Comment) {
    6387           0 :                         ndr_print_string(ndr, "Comment", r->Comment);
    6388             :                 }
    6389           0 :                 ndr->depth--;
    6390           0 :                 ndr->flags = _flags_save_string;
    6391             :         }
    6392           0 :         ndr_print_uint16(ndr, "CommentHigh", r->CommentHigh);
    6393             :         {
    6394           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6395           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6396           0 :                 ndr_print_ptr(ndr, "UsrComment", r->UsrComment);
    6397           0 :                 ndr->depth++;
    6398           0 :                 if (r->UsrComment) {
    6399           0 :                         ndr_print_string(ndr, "UsrComment", r->UsrComment);
    6400             :                 }
    6401           0 :                 ndr->depth--;
    6402           0 :                 ndr->flags = _flags_save_string;
    6403             :         }
    6404           0 :         ndr_print_uint16(ndr, "UsrCommentHigh", r->UsrCommentHigh);
    6405             :         {
    6406           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6407           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6408           0 :                 ndr_print_ptr(ndr, "FullName", r->FullName);
    6409           0 :                 ndr->depth++;
    6410           0 :                 if (r->FullName) {
    6411           0 :                         ndr_print_string(ndr, "FullName", r->FullName);
    6412             :                 }
    6413           0 :                 ndr->depth--;
    6414           0 :                 ndr->flags = _flags_save_string;
    6415             :         }
    6416           0 :         ndr_print_uint16(ndr, "FullNameHigh", r->FullNameHigh);
    6417           0 :         ndr_print_rap_UserPriv(ndr, "Priv", r->Priv);
    6418           0 :         ndr_print_rap_AuthFlags(ndr, "AuthFlags", r->AuthFlags);
    6419           0 :         ndr_print_time_t(ndr, "PasswordAge", r->PasswordAge);
    6420             :         {
    6421           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6422           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6423           0 :                 ndr_print_ptr(ndr, "HomeDir", r->HomeDir);
    6424           0 :                 ndr->depth++;
    6425           0 :                 if (r->HomeDir) {
    6426           0 :                         ndr_print_string(ndr, "HomeDir", r->HomeDir);
    6427             :                 }
    6428           0 :                 ndr->depth--;
    6429           0 :                 ndr->flags = _flags_save_string;
    6430             :         }
    6431           0 :         ndr_print_uint16(ndr, "HomeDirHigh", r->HomeDirHigh);
    6432             :         {
    6433           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6434           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6435           0 :                 ndr_print_ptr(ndr, "Parms", r->Parms);
    6436           0 :                 ndr->depth++;
    6437           0 :                 if (r->Parms) {
    6438           0 :                         ndr_print_string(ndr, "Parms", r->Parms);
    6439             :                 }
    6440           0 :                 ndr->depth--;
    6441           0 :                 ndr->flags = _flags_save_string;
    6442             :         }
    6443           0 :         ndr_print_uint16(ndr, "ParmsHigh", r->ParmsHigh);
    6444           0 :         ndr_print_time_t(ndr, "LastLogon", r->LastLogon);
    6445           0 :         ndr_print_time_t(ndr, "LastLogOff", r->LastLogOff);
    6446           0 :         ndr_print_uint16(ndr, "BadPWCount", r->BadPWCount);
    6447           0 :         ndr_print_uint16(ndr, "NumLogons", r->NumLogons);
    6448             :         {
    6449           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6450           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6451           0 :                 ndr_print_ptr(ndr, "LogonServer", r->LogonServer);
    6452           0 :                 ndr->depth++;
    6453           0 :                 if (r->LogonServer) {
    6454           0 :                         ndr_print_string(ndr, "LogonServer", r->LogonServer);
    6455             :                 }
    6456           0 :                 ndr->depth--;
    6457           0 :                 ndr->flags = _flags_save_string;
    6458             :         }
    6459           0 :         ndr_print_uint16(ndr, "LogonServerHigh", r->LogonServerHigh);
    6460           0 :         ndr_print_uint16(ndr, "CountryCode", r->CountryCode);
    6461             :         {
    6462           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6463           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6464           0 :                 ndr_print_ptr(ndr, "WorkStations", r->WorkStations);
    6465           0 :                 ndr->depth++;
    6466           0 :                 if (r->WorkStations) {
    6467           0 :                         ndr_print_string(ndr, "WorkStations", r->WorkStations);
    6468             :                 }
    6469           0 :                 ndr->depth--;
    6470           0 :                 ndr->flags = _flags_save_string;
    6471             :         }
    6472           0 :         ndr_print_uint16(ndr, "WorkStationsHigh", r->WorkStationsHigh);
    6473           0 :         ndr_print_uint32(ndr, "MaxStorage", r->MaxStorage);
    6474           0 :         ndr_print_uint16(ndr, "UnitsPerWeek", r->UnitsPerWeek);
    6475           0 :         ndr_print_ptr(ndr, "LogonHours", r->LogonHours);
    6476           0 :         ndr->depth++;
    6477           0 :         if (r->LogonHours) {
    6478           0 :                 ndr_print_rap_LogonHours(ndr, "LogonHours", r->LogonHours);
    6479             :         }
    6480           0 :         ndr->depth--;
    6481           0 :         ndr_print_uint16(ndr, "LogonHoursHigh", r->LogonHoursHigh);
    6482           0 :         ndr_print_uint16(ndr, "CodePage", r->CodePage);
    6483           0 :         ndr->depth--;
    6484             : }
    6485             : 
    6486           8 : _PUBLIC_ enum ndr_err_code ndr_push_rap_netuser_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union rap_netuser_info *r)
    6487             : {
    6488           0 :         uint32_t level;
    6489           8 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    6490           8 :         if (ndr_flags & NDR_SCALARS) {
    6491             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    6492           8 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    6493           8 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
    6494           8 :                 switch (level) {
    6495           0 :                         case 0: {
    6496           0 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo0(ndr, NDR_SCALARS, &r->info0));
    6497           0 :                         break; }
    6498             : 
    6499           8 :                         case 1: {
    6500           8 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo1(ndr, NDR_SCALARS, &r->info1));
    6501           8 :                         break; }
    6502             : 
    6503           0 :                         case 2: {
    6504           0 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo2(ndr, NDR_SCALARS, &r->info2));
    6505           0 :                         break; }
    6506             : 
    6507           0 :                         case 10: {
    6508           0 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo10(ndr, NDR_SCALARS, &r->info10));
    6509           0 :                         break; }
    6510             : 
    6511           0 :                         case 11: {
    6512           0 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo11(ndr, NDR_SCALARS, &r->info11));
    6513           0 :                         break; }
    6514             : 
    6515           0 :                         default:
    6516           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    6517             :                 }
    6518             :         }
    6519           8 :         if (ndr_flags & NDR_BUFFERS) {
    6520           8 :                 if (!(ndr_flags & NDR_SCALARS)) {
    6521             :                         /* We didn't get it above, and the token is not needed after this. */
    6522           0 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    6523             :                 }
    6524           8 :                 switch (level) {
    6525           0 :                         case 0:
    6526           0 :                         break;
    6527             : 
    6528           8 :                         case 1:
    6529           8 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo1(ndr, NDR_BUFFERS, &r->info1));
    6530           8 :                         break;
    6531             : 
    6532           0 :                         case 2:
    6533           0 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo2(ndr, NDR_BUFFERS, &r->info2));
    6534           0 :                         break;
    6535             : 
    6536           0 :                         case 10:
    6537           0 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo10(ndr, NDR_BUFFERS, &r->info10));
    6538           0 :                         break;
    6539             : 
    6540           0 :                         case 11:
    6541           0 :                                 NDR_CHECK(ndr_push_rap_NetUserInfo11(ndr, NDR_BUFFERS, &r->info11));
    6542           0 :                         break;
    6543             : 
    6544           0 :                         default:
    6545           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    6546             :                 }
    6547             :         }
    6548           8 :         return NDR_ERR_SUCCESS;
    6549             : }
    6550             : 
    6551          20 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_netuser_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union rap_netuser_info *r)
    6552             : {
    6553           0 :         uint32_t level;
    6554          20 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    6555          20 :         if (ndr_flags & NDR_SCALARS) {
    6556             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    6557          20 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    6558          20 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
    6559          20 :                 switch (level) {
    6560           4 :                         case 0: {
    6561           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo0(ndr, NDR_SCALARS, &r->info0));
    6562           4 :                         break; }
    6563             : 
    6564           4 :                         case 1: {
    6565           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo1(ndr, NDR_SCALARS, &r->info1));
    6566           4 :                         break; }
    6567             : 
    6568           4 :                         case 2: {
    6569           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo2(ndr, NDR_SCALARS, &r->info2));
    6570           4 :                         break; }
    6571             : 
    6572           4 :                         case 10: {
    6573           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo10(ndr, NDR_SCALARS, &r->info10));
    6574           4 :                         break; }
    6575             : 
    6576           4 :                         case 11: {
    6577           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo11(ndr, NDR_SCALARS, &r->info11));
    6578           4 :                         break; }
    6579             : 
    6580           0 :                         default:
    6581           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    6582             :                 }
    6583             :         }
    6584          20 :         if (ndr_flags & NDR_BUFFERS) {
    6585          20 :                 if (!(ndr_flags & NDR_SCALARS)) {
    6586             :                         /* We didn't get it above, and the token is not needed after this. */
    6587           0 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    6588             :                 }
    6589          20 :                 switch (level) {
    6590           4 :                         case 0:
    6591           4 :                         break;
    6592             : 
    6593           4 :                         case 1:
    6594           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo1(ndr, NDR_BUFFERS, &r->info1));
    6595           4 :                         break;
    6596             : 
    6597           4 :                         case 2:
    6598           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo2(ndr, NDR_BUFFERS, &r->info2));
    6599           4 :                         break;
    6600             : 
    6601           4 :                         case 10:
    6602           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo10(ndr, NDR_BUFFERS, &r->info10));
    6603           4 :                         break;
    6604             : 
    6605           4 :                         case 11:
    6606           4 :                                 NDR_CHECK(ndr_pull_rap_NetUserInfo11(ndr, NDR_BUFFERS, &r->info11));
    6607           4 :                         break;
    6608             : 
    6609           0 :                         default:
    6610           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    6611             :                 }
    6612             :         }
    6613          20 :         return NDR_ERR_SUCCESS;
    6614             : }
    6615             : 
    6616           0 : _PUBLIC_ void ndr_print_rap_netuser_info(struct ndr_print *ndr, const char *name, const union rap_netuser_info *r)
    6617             : {
    6618           0 :         uint32_t level;
    6619           0 :         level = ndr_print_steal_switch_value(ndr, r);
    6620           0 :         ndr_print_union(ndr, name, level, "rap_netuser_info");
    6621           0 :         switch (level) {
    6622           0 :                 case 0:
    6623           0 :                         ndr_print_rap_NetUserInfo0(ndr, "info0", &r->info0);
    6624           0 :                 break;
    6625             : 
    6626           0 :                 case 1:
    6627           0 :                         ndr_print_rap_NetUserInfo1(ndr, "info1", &r->info1);
    6628           0 :                 break;
    6629             : 
    6630           0 :                 case 2:
    6631           0 :                         ndr_print_rap_NetUserInfo2(ndr, "info2", &r->info2);
    6632           0 :                 break;
    6633             : 
    6634           0 :                 case 10:
    6635           0 :                         ndr_print_rap_NetUserInfo10(ndr, "info10", &r->info10);
    6636           0 :                 break;
    6637             : 
    6638           0 :                 case 11:
    6639           0 :                         ndr_print_rap_NetUserInfo11(ndr, "info11", &r->info11);
    6640           0 :                 break;
    6641             : 
    6642           0 :                 default:
    6643           0 :                         ndr_print_bad_level(ndr, name, level);
    6644             :         }
    6645           0 : }
    6646             : 
    6647           0 : static enum ndr_err_code ndr_push_rap_session_info_2(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_session_info_2 *r)
    6648             : {
    6649           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    6650           0 :         if (ndr_flags & NDR_SCALARS) {
    6651           0 :                 NDR_CHECK(ndr_push_align(ndr, 5));
    6652             :                 {
    6653           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6654           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6655           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->ComputerName));
    6656           0 :                         ndr->flags = _flags_save_string;
    6657             :                 }
    6658           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->ComputerNameHigh));
    6659             :                 {
    6660           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6661           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6662           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->UserName));
    6663           0 :                         ndr->flags = _flags_save_string;
    6664             :                 }
    6665           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->UserNameHigh));
    6666           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->num_conns));
    6667           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->num_opens));
    6668           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->num_users));
    6669           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->sess_time));
    6670           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->idle_time));
    6671           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->user_flags));
    6672             :                 {
    6673           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6674           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6675           0 :                         NDR_CHECK(ndr_push_short_relative_ptr1(ndr, r->CliTypeName));
    6676           0 :                         ndr->flags = _flags_save_string;
    6677             :                 }
    6678           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->CliTypeNameHigh));
    6679           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 5));
    6680             :         }
    6681           0 :         if (ndr_flags & NDR_BUFFERS) {
    6682             :                 {
    6683           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6684           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6685           0 :                         if (r->ComputerName) {
    6686           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->ComputerName));
    6687           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->ComputerName));
    6688             :                         }
    6689           0 :                         ndr->flags = _flags_save_string;
    6690             :                 }
    6691             :                 {
    6692           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6693           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6694           0 :                         if (r->UserName) {
    6695           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->UserName));
    6696           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->UserName));
    6697             :                         }
    6698           0 :                         ndr->flags = _flags_save_string;
    6699             :                 }
    6700             :                 {
    6701           0 :                         libndr_flags _flags_save_string = ndr->flags;
    6702           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6703           0 :                         if (r->CliTypeName) {
    6704           0 :                                 NDR_CHECK(ndr_push_short_relative_ptr2(ndr, r->CliTypeName));
    6705           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->CliTypeName));
    6706             :                         }
    6707           0 :                         ndr->flags = _flags_save_string;
    6708             :                 }
    6709             :         }
    6710           0 :         return NDR_ERR_SUCCESS;
    6711             : }
    6712             : 
    6713           8 : static enum ndr_err_code ndr_pull_rap_session_info_2(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_session_info_2 *r)
    6714             : {
    6715           0 :         uint16_t _ptr_ComputerName;
    6716           8 :         TALLOC_CTX *_mem_save_ComputerName_0 = NULL;
    6717           0 :         uint16_t _ptr_UserName;
    6718           8 :         TALLOC_CTX *_mem_save_UserName_0 = NULL;
    6719           0 :         uint16_t _ptr_CliTypeName;
    6720           8 :         TALLOC_CTX *_mem_save_CliTypeName_0 = NULL;
    6721           8 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    6722           8 :         if (ndr_flags & NDR_SCALARS) {
    6723           4 :                 NDR_CHECK(ndr_pull_align(ndr, 5));
    6724             :                 {
    6725           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6726           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6727           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_ComputerName));
    6728           4 :                         if (_ptr_ComputerName) {
    6729           4 :                                 NDR_PULL_ALLOC(ndr, r->ComputerName);
    6730           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->ComputerName, _ptr_ComputerName));
    6731             :                         } else {
    6732           0 :                                 r->ComputerName = NULL;
    6733             :                         }
    6734           4 :                         ndr->flags = _flags_save_string;
    6735             :                 }
    6736           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->ComputerNameHigh));
    6737             :                 {
    6738           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6739           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6740           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_UserName));
    6741           4 :                         if (_ptr_UserName) {
    6742           4 :                                 NDR_PULL_ALLOC(ndr, r->UserName);
    6743           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->UserName, _ptr_UserName));
    6744             :                         } else {
    6745           0 :                                 r->UserName = NULL;
    6746             :                         }
    6747           4 :                         ndr->flags = _flags_save_string;
    6748             :                 }
    6749           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->UserNameHigh));
    6750           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->num_conns));
    6751           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->num_opens));
    6752           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->num_users));
    6753           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->sess_time));
    6754           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->idle_time));
    6755           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->user_flags));
    6756             :                 {
    6757           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6758           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6759           4 :                         NDR_CHECK(ndr_pull_relative_ptr_short(ndr, &_ptr_CliTypeName));
    6760           4 :                         if (_ptr_CliTypeName) {
    6761           4 :                                 NDR_PULL_ALLOC(ndr, r->CliTypeName);
    6762           4 :                                 NDR_CHECK(ndr_pull_relative_ptr1(ndr, r->CliTypeName, _ptr_CliTypeName));
    6763             :                         } else {
    6764           0 :                                 r->CliTypeName = NULL;
    6765             :                         }
    6766           4 :                         ndr->flags = _flags_save_string;
    6767             :                 }
    6768           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->CliTypeNameHigh));
    6769           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 5));
    6770             :         }
    6771           8 :         if (ndr_flags & NDR_BUFFERS) {
    6772             :                 {
    6773           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6774           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6775           4 :                         if (r->ComputerName) {
    6776           0 :                                 uint32_t _relative_save_offset;
    6777           4 :                                 _relative_save_offset = ndr->offset;
    6778           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->ComputerName));
    6779           4 :                                 _mem_save_ComputerName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6780           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->ComputerName, 0);
    6781           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->ComputerName));
    6782           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ComputerName_0, 0);
    6783           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6784           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6785             :                                 }
    6786           4 :                                 ndr->offset = _relative_save_offset;
    6787             :                         }
    6788           4 :                         ndr->flags = _flags_save_string;
    6789             :                 }
    6790             :                 {
    6791           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6792           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6793           4 :                         if (r->UserName) {
    6794           0 :                                 uint32_t _relative_save_offset;
    6795           4 :                                 _relative_save_offset = ndr->offset;
    6796           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->UserName));
    6797           4 :                                 _mem_save_UserName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6798           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->UserName, 0);
    6799           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->UserName));
    6800           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_UserName_0, 0);
    6801           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6802           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6803             :                                 }
    6804           4 :                                 ndr->offset = _relative_save_offset;
    6805             :                         }
    6806           4 :                         ndr->flags = _flags_save_string;
    6807             :                 }
    6808             :                 {
    6809           4 :                         libndr_flags _flags_save_string = ndr->flags;
    6810           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6811           4 :                         if (r->CliTypeName) {
    6812           0 :                                 uint32_t _relative_save_offset;
    6813           4 :                                 _relative_save_offset = ndr->offset;
    6814           4 :                                 NDR_CHECK(ndr_pull_relative_ptr2(ndr, r->CliTypeName));
    6815           4 :                                 _mem_save_CliTypeName_0 = NDR_PULL_GET_MEM_CTX(ndr);
    6816           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->CliTypeName, 0);
    6817           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->CliTypeName));
    6818           4 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_CliTypeName_0, 0);
    6819           4 :                                 if (ndr->offset > ndr->relative_highest_offset) {
    6820           4 :                                         ndr->relative_highest_offset = ndr->offset;
    6821             :                                 }
    6822           4 :                                 ndr->offset = _relative_save_offset;
    6823             :                         }
    6824           4 :                         ndr->flags = _flags_save_string;
    6825             :                 }
    6826             :         }
    6827           8 :         return NDR_ERR_SUCCESS;
    6828             : }
    6829             : 
    6830           0 : _PUBLIC_ void ndr_print_rap_session_info_2(struct ndr_print *ndr, const char *name, const struct rap_session_info_2 *r)
    6831             : {
    6832           0 :         ndr_print_struct(ndr, name, "rap_session_info_2");
    6833           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    6834           0 :         ndr->depth++;
    6835             :         {
    6836           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6837           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6838           0 :                 ndr_print_ptr(ndr, "ComputerName", r->ComputerName);
    6839           0 :                 ndr->depth++;
    6840           0 :                 if (r->ComputerName) {
    6841           0 :                         ndr_print_string(ndr, "ComputerName", r->ComputerName);
    6842             :                 }
    6843           0 :                 ndr->depth--;
    6844           0 :                 ndr->flags = _flags_save_string;
    6845             :         }
    6846           0 :         ndr_print_uint16(ndr, "ComputerNameHigh", r->ComputerNameHigh);
    6847             :         {
    6848           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6849           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6850           0 :                 ndr_print_ptr(ndr, "UserName", r->UserName);
    6851           0 :                 ndr->depth++;
    6852           0 :                 if (r->UserName) {
    6853           0 :                         ndr_print_string(ndr, "UserName", r->UserName);
    6854             :                 }
    6855           0 :                 ndr->depth--;
    6856           0 :                 ndr->flags = _flags_save_string;
    6857             :         }
    6858           0 :         ndr_print_uint16(ndr, "UserNameHigh", r->UserNameHigh);
    6859           0 :         ndr_print_uint16(ndr, "num_conns", r->num_conns);
    6860           0 :         ndr_print_uint16(ndr, "num_opens", r->num_opens);
    6861           0 :         ndr_print_uint16(ndr, "num_users", r->num_users);
    6862           0 :         ndr_print_uint32(ndr, "sess_time", r->sess_time);
    6863           0 :         ndr_print_uint32(ndr, "idle_time", r->idle_time);
    6864           0 :         ndr_print_uint32(ndr, "user_flags", r->user_flags);
    6865             :         {
    6866           0 :                 libndr_flags _flags_save_string = ndr->flags;
    6867           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    6868           0 :                 ndr_print_ptr(ndr, "CliTypeName", r->CliTypeName);
    6869           0 :                 ndr->depth++;
    6870           0 :                 if (r->CliTypeName) {
    6871           0 :                         ndr_print_string(ndr, "CliTypeName", r->CliTypeName);
    6872             :                 }
    6873           0 :                 ndr->depth--;
    6874           0 :                 ndr->flags = _flags_save_string;
    6875             :         }
    6876           0 :         ndr_print_uint16(ndr, "CliTypeNameHigh", r->CliTypeNameHigh);
    6877           0 :         ndr->depth--;
    6878             : }
    6879             : 
    6880           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_session_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const union rap_session_info *r)
    6881             : {
    6882           0 :         uint32_t level;
    6883           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    6884           0 :         if (ndr_flags & NDR_SCALARS) {
    6885             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    6886           0 :                 NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    6887           0 :                 NDR_CHECK(ndr_push_union_align(ndr, 5));
    6888           0 :                 switch (level) {
    6889           0 :                         case 2: {
    6890           0 :                                 NDR_CHECK(ndr_push_rap_session_info_2(ndr, NDR_SCALARS, &r->info2));
    6891           0 :                         break; }
    6892             : 
    6893           0 :                         default:
    6894           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    6895             :                 }
    6896             :         }
    6897           0 :         if (ndr_flags & NDR_BUFFERS) {
    6898           0 :                 if (!(ndr_flags & NDR_SCALARS)) {
    6899             :                         /* We didn't get it above, and the token is not needed after this. */
    6900           0 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
    6901             :                 }
    6902           0 :                 switch (level) {
    6903           0 :                         case 2:
    6904           0 :                                 NDR_CHECK(ndr_push_rap_session_info_2(ndr, NDR_BUFFERS, &r->info2));
    6905           0 :                         break;
    6906             : 
    6907           0 :                         default:
    6908           0 :                                 return ndr_push_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32, level);
    6909             :                 }
    6910             :         }
    6911           0 :         return NDR_ERR_SUCCESS;
    6912             : }
    6913             : 
    6914           8 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_session_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, union rap_session_info *r)
    6915             : {
    6916           0 :         uint32_t level;
    6917           8 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    6918           8 :         if (ndr_flags & NDR_SCALARS) {
    6919             :                 /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
    6920           4 :                 NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    6921           4 :                 NDR_CHECK(ndr_pull_union_align(ndr, 5));
    6922           4 :                 switch (level) {
    6923           4 :                         case 2: {
    6924           4 :                                 NDR_CHECK(ndr_pull_rap_session_info_2(ndr, NDR_SCALARS, &r->info2));
    6925           4 :                         break; }
    6926             : 
    6927           0 :                         default:
    6928           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    6929             :                 }
    6930             :         }
    6931           8 :         if (ndr_flags & NDR_BUFFERS) {
    6932           4 :                 if (!(ndr_flags & NDR_SCALARS)) {
    6933             :                         /* We didn't get it above, and the token is not needed after this. */
    6934           4 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
    6935             :                 }
    6936           4 :                 switch (level) {
    6937           4 :                         case 2:
    6938           4 :                                 NDR_CHECK(ndr_pull_rap_session_info_2(ndr, NDR_BUFFERS, &r->info2));
    6939           4 :                         break;
    6940             : 
    6941           0 :                         default:
    6942           0 :                                 return ndr_pull_error(ndr, NDR_ERR_BAD_SWITCH, "Bad switch value %"PRIu32" at %s", level, __location__);
    6943             :                 }
    6944             :         }
    6945           8 :         return NDR_ERR_SUCCESS;
    6946             : }
    6947             : 
    6948           0 : _PUBLIC_ void ndr_print_rap_session_info(struct ndr_print *ndr, const char *name, const union rap_session_info *r)
    6949             : {
    6950           0 :         uint32_t level;
    6951           0 :         level = ndr_print_steal_switch_value(ndr, r);
    6952           0 :         ndr_print_union(ndr, name, level, "rap_session_info");
    6953           0 :         switch (level) {
    6954           0 :                 case 2:
    6955           0 :                         ndr_print_rap_session_info_2(ndr, "info2", &r->info2);
    6956           0 :                 break;
    6957             : 
    6958           0 :                 default:
    6959           0 :                         ndr_print_bad_level(ndr, name, level);
    6960             :         }
    6961           0 : }
    6962             : 
    6963           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_TimeOfDayInfo(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct rap_TimeOfDayInfo *r)
    6964             : {
    6965           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
    6966           0 :         if (ndr_flags & NDR_SCALARS) {
    6967           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
    6968           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->TimeSinceJan11970));
    6969           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->TimeSinceBoot));
    6970           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Hours));
    6971           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Minutes));
    6972           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Seconds));
    6973           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Hundreds));
    6974           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->TimeZone));
    6975           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->ClockFrequency));
    6976           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Day));
    6977           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Month));
    6978           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->Year));
    6979           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->Weekday));
    6980           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
    6981             :         }
    6982           0 :         if (ndr_flags & NDR_BUFFERS) {
    6983           0 :         }
    6984           0 :         return NDR_ERR_SUCCESS;
    6985             : }
    6986             : 
    6987           4 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_TimeOfDayInfo(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct rap_TimeOfDayInfo *r)
    6988             : {
    6989           4 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
    6990           4 :         if (ndr_flags & NDR_SCALARS) {
    6991           4 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
    6992           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->TimeSinceJan11970));
    6993           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->TimeSinceBoot));
    6994           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Hours));
    6995           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Minutes));
    6996           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Seconds));
    6997           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Hundreds));
    6998           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->TimeZone));
    6999           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->ClockFrequency));
    7000           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Day));
    7001           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Month));
    7002           4 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->Year));
    7003           4 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->Weekday));
    7004           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
    7005             :         }
    7006           4 :         if (ndr_flags & NDR_BUFFERS) {
    7007           0 :         }
    7008           4 :         return NDR_ERR_SUCCESS;
    7009             : }
    7010             : 
    7011           0 : static void ndr_print_flags_rap_TimeOfDayInfo(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct rap_TimeOfDayInfo *r)
    7012             : {
    7013           0 :         ndr_print_rap_TimeOfDayInfo(ndr, name, r);
    7014           0 : }
    7015             : 
    7016           0 : _PUBLIC_ void ndr_print_rap_TimeOfDayInfo(struct ndr_print *ndr, const char *name, const struct rap_TimeOfDayInfo *r)
    7017             : {
    7018           0 :         ndr_print_struct(ndr, name, "rap_TimeOfDayInfo");
    7019           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7020           0 :         ndr->depth++;
    7021           0 :         ndr_print_uint32(ndr, "TimeSinceJan11970", r->TimeSinceJan11970);
    7022           0 :         ndr_print_uint32(ndr, "TimeSinceBoot", r->TimeSinceBoot);
    7023           0 :         ndr_print_uint8(ndr, "Hours", r->Hours);
    7024           0 :         ndr_print_uint8(ndr, "Minutes", r->Minutes);
    7025           0 :         ndr_print_uint8(ndr, "Seconds", r->Seconds);
    7026           0 :         ndr_print_uint8(ndr, "Hundreds", r->Hundreds);
    7027           0 :         ndr_print_uint16(ndr, "TimeZone", r->TimeZone);
    7028           0 :         ndr_print_uint16(ndr, "ClockFrequency", r->ClockFrequency);
    7029           0 :         ndr_print_uint8(ndr, "Day", r->Day);
    7030           0 :         ndr_print_uint8(ndr, "Month", r->Month);
    7031           0 :         ndr_print_uint16(ndr, "Year", r->Year);
    7032           0 :         ndr_print_uint8(ndr, "Weekday", r->Weekday);
    7033           0 :         ndr->depth--;
    7034             : }
    7035             : 
    7036           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetShareEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetShareEnum *r)
    7037             : {
    7038           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7039           0 :         if (flags & NDR_IN) {
    7040           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    7041           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    7042             :         }
    7043           0 :         if (flags & NDR_OUT) {
    7044           0 :                 if (r->out.info == NULL) {
    7045           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7046             :                 }
    7047           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7048           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7049           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.count));
    7050           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    7051           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, r->out.info, r->in.level));
    7052           0 :                 NDR_CHECK(ndr_push_rap_share_info(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
    7053             :         }
    7054           0 :         return NDR_ERR_SUCCESS;
    7055             : }
    7056             : 
    7057           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetShareEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetShareEnum *r)
    7058             : {
    7059           0 :         TALLOC_CTX *_mem_save_info_0 = NULL;
    7060           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7061           0 :         if (flags & NDR_IN) {
    7062           0 :                 NDR_ZERO_STRUCT(r->out);
    7063             : 
    7064           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    7065           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    7066           0 :                 NDR_PULL_ALLOC(ndr, r->out.info);
    7067           0 :                 NDR_ZERO_STRUCTP(r->out.info);
    7068             :         }
    7069           0 :         if (flags & NDR_OUT) {
    7070             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7071             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7072           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7073           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7074           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.count));
    7075           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    7076           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
    7077           0 :                         NDR_PULL_ALLOC(ndr, r->out.info);
    7078             :                 }
    7079           0 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7080           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, LIBNDR_FLAG_REF_ALLOC);
    7081           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, r->out.info, r->in.level));
    7082           0 :                 NDR_CHECK(ndr_pull_rap_share_info(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.info));
    7083           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, LIBNDR_FLAG_REF_ALLOC);
    7084             :         }
    7085           0 :         return NDR_ERR_SUCCESS;
    7086             : }
    7087             : 
    7088           0 : _PUBLIC_ void ndr_print_rap_NetShareEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetShareEnum *r)
    7089             : {
    7090           0 :         ndr_print_struct(ndr, name, "rap_NetShareEnum");
    7091           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7092           0 :         ndr->depth++;
    7093           0 :         if (flags & NDR_SET_VALUES) {
    7094           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7095             :         }
    7096           0 :         if (flags & NDR_IN) {
    7097           0 :                 ndr_print_struct(ndr, "in", "rap_NetShareEnum");
    7098           0 :                 ndr->depth++;
    7099           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    7100           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    7101           0 :                 ndr->depth--;
    7102             :         }
    7103           0 :         if (flags & NDR_OUT) {
    7104           0 :                 ndr_print_struct(ndr, "out", "rap_NetShareEnum");
    7105           0 :                 ndr->depth++;
    7106           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7107           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7108           0 :                 ndr_print_uint16(ndr, "count", r->out.count);
    7109           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    7110           0 :                 ndr_print_ptr(ndr, "info", r->out.info);
    7111           0 :                 ndr->depth++;
    7112           0 :                 ndr_print_set_switch_value(ndr, r->out.info, r->in.level);
    7113           0 :                 ndr_print_rap_share_info(ndr, "info", r->out.info);
    7114           0 :                 ndr->depth--;
    7115           0 :                 ndr->depth--;
    7116             :         }
    7117           0 :         ndr->depth--;
    7118             : }
    7119             : 
    7120           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetShareAdd(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetShareAdd *r)
    7121             : {
    7122           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7123           0 :         if (flags & NDR_IN) {
    7124           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    7125           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    7126           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->in.info, r->in.level));
    7127           0 :                 NDR_CHECK(ndr_push_rap_share_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.info));
    7128             :         }
    7129           0 :         if (flags & NDR_OUT) {
    7130           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7131           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7132             :         }
    7133           0 :         return NDR_ERR_SUCCESS;
    7134             : }
    7135             : 
    7136           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetShareAdd(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetShareAdd *r)
    7137             : {
    7138           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7139           0 :         if (flags & NDR_IN) {
    7140           0 :                 NDR_ZERO_STRUCT(r->out);
    7141             : 
    7142           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    7143           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    7144           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->in.info, r->in.level));
    7145           0 :                 NDR_CHECK(ndr_pull_rap_share_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.info));
    7146             :         }
    7147           0 :         if (flags & NDR_OUT) {
    7148             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7149             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7150           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7151           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7152             :         }
    7153           0 :         return NDR_ERR_SUCCESS;
    7154             : }
    7155             : 
    7156           0 : _PUBLIC_ void ndr_print_rap_NetShareAdd(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetShareAdd *r)
    7157             : {
    7158           0 :         ndr_print_struct(ndr, name, "rap_NetShareAdd");
    7159           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7160           0 :         ndr->depth++;
    7161           0 :         if (flags & NDR_SET_VALUES) {
    7162           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7163             :         }
    7164           0 :         if (flags & NDR_IN) {
    7165           0 :                 ndr_print_struct(ndr, "in", "rap_NetShareAdd");
    7166           0 :                 ndr->depth++;
    7167           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    7168           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    7169           0 :                 ndr_print_set_switch_value(ndr, &r->in.info, r->in.level);
    7170           0 :                 ndr_print_rap_share_info(ndr, "info", &r->in.info);
    7171           0 :                 ndr->depth--;
    7172             :         }
    7173           0 :         if (flags & NDR_OUT) {
    7174           0 :                 ndr_print_struct(ndr, "out", "rap_NetShareAdd");
    7175           0 :                 ndr->depth++;
    7176           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7177           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7178           0 :                 ndr->depth--;
    7179             :         }
    7180           0 :         ndr->depth--;
    7181             : }
    7182             : 
    7183           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetServerEnum2(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetServerEnum2 *r)
    7184             : {
    7185           0 :         uint32_t cntr_info_0;
    7186           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7187           0 :         if (flags & NDR_IN) {
    7188           0 :                 if (r->in.domain == NULL) {
    7189           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
    7190             :                 }
    7191           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    7192           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    7193           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.servertype));
    7194             :                 {
    7195           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7196           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7197           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.domain));
    7198           0 :                         ndr->flags = _flags_save_string;
    7199             :                 }
    7200             :         }
    7201           0 :         if (flags & NDR_OUT) {
    7202           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7203           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7204           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.count));
    7205           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    7206           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    7207           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7208           0 :                         NDR_CHECK(ndr_push_rap_server_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    7209             :                 }
    7210           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    7211           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7212           0 :                         NDR_CHECK(ndr_push_rap_server_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    7213             :                 }
    7214             :         }
    7215           0 :         return NDR_ERR_SUCCESS;
    7216             : }
    7217             : 
    7218           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetServerEnum2(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetServerEnum2 *r)
    7219             : {
    7220           0 :         uint32_t size_info_0 = 0;
    7221           0 :         uint32_t cntr_info_0;
    7222           0 :         TALLOC_CTX *_mem_save_info_0 = NULL;
    7223           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7224           0 :         if (flags & NDR_IN) {
    7225           0 :                 NDR_ZERO_STRUCT(r->out);
    7226             : 
    7227           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    7228           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    7229           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.servertype));
    7230             :                 {
    7231           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7232           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7233           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.domain));
    7234           0 :                         ndr->flags = _flags_save_string;
    7235             :                 }
    7236             :         }
    7237           0 :         if (flags & NDR_OUT) {
    7238             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7239             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7240           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7241           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7242           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.count));
    7243           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    7244           0 :                 size_info_0 = r->out.count;
    7245           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.info, size_info_0);
    7246           0 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7247           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
    7248           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7249           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7250           0 :                         NDR_CHECK(ndr_pull_rap_server_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    7251             :                 }
    7252           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7253           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7254           0 :                         NDR_CHECK(ndr_pull_rap_server_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    7255             :                 }
    7256           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
    7257           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7258             :                 }
    7259             :         }
    7260           0 :         return NDR_ERR_SUCCESS;
    7261             : }
    7262             : 
    7263           0 : _PUBLIC_ void ndr_print_rap_NetServerEnum2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetServerEnum2 *r)
    7264             : {
    7265           0 :         uint32_t cntr_info_0;
    7266           0 :         ndr_print_struct(ndr, name, "rap_NetServerEnum2");
    7267           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7268           0 :         ndr->depth++;
    7269           0 :         if (flags & NDR_SET_VALUES) {
    7270           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7271             :         }
    7272           0 :         if (flags & NDR_IN) {
    7273           0 :                 ndr_print_struct(ndr, "in", "rap_NetServerEnum2");
    7274           0 :                 ndr->depth++;
    7275           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    7276           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    7277           0 :                 ndr_print_uint32(ndr, "servertype", r->in.servertype);
    7278             :                 {
    7279           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7280           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7281           0 :                         ndr_print_ptr(ndr, "domain", r->in.domain);
    7282           0 :                         ndr->depth++;
    7283           0 :                         ndr_print_string(ndr, "domain", r->in.domain);
    7284           0 :                         ndr->depth--;
    7285           0 :                         ndr->flags = _flags_save_string;
    7286             :                 }
    7287           0 :                 ndr->depth--;
    7288             :         }
    7289           0 :         if (flags & NDR_OUT) {
    7290           0 :                 ndr_print_struct(ndr, "out", "rap_NetServerEnum2");
    7291           0 :                 ndr->depth++;
    7292           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7293           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7294           0 :                 ndr_print_uint16(ndr, "count", r->out.count);
    7295           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    7296           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "info", (uint32_t)(r->out.count));
    7297           0 :                 ndr->depth++;
    7298           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    7299           0 :                         ndr_print_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level);
    7300           0 :                         ndr_print_rap_server_info(ndr, "info", &r->out.info[cntr_info_0]);
    7301             :                 }
    7302           0 :                 ndr->depth--;
    7303           0 :                 ndr->depth--;
    7304             :         }
    7305           0 :         ndr->depth--;
    7306             : }
    7307             : 
    7308           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_WserverGetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_WserverGetInfo *r)
    7309             : {
    7310           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7311           0 :         if (flags & NDR_IN) {
    7312           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    7313           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    7314             :         }
    7315           0 :         if (flags & NDR_OUT) {
    7316           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7317           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7318           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    7319           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info, r->in.level));
    7320           0 :                 NDR_CHECK(ndr_push_rap_server_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    7321             :         }
    7322           0 :         return NDR_ERR_SUCCESS;
    7323             : }
    7324             : 
    7325           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_WserverGetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_WserverGetInfo *r)
    7326             : {
    7327           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7328           0 :         if (flags & NDR_IN) {
    7329           0 :                 NDR_ZERO_STRUCT(r->out);
    7330             : 
    7331           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    7332           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    7333             :         }
    7334           0 :         if (flags & NDR_OUT) {
    7335             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7336             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7337           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7338           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7339           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    7340           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info, r->in.level));
    7341           0 :                 NDR_CHECK(ndr_pull_rap_server_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    7342             :         }
    7343           0 :         return NDR_ERR_SUCCESS;
    7344             : }
    7345             : 
    7346           0 : _PUBLIC_ void ndr_print_rap_WserverGetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_WserverGetInfo *r)
    7347             : {
    7348           0 :         ndr_print_struct(ndr, name, "rap_WserverGetInfo");
    7349           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7350           0 :         ndr->depth++;
    7351           0 :         if (flags & NDR_SET_VALUES) {
    7352           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7353             :         }
    7354           0 :         if (flags & NDR_IN) {
    7355           0 :                 ndr_print_struct(ndr, "in", "rap_WserverGetInfo");
    7356           0 :                 ndr->depth++;
    7357           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    7358           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    7359           0 :                 ndr->depth--;
    7360             :         }
    7361           0 :         if (flags & NDR_OUT) {
    7362           0 :                 ndr_print_struct(ndr, "out", "rap_WserverGetInfo");
    7363           0 :                 ndr->depth++;
    7364           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7365           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7366           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    7367           0 :                 ndr_print_set_switch_value(ndr, &r->out.info, r->in.level);
    7368           0 :                 ndr_print_rap_server_info(ndr, "info", &r->out.info);
    7369           0 :                 ndr->depth--;
    7370             :         }
    7371           0 :         ndr->depth--;
    7372             : }
    7373             : 
    7374           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintQEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintQEnum *r)
    7375             : {
    7376           0 :         uint32_t cntr_info_0;
    7377           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7378           0 :         if (flags & NDR_IN) {
    7379           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    7380           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    7381             :         }
    7382           0 :         if (flags & NDR_OUT) {
    7383           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7384           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7385           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.count));
    7386           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    7387           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    7388           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7389           0 :                         NDR_CHECK(ndr_push_rap_printq_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    7390             :                 }
    7391           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    7392           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7393           0 :                         NDR_CHECK(ndr_push_rap_printq_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    7394             :                 }
    7395             :         }
    7396           0 :         return NDR_ERR_SUCCESS;
    7397             : }
    7398             : 
    7399           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintQEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintQEnum *r)
    7400             : {
    7401           0 :         uint32_t size_info_0 = 0;
    7402           0 :         uint32_t cntr_info_0;
    7403           0 :         TALLOC_CTX *_mem_save_info_0 = NULL;
    7404           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7405           0 :         if (flags & NDR_IN) {
    7406           0 :                 NDR_ZERO_STRUCT(r->out);
    7407             : 
    7408           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    7409           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    7410             :         }
    7411           0 :         if (flags & NDR_OUT) {
    7412             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7413             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7414           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7415           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7416           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.count));
    7417           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    7418           0 :                 size_info_0 = r->out.count;
    7419           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.info, size_info_0);
    7420           0 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7421           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
    7422           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7423           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7424           0 :                         NDR_CHECK(ndr_pull_rap_printq_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    7425             :                 }
    7426           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7427           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7428           0 :                         NDR_CHECK(ndr_pull_rap_printq_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    7429             :                 }
    7430           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
    7431           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7432             :                 }
    7433             :         }
    7434           0 :         return NDR_ERR_SUCCESS;
    7435             : }
    7436             : 
    7437           0 : _PUBLIC_ void ndr_print_rap_NetPrintQEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintQEnum *r)
    7438             : {
    7439           0 :         uint32_t cntr_info_0;
    7440           0 :         ndr_print_struct(ndr, name, "rap_NetPrintQEnum");
    7441           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7442           0 :         ndr->depth++;
    7443           0 :         if (flags & NDR_SET_VALUES) {
    7444           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7445             :         }
    7446           0 :         if (flags & NDR_IN) {
    7447           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintQEnum");
    7448           0 :                 ndr->depth++;
    7449           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    7450           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    7451           0 :                 ndr->depth--;
    7452             :         }
    7453           0 :         if (flags & NDR_OUT) {
    7454           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintQEnum");
    7455           0 :                 ndr->depth++;
    7456           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7457           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7458           0 :                 ndr_print_uint16(ndr, "count", r->out.count);
    7459           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    7460           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "info", (uint32_t)(r->out.count));
    7461           0 :                 ndr->depth++;
    7462           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    7463           0 :                         ndr_print_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level);
    7464           0 :                         ndr_print_rap_printq_info(ndr, "info", &r->out.info[cntr_info_0]);
    7465             :                 }
    7466           0 :                 ndr->depth--;
    7467           0 :                 ndr->depth--;
    7468             :         }
    7469           0 :         ndr->depth--;
    7470             : }
    7471             : 
    7472           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintQGetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintQGetInfo *r)
    7473             : {
    7474           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7475           0 :         if (flags & NDR_IN) {
    7476             :                 {
    7477           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7478           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7479           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.PrintQueueName));
    7480           0 :                         ndr->flags = _flags_save_string;
    7481             :                 }
    7482           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    7483           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    7484             :         }
    7485           0 :         if (flags & NDR_OUT) {
    7486           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7487           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7488           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    7489           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info, r->in.level));
    7490           0 :                 NDR_CHECK(ndr_push_rap_printq_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    7491             :         }
    7492           0 :         return NDR_ERR_SUCCESS;
    7493             : }
    7494             : 
    7495           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintQGetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintQGetInfo *r)
    7496             : {
    7497           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7498           0 :         if (flags & NDR_IN) {
    7499           0 :                 NDR_ZERO_STRUCT(r->out);
    7500             : 
    7501             :                 {
    7502           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7503           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7504           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.PrintQueueName));
    7505           0 :                         ndr->flags = _flags_save_string;
    7506             :                 }
    7507           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    7508           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    7509             :         }
    7510           0 :         if (flags & NDR_OUT) {
    7511             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7512             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7513           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7514           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7515           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    7516           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info, r->in.level));
    7517           0 :                 NDR_CHECK(ndr_pull_rap_printq_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    7518             :         }
    7519           0 :         return NDR_ERR_SUCCESS;
    7520             : }
    7521             : 
    7522           0 : _PUBLIC_ void ndr_print_rap_NetPrintQGetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintQGetInfo *r)
    7523             : {
    7524           0 :         ndr_print_struct(ndr, name, "rap_NetPrintQGetInfo");
    7525           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7526           0 :         ndr->depth++;
    7527           0 :         if (flags & NDR_SET_VALUES) {
    7528           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7529             :         }
    7530           0 :         if (flags & NDR_IN) {
    7531           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintQGetInfo");
    7532           0 :                 ndr->depth++;
    7533             :                 {
    7534           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7535           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7536           0 :                         ndr_print_string(ndr, "PrintQueueName", r->in.PrintQueueName);
    7537           0 :                         ndr->flags = _flags_save_string;
    7538             :                 }
    7539           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    7540           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    7541           0 :                 ndr->depth--;
    7542             :         }
    7543           0 :         if (flags & NDR_OUT) {
    7544           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintQGetInfo");
    7545           0 :                 ndr->depth++;
    7546           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7547           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7548           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    7549           0 :                 ndr_print_set_switch_value(ndr, &r->out.info, r->in.level);
    7550           0 :                 ndr_print_rap_printq_info(ndr, "info", &r->out.info);
    7551           0 :                 ndr->depth--;
    7552             :         }
    7553           0 :         ndr->depth--;
    7554             : }
    7555             : 
    7556           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobPause(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintJobPause *r)
    7557             : {
    7558           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7559           0 :         if (flags & NDR_IN) {
    7560           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.JobID));
    7561             :         }
    7562           0 :         if (flags & NDR_OUT) {
    7563           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7564           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7565             :         }
    7566           0 :         return NDR_ERR_SUCCESS;
    7567             : }
    7568             : 
    7569           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobPause(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintJobPause *r)
    7570             : {
    7571           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7572           0 :         if (flags & NDR_IN) {
    7573           0 :                 NDR_ZERO_STRUCT(r->out);
    7574             : 
    7575           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.JobID));
    7576             :         }
    7577           0 :         if (flags & NDR_OUT) {
    7578             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7579             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7580           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7581           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7582             :         }
    7583           0 :         return NDR_ERR_SUCCESS;
    7584             : }
    7585             : 
    7586           0 : _PUBLIC_ void ndr_print_rap_NetPrintJobPause(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintJobPause *r)
    7587             : {
    7588           0 :         ndr_print_struct(ndr, name, "rap_NetPrintJobPause");
    7589           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7590           0 :         ndr->depth++;
    7591           0 :         if (flags & NDR_SET_VALUES) {
    7592           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7593             :         }
    7594           0 :         if (flags & NDR_IN) {
    7595           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintJobPause");
    7596           0 :                 ndr->depth++;
    7597           0 :                 ndr_print_uint16(ndr, "JobID", r->in.JobID);
    7598           0 :                 ndr->depth--;
    7599             :         }
    7600           0 :         if (flags & NDR_OUT) {
    7601           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintJobPause");
    7602           0 :                 ndr->depth++;
    7603           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7604           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7605           0 :                 ndr->depth--;
    7606             :         }
    7607           0 :         ndr->depth--;
    7608             : }
    7609             : 
    7610           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobContinue(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintJobContinue *r)
    7611             : {
    7612           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7613           0 :         if (flags & NDR_IN) {
    7614           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.JobID));
    7615             :         }
    7616           0 :         if (flags & NDR_OUT) {
    7617           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7618           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7619             :         }
    7620           0 :         return NDR_ERR_SUCCESS;
    7621             : }
    7622             : 
    7623           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobContinue(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintJobContinue *r)
    7624             : {
    7625           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7626           0 :         if (flags & NDR_IN) {
    7627           0 :                 NDR_ZERO_STRUCT(r->out);
    7628             : 
    7629           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.JobID));
    7630             :         }
    7631           0 :         if (flags & NDR_OUT) {
    7632             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7633             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7634           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7635           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7636             :         }
    7637           0 :         return NDR_ERR_SUCCESS;
    7638             : }
    7639             : 
    7640           0 : _PUBLIC_ void ndr_print_rap_NetPrintJobContinue(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintJobContinue *r)
    7641             : {
    7642           0 :         ndr_print_struct(ndr, name, "rap_NetPrintJobContinue");
    7643           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7644           0 :         ndr->depth++;
    7645           0 :         if (flags & NDR_SET_VALUES) {
    7646           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7647             :         }
    7648           0 :         if (flags & NDR_IN) {
    7649           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintJobContinue");
    7650           0 :                 ndr->depth++;
    7651           0 :                 ndr_print_uint16(ndr, "JobID", r->in.JobID);
    7652           0 :                 ndr->depth--;
    7653             :         }
    7654           0 :         if (flags & NDR_OUT) {
    7655           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintJobContinue");
    7656           0 :                 ndr->depth++;
    7657           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7658           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7659           0 :                 ndr->depth--;
    7660             :         }
    7661           0 :         ndr->depth--;
    7662             : }
    7663             : 
    7664           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobDelete(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintJobDelete *r)
    7665             : {
    7666           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7667           0 :         if (flags & NDR_IN) {
    7668           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.JobID));
    7669             :         }
    7670           0 :         if (flags & NDR_OUT) {
    7671           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7672           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7673             :         }
    7674           0 :         return NDR_ERR_SUCCESS;
    7675             : }
    7676             : 
    7677           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobDelete(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintJobDelete *r)
    7678             : {
    7679           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7680           0 :         if (flags & NDR_IN) {
    7681           0 :                 NDR_ZERO_STRUCT(r->out);
    7682             : 
    7683           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.JobID));
    7684             :         }
    7685           0 :         if (flags & NDR_OUT) {
    7686             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7687             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7688           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7689           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7690             :         }
    7691           0 :         return NDR_ERR_SUCCESS;
    7692             : }
    7693             : 
    7694           0 : _PUBLIC_ void ndr_print_rap_NetPrintJobDelete(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintJobDelete *r)
    7695             : {
    7696           0 :         ndr_print_struct(ndr, name, "rap_NetPrintJobDelete");
    7697           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7698           0 :         ndr->depth++;
    7699           0 :         if (flags & NDR_SET_VALUES) {
    7700           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7701             :         }
    7702           0 :         if (flags & NDR_IN) {
    7703           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintJobDelete");
    7704           0 :                 ndr->depth++;
    7705           0 :                 ndr_print_uint16(ndr, "JobID", r->in.JobID);
    7706           0 :                 ndr->depth--;
    7707             :         }
    7708           0 :         if (flags & NDR_OUT) {
    7709           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintJobDelete");
    7710           0 :                 ndr->depth++;
    7711           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7712           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7713           0 :                 ndr->depth--;
    7714             :         }
    7715           0 :         ndr->depth--;
    7716             : }
    7717             : 
    7718           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintQueuePause(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintQueuePause *r)
    7719             : {
    7720           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7721           0 :         if (flags & NDR_IN) {
    7722             :                 {
    7723           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7724           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7725           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.PrintQueueName));
    7726           0 :                         ndr->flags = _flags_save_string;
    7727             :                 }
    7728             :         }
    7729           0 :         if (flags & NDR_OUT) {
    7730           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7731           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7732             :         }
    7733           0 :         return NDR_ERR_SUCCESS;
    7734             : }
    7735             : 
    7736           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintQueuePause(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintQueuePause *r)
    7737             : {
    7738           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7739           0 :         if (flags & NDR_IN) {
    7740           0 :                 NDR_ZERO_STRUCT(r->out);
    7741             : 
    7742             :                 {
    7743           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7744           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7745           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.PrintQueueName));
    7746           0 :                         ndr->flags = _flags_save_string;
    7747             :                 }
    7748             :         }
    7749           0 :         if (flags & NDR_OUT) {
    7750             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7751             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7752           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7753           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7754             :         }
    7755           0 :         return NDR_ERR_SUCCESS;
    7756             : }
    7757             : 
    7758           0 : _PUBLIC_ void ndr_print_rap_NetPrintQueuePause(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintQueuePause *r)
    7759             : {
    7760           0 :         ndr_print_struct(ndr, name, "rap_NetPrintQueuePause");
    7761           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7762           0 :         ndr->depth++;
    7763           0 :         if (flags & NDR_SET_VALUES) {
    7764           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7765             :         }
    7766           0 :         if (flags & NDR_IN) {
    7767           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintQueuePause");
    7768           0 :                 ndr->depth++;
    7769             :                 {
    7770           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7771           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7772           0 :                         ndr_print_string(ndr, "PrintQueueName", r->in.PrintQueueName);
    7773           0 :                         ndr->flags = _flags_save_string;
    7774             :                 }
    7775           0 :                 ndr->depth--;
    7776             :         }
    7777           0 :         if (flags & NDR_OUT) {
    7778           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintQueuePause");
    7779           0 :                 ndr->depth++;
    7780           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7781           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7782           0 :                 ndr->depth--;
    7783             :         }
    7784           0 :         ndr->depth--;
    7785             : }
    7786             : 
    7787           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintQueueResume(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintQueueResume *r)
    7788             : {
    7789           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7790           0 :         if (flags & NDR_IN) {
    7791             :                 {
    7792           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7793           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7794           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.PrintQueueName));
    7795           0 :                         ndr->flags = _flags_save_string;
    7796             :                 }
    7797             :         }
    7798           0 :         if (flags & NDR_OUT) {
    7799           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7800           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7801             :         }
    7802           0 :         return NDR_ERR_SUCCESS;
    7803             : }
    7804             : 
    7805           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintQueueResume(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintQueueResume *r)
    7806             : {
    7807           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7808           0 :         if (flags & NDR_IN) {
    7809           0 :                 NDR_ZERO_STRUCT(r->out);
    7810             : 
    7811             :                 {
    7812           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7813           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7814           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.PrintQueueName));
    7815           0 :                         ndr->flags = _flags_save_string;
    7816             :                 }
    7817             :         }
    7818           0 :         if (flags & NDR_OUT) {
    7819             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7820             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7821           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7822           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7823             :         }
    7824           0 :         return NDR_ERR_SUCCESS;
    7825             : }
    7826             : 
    7827           0 : _PUBLIC_ void ndr_print_rap_NetPrintQueueResume(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintQueueResume *r)
    7828             : {
    7829           0 :         ndr_print_struct(ndr, name, "rap_NetPrintQueueResume");
    7830           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7831           0 :         ndr->depth++;
    7832           0 :         if (flags & NDR_SET_VALUES) {
    7833           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7834             :         }
    7835           0 :         if (flags & NDR_IN) {
    7836           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintQueueResume");
    7837           0 :                 ndr->depth++;
    7838             :                 {
    7839           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7840           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7841           0 :                         ndr_print_string(ndr, "PrintQueueName", r->in.PrintQueueName);
    7842           0 :                         ndr->flags = _flags_save_string;
    7843             :                 }
    7844           0 :                 ndr->depth--;
    7845             :         }
    7846           0 :         if (flags & NDR_OUT) {
    7847           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintQueueResume");
    7848           0 :                 ndr->depth++;
    7849           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7850           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7851           0 :                 ndr->depth--;
    7852             :         }
    7853           0 :         ndr->depth--;
    7854             : }
    7855             : 
    7856           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintQueuePurge(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintQueuePurge *r)
    7857             : {
    7858           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7859           0 :         if (flags & NDR_IN) {
    7860             :                 {
    7861           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7862           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7863           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.PrintQueueName));
    7864           0 :                         ndr->flags = _flags_save_string;
    7865             :                 }
    7866             :         }
    7867           0 :         if (flags & NDR_OUT) {
    7868           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7869           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7870             :         }
    7871           0 :         return NDR_ERR_SUCCESS;
    7872             : }
    7873             : 
    7874           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintQueuePurge(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintQueuePurge *r)
    7875             : {
    7876           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7877           0 :         if (flags & NDR_IN) {
    7878           0 :                 NDR_ZERO_STRUCT(r->out);
    7879             : 
    7880             :                 {
    7881           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7882           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7883           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.PrintQueueName));
    7884           0 :                         ndr->flags = _flags_save_string;
    7885             :                 }
    7886             :         }
    7887           0 :         if (flags & NDR_OUT) {
    7888             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7889             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7890           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7891           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7892             :         }
    7893           0 :         return NDR_ERR_SUCCESS;
    7894             : }
    7895             : 
    7896           0 : _PUBLIC_ void ndr_print_rap_NetPrintQueuePurge(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintQueuePurge *r)
    7897             : {
    7898           0 :         ndr_print_struct(ndr, name, "rap_NetPrintQueuePurge");
    7899           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    7900           0 :         ndr->depth++;
    7901           0 :         if (flags & NDR_SET_VALUES) {
    7902           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    7903             :         }
    7904           0 :         if (flags & NDR_IN) {
    7905           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintQueuePurge");
    7906           0 :                 ndr->depth++;
    7907             :                 {
    7908           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7909           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7910           0 :                         ndr_print_string(ndr, "PrintQueueName", r->in.PrintQueueName);
    7911           0 :                         ndr->flags = _flags_save_string;
    7912             :                 }
    7913           0 :                 ndr->depth--;
    7914             :         }
    7915           0 :         if (flags & NDR_OUT) {
    7916           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintQueuePurge");
    7917           0 :                 ndr->depth++;
    7918           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    7919           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    7920           0 :                 ndr->depth--;
    7921             :         }
    7922           0 :         ndr->depth--;
    7923             : }
    7924             : 
    7925           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintJobEnum *r)
    7926             : {
    7927           0 :         uint32_t cntr_info_0;
    7928           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    7929           0 :         if (flags & NDR_IN) {
    7930             :                 {
    7931           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7932           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7933           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.PrintQueueName));
    7934           0 :                         ndr->flags = _flags_save_string;
    7935             :                 }
    7936           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    7937           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    7938             :         }
    7939           0 :         if (flags & NDR_OUT) {
    7940           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    7941           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    7942           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.count));
    7943           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    7944           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    7945           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7946           0 :                         NDR_CHECK(ndr_push_rap_printj_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    7947             :                 }
    7948           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    7949           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7950           0 :                         NDR_CHECK(ndr_push_rap_printj_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    7951             :                 }
    7952             :         }
    7953           0 :         return NDR_ERR_SUCCESS;
    7954             : }
    7955             : 
    7956           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintJobEnum *r)
    7957             : {
    7958           0 :         uint32_t size_info_0 = 0;
    7959           0 :         uint32_t cntr_info_0;
    7960           0 :         TALLOC_CTX *_mem_save_info_0 = NULL;
    7961           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    7962           0 :         if (flags & NDR_IN) {
    7963           0 :                 NDR_ZERO_STRUCT(r->out);
    7964             : 
    7965             :                 {
    7966           0 :                         libndr_flags _flags_save_string = ndr->flags;
    7967           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    7968           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.PrintQueueName));
    7969           0 :                         ndr->flags = _flags_save_string;
    7970             :                 }
    7971           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    7972           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    7973             :         }
    7974           0 :         if (flags & NDR_OUT) {
    7975             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    7976             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    7977           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    7978           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    7979           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.count));
    7980           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    7981           0 :                 size_info_0 = r->out.count;
    7982           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.info, size_info_0);
    7983           0 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
    7984           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
    7985           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7986           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7987           0 :                         NDR_CHECK(ndr_pull_rap_printj_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    7988             :                 }
    7989           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7990           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    7991           0 :                         NDR_CHECK(ndr_pull_rap_printj_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    7992             :                 }
    7993           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
    7994           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    7995             :                 }
    7996             :         }
    7997           0 :         return NDR_ERR_SUCCESS;
    7998             : }
    7999             : 
    8000           0 : _PUBLIC_ void ndr_print_rap_NetPrintJobEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintJobEnum *r)
    8001             : {
    8002           0 :         uint32_t cntr_info_0;
    8003           0 :         ndr_print_struct(ndr, name, "rap_NetPrintJobEnum");
    8004           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8005           0 :         ndr->depth++;
    8006           0 :         if (flags & NDR_SET_VALUES) {
    8007           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8008             :         }
    8009           0 :         if (flags & NDR_IN) {
    8010           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintJobEnum");
    8011           0 :                 ndr->depth++;
    8012             :                 {
    8013           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8014           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8015           0 :                         ndr_print_string(ndr, "PrintQueueName", r->in.PrintQueueName);
    8016           0 :                         ndr->flags = _flags_save_string;
    8017             :                 }
    8018           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8019           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8020           0 :                 ndr->depth--;
    8021             :         }
    8022           0 :         if (flags & NDR_OUT) {
    8023           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintJobEnum");
    8024           0 :                 ndr->depth++;
    8025           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8026           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8027           0 :                 ndr_print_uint16(ndr, "count", r->out.count);
    8028           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    8029           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "info", (uint32_t)(r->out.count));
    8030           0 :                 ndr->depth++;
    8031           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    8032           0 :                         ndr_print_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level);
    8033           0 :                         ndr_print_rap_printj_info(ndr, "info", &r->out.info[cntr_info_0]);
    8034             :                 }
    8035           0 :                 ndr->depth--;
    8036           0 :                 ndr->depth--;
    8037             :         }
    8038           0 :         ndr->depth--;
    8039             : }
    8040             : 
    8041           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobGetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintJobGetInfo *r)
    8042             : {
    8043           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8044           0 :         if (flags & NDR_IN) {
    8045           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.JobID));
    8046           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    8047           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8048             :         }
    8049           0 :         if (flags & NDR_OUT) {
    8050           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8051           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8052           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    8053           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info, r->in.level));
    8054           0 :                 NDR_CHECK(ndr_push_rap_printj_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    8055             :         }
    8056           0 :         return NDR_ERR_SUCCESS;
    8057             : }
    8058             : 
    8059           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobGetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintJobGetInfo *r)
    8060             : {
    8061           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8062           0 :         if (flags & NDR_IN) {
    8063           0 :                 NDR_ZERO_STRUCT(r->out);
    8064             : 
    8065           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.JobID));
    8066           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    8067           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8068             :         }
    8069           0 :         if (flags & NDR_OUT) {
    8070             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8071             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8072           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8073           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8074           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    8075           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info, r->in.level));
    8076           0 :                 NDR_CHECK(ndr_pull_rap_printj_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    8077             :         }
    8078           0 :         return NDR_ERR_SUCCESS;
    8079             : }
    8080             : 
    8081           0 : _PUBLIC_ void ndr_print_rap_NetPrintJobGetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintJobGetInfo *r)
    8082             : {
    8083           0 :         ndr_print_struct(ndr, name, "rap_NetPrintJobGetInfo");
    8084           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8085           0 :         ndr->depth++;
    8086           0 :         if (flags & NDR_SET_VALUES) {
    8087           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8088             :         }
    8089           0 :         if (flags & NDR_IN) {
    8090           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintJobGetInfo");
    8091           0 :                 ndr->depth++;
    8092           0 :                 ndr_print_uint16(ndr, "JobID", r->in.JobID);
    8093           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8094           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8095           0 :                 ndr->depth--;
    8096             :         }
    8097           0 :         if (flags & NDR_OUT) {
    8098           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintJobGetInfo");
    8099           0 :                 ndr->depth++;
    8100           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8101           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8102           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    8103           0 :                 ndr_print_set_switch_value(ndr, &r->out.info, r->in.level);
    8104           0 :                 ndr_print_rap_printj_info(ndr, "info", &r->out.info);
    8105           0 :                 ndr->depth--;
    8106             :         }
    8107           0 :         ndr->depth--;
    8108             : }
    8109             : 
    8110           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintJobSetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintJobSetInfo *r)
    8111             : {
    8112           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8113           0 :         if (flags & NDR_IN) {
    8114           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.JobID));
    8115           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    8116           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8117           0 :                 NDR_CHECK(ndr_push_rap_JobInfoParamNum(ndr, NDR_SCALARS, r->in.ParamNum));
    8118           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->in.Param, r->in.ParamNum));
    8119           0 :                 NDR_CHECK(ndr_push_rap_JobInfoParam(ndr, NDR_SCALARS, &r->in.Param));
    8120             :         }
    8121           0 :         if (flags & NDR_OUT) {
    8122           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8123           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8124             :         }
    8125           0 :         return NDR_ERR_SUCCESS;
    8126             : }
    8127             : 
    8128           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintJobSetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintJobSetInfo *r)
    8129             : {
    8130           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8131           0 :         if (flags & NDR_IN) {
    8132           0 :                 NDR_ZERO_STRUCT(r->out);
    8133             : 
    8134           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.JobID));
    8135           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    8136           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8137           0 :                 NDR_CHECK(ndr_pull_rap_JobInfoParamNum(ndr, NDR_SCALARS, &r->in.ParamNum));
    8138           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->in.Param, r->in.ParamNum));
    8139           0 :                 NDR_CHECK(ndr_pull_rap_JobInfoParam(ndr, NDR_SCALARS, &r->in.Param));
    8140             :         }
    8141           0 :         if (flags & NDR_OUT) {
    8142             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8143             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8144           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8145           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8146             :         }
    8147           0 :         return NDR_ERR_SUCCESS;
    8148             : }
    8149             : 
    8150           0 : _PUBLIC_ void ndr_print_rap_NetPrintJobSetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintJobSetInfo *r)
    8151             : {
    8152           0 :         ndr_print_struct(ndr, name, "rap_NetPrintJobSetInfo");
    8153           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8154           0 :         ndr->depth++;
    8155           0 :         if (flags & NDR_SET_VALUES) {
    8156           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8157             :         }
    8158           0 :         if (flags & NDR_IN) {
    8159           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintJobSetInfo");
    8160           0 :                 ndr->depth++;
    8161           0 :                 ndr_print_uint16(ndr, "JobID", r->in.JobID);
    8162           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8163           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8164           0 :                 ndr_print_rap_JobInfoParamNum(ndr, "ParamNum", r->in.ParamNum);
    8165           0 :                 ndr_print_set_switch_value(ndr, &r->in.Param, r->in.ParamNum);
    8166           0 :                 ndr_print_rap_JobInfoParam(ndr, "Param", &r->in.Param);
    8167           0 :                 ndr->depth--;
    8168             :         }
    8169           0 :         if (flags & NDR_OUT) {
    8170           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintJobSetInfo");
    8171           0 :                 ndr->depth++;
    8172           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8173           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8174           0 :                 ndr->depth--;
    8175             :         }
    8176           0 :         ndr->depth--;
    8177             : }
    8178             : 
    8179           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintDestEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintDestEnum *r)
    8180             : {
    8181           0 :         uint32_t cntr_info_0;
    8182           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8183           0 :         if (flags & NDR_IN) {
    8184           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    8185           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8186             :         }
    8187           0 :         if (flags & NDR_OUT) {
    8188           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8189           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8190           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.count));
    8191           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    8192           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    8193           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    8194           0 :                         NDR_CHECK(ndr_push_rap_printdest_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    8195             :                 }
    8196           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    8197           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    8198           0 :                         NDR_CHECK(ndr_push_rap_printdest_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    8199             :                 }
    8200             :         }
    8201           0 :         return NDR_ERR_SUCCESS;
    8202             : }
    8203             : 
    8204           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintDestEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintDestEnum *r)
    8205             : {
    8206           0 :         uint32_t size_info_0 = 0;
    8207           0 :         uint32_t cntr_info_0;
    8208           0 :         TALLOC_CTX *_mem_save_info_0 = NULL;
    8209           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8210           0 :         if (flags & NDR_IN) {
    8211           0 :                 NDR_ZERO_STRUCT(r->out);
    8212             : 
    8213           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    8214           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8215             :         }
    8216           0 :         if (flags & NDR_OUT) {
    8217             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8218             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8219           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8220           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8221           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.count));
    8222           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    8223           0 :                 size_info_0 = r->out.count;
    8224           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.info, size_info_0);
    8225           0 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8226           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
    8227           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    8228           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    8229           0 :                         NDR_CHECK(ndr_pull_rap_printdest_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    8230             :                 }
    8231           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    8232           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    8233           0 :                         NDR_CHECK(ndr_pull_rap_printdest_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    8234             :                 }
    8235           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
    8236           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    8237             :                 }
    8238             :         }
    8239           0 :         return NDR_ERR_SUCCESS;
    8240             : }
    8241             : 
    8242           0 : _PUBLIC_ void ndr_print_rap_NetPrintDestEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintDestEnum *r)
    8243             : {
    8244           0 :         uint32_t cntr_info_0;
    8245           0 :         ndr_print_struct(ndr, name, "rap_NetPrintDestEnum");
    8246           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8247           0 :         ndr->depth++;
    8248           0 :         if (flags & NDR_SET_VALUES) {
    8249           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8250             :         }
    8251           0 :         if (flags & NDR_IN) {
    8252           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintDestEnum");
    8253           0 :                 ndr->depth++;
    8254           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8255           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8256           0 :                 ndr->depth--;
    8257             :         }
    8258           0 :         if (flags & NDR_OUT) {
    8259           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintDestEnum");
    8260           0 :                 ndr->depth++;
    8261           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8262           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8263           0 :                 ndr_print_uint16(ndr, "count", r->out.count);
    8264           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    8265           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "info", (uint32_t)(r->out.count));
    8266           0 :                 ndr->depth++;
    8267           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    8268           0 :                         ndr_print_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level);
    8269           0 :                         ndr_print_rap_printdest_info(ndr, "info", &r->out.info[cntr_info_0]);
    8270             :                 }
    8271           0 :                 ndr->depth--;
    8272           0 :                 ndr->depth--;
    8273             :         }
    8274           0 :         ndr->depth--;
    8275             : }
    8276             : 
    8277           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetPrintDestGetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetPrintDestGetInfo *r)
    8278             : {
    8279           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8280           0 :         if (flags & NDR_IN) {
    8281             :                 {
    8282           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8283           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8284           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.PrintDestName));
    8285           0 :                         ndr->flags = _flags_save_string;
    8286             :                 }
    8287           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    8288           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8289             :         }
    8290           0 :         if (flags & NDR_OUT) {
    8291           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8292           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8293           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    8294           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info, r->in.level));
    8295           0 :                 NDR_CHECK(ndr_push_rap_printdest_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    8296             :         }
    8297           0 :         return NDR_ERR_SUCCESS;
    8298             : }
    8299             : 
    8300           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetPrintDestGetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetPrintDestGetInfo *r)
    8301             : {
    8302           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8303           0 :         if (flags & NDR_IN) {
    8304           0 :                 NDR_ZERO_STRUCT(r->out);
    8305             : 
    8306             :                 {
    8307           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8308           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8309           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.PrintDestName));
    8310           0 :                         ndr->flags = _flags_save_string;
    8311             :                 }
    8312           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    8313           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8314             :         }
    8315           0 :         if (flags & NDR_OUT) {
    8316             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8317             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8318           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8319           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8320           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    8321           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info, r->in.level));
    8322           0 :                 NDR_CHECK(ndr_pull_rap_printdest_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    8323             :         }
    8324           0 :         return NDR_ERR_SUCCESS;
    8325             : }
    8326             : 
    8327           0 : _PUBLIC_ void ndr_print_rap_NetPrintDestGetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetPrintDestGetInfo *r)
    8328             : {
    8329           0 :         ndr_print_struct(ndr, name, "rap_NetPrintDestGetInfo");
    8330           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8331           0 :         ndr->depth++;
    8332           0 :         if (flags & NDR_SET_VALUES) {
    8333           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8334             :         }
    8335           0 :         if (flags & NDR_IN) {
    8336           0 :                 ndr_print_struct(ndr, "in", "rap_NetPrintDestGetInfo");
    8337           0 :                 ndr->depth++;
    8338             :                 {
    8339           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8340           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8341           0 :                         ndr_print_string(ndr, "PrintDestName", r->in.PrintDestName);
    8342           0 :                         ndr->flags = _flags_save_string;
    8343             :                 }
    8344           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8345           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8346           0 :                 ndr->depth--;
    8347             :         }
    8348           0 :         if (flags & NDR_OUT) {
    8349           0 :                 ndr_print_struct(ndr, "out", "rap_NetPrintDestGetInfo");
    8350           0 :                 ndr->depth++;
    8351           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8352           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8353           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    8354           0 :                 ndr_print_set_switch_value(ndr, &r->out.info, r->in.level);
    8355           0 :                 ndr_print_rap_printdest_info(ndr, "info", &r->out.info);
    8356           0 :                 ndr->depth--;
    8357             :         }
    8358           0 :         ndr->depth--;
    8359             : }
    8360             : 
    8361           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetUserPasswordSet2(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetUserPasswordSet2 *r)
    8362             : {
    8363           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8364           0 :         if (flags & NDR_IN) {
    8365             :                 {
    8366           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8367           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8368           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.UserName));
    8369           0 :                         ndr->flags = _flags_save_string;
    8370             :                 }
    8371           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.OldPassword, 16));
    8372           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.NewPassword, 16));
    8373           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.EncryptedPassword));
    8374           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.RealPasswordLength));
    8375             :         }
    8376           0 :         if (flags & NDR_OUT) {
    8377           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8378           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8379             :         }
    8380           0 :         return NDR_ERR_SUCCESS;
    8381             : }
    8382             : 
    8383           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetUserPasswordSet2(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetUserPasswordSet2 *r)
    8384             : {
    8385           0 :         uint32_t size_OldPassword_0 = 0;
    8386           0 :         uint32_t size_NewPassword_0 = 0;
    8387           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8388           0 :         if (flags & NDR_IN) {
    8389           0 :                 NDR_ZERO_STRUCT(r->out);
    8390             : 
    8391             :                 {
    8392           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8393           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8394           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.UserName));
    8395           0 :                         ndr->flags = _flags_save_string;
    8396             :                 }
    8397           0 :                 size_OldPassword_0 = 16;
    8398           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.OldPassword, size_OldPassword_0));
    8399           0 :                 size_NewPassword_0 = 16;
    8400           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.NewPassword, size_NewPassword_0));
    8401           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.EncryptedPassword));
    8402           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.RealPasswordLength));
    8403             :         }
    8404           0 :         if (flags & NDR_OUT) {
    8405             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8406             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8407           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8408           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8409             :         }
    8410           0 :         return NDR_ERR_SUCCESS;
    8411             : }
    8412             : 
    8413           0 : _PUBLIC_ void ndr_print_rap_NetUserPasswordSet2(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetUserPasswordSet2 *r)
    8414             : {
    8415           0 :         ndr_print_struct(ndr, name, "rap_NetUserPasswordSet2");
    8416           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8417           0 :         ndr->depth++;
    8418           0 :         if (flags & NDR_SET_VALUES) {
    8419           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8420             :         }
    8421           0 :         if (flags & NDR_IN) {
    8422           0 :                 ndr_print_struct(ndr, "in", "rap_NetUserPasswordSet2");
    8423           0 :                 ndr->depth++;
    8424             :                 {
    8425           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8426           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8427           0 :                         ndr_print_string(ndr, "UserName", r->in.UserName);
    8428           0 :                         ndr->flags = _flags_save_string;
    8429             :                 }
    8430           0 :                 ndr_print_array_uint8(ndr, "OldPassword", r->in.OldPassword, 16);
    8431           0 :                 ndr_print_array_uint8(ndr, "NewPassword", r->in.NewPassword, 16);
    8432           0 :                 ndr_print_uint16(ndr, "EncryptedPassword", r->in.EncryptedPassword);
    8433           0 :                 ndr_print_uint16(ndr, "RealPasswordLength", r->in.RealPasswordLength);
    8434           0 :                 ndr->depth--;
    8435             :         }
    8436           0 :         if (flags & NDR_OUT) {
    8437           0 :                 ndr_print_struct(ndr, "out", "rap_NetUserPasswordSet2");
    8438           0 :                 ndr->depth++;
    8439           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8440           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8441           0 :                 ndr->depth--;
    8442             :         }
    8443           0 :         ndr->depth--;
    8444             : }
    8445             : 
    8446           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetOEMChangePassword(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetOEMChangePassword *r)
    8447             : {
    8448           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8449           0 :         if (flags & NDR_IN) {
    8450             :                 {
    8451           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8452           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8453           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.UserName));
    8454           0 :                         ndr->flags = _flags_save_string;
    8455             :                 }
    8456           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.crypt_password, 516));
    8457           0 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->in.password_hash, 16));
    8458             :         }
    8459           0 :         if (flags & NDR_OUT) {
    8460           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8461           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8462             :         }
    8463           0 :         return NDR_ERR_SUCCESS;
    8464             : }
    8465             : 
    8466           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetOEMChangePassword(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetOEMChangePassword *r)
    8467             : {
    8468           0 :         uint32_t size_crypt_password_0 = 0;
    8469           0 :         uint32_t size_password_hash_0 = 0;
    8470           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8471           0 :         if (flags & NDR_IN) {
    8472           0 :                 NDR_ZERO_STRUCT(r->out);
    8473             : 
    8474             :                 {
    8475           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8476           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8477           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.UserName));
    8478           0 :                         ndr->flags = _flags_save_string;
    8479             :                 }
    8480           0 :                 size_crypt_password_0 = 516;
    8481           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.crypt_password, size_crypt_password_0));
    8482           0 :                 size_password_hash_0 = 16;
    8483           0 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->in.password_hash, size_password_hash_0));
    8484             :         }
    8485           0 :         if (flags & NDR_OUT) {
    8486             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8487             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8488           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8489           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8490             :         }
    8491           0 :         return NDR_ERR_SUCCESS;
    8492             : }
    8493             : 
    8494           0 : _PUBLIC_ void ndr_print_rap_NetOEMChangePassword(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetOEMChangePassword *r)
    8495             : {
    8496           0 :         ndr_print_struct(ndr, name, "rap_NetOEMChangePassword");
    8497           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8498           0 :         ndr->depth++;
    8499           0 :         if (flags & NDR_SET_VALUES) {
    8500           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8501             :         }
    8502           0 :         if (flags & NDR_IN) {
    8503           0 :                 ndr_print_struct(ndr, "in", "rap_NetOEMChangePassword");
    8504           0 :                 ndr->depth++;
    8505             :                 {
    8506           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8507           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8508           0 :                         ndr_print_string(ndr, "UserName", r->in.UserName);
    8509           0 :                         ndr->flags = _flags_save_string;
    8510             :                 }
    8511           0 :                 ndr_print_array_uint8(ndr, "crypt_password", r->in.crypt_password, 516);
    8512           0 :                 ndr_print_array_uint8(ndr, "password_hash", r->in.password_hash, 16);
    8513           0 :                 ndr->depth--;
    8514             :         }
    8515           0 :         if (flags & NDR_OUT) {
    8516           0 :                 ndr_print_struct(ndr, "out", "rap_NetOEMChangePassword");
    8517           0 :                 ndr->depth++;
    8518           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8519           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8520           0 :                 ndr->depth--;
    8521             :         }
    8522           0 :         ndr->depth--;
    8523             : }
    8524             : 
    8525           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetUserGetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetUserGetInfo *r)
    8526             : {
    8527           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8528           0 :         if (flags & NDR_IN) {
    8529             :                 {
    8530           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8531           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8532           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.UserName));
    8533           0 :                         ndr->flags = _flags_save_string;
    8534             :                 }
    8535           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    8536           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8537             :         }
    8538           0 :         if (flags & NDR_OUT) {
    8539           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8540           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8541           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    8542           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info, r->in.level));
    8543           0 :                 NDR_CHECK(ndr_push_rap_netuser_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    8544             :         }
    8545           0 :         return NDR_ERR_SUCCESS;
    8546             : }
    8547             : 
    8548           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetUserGetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetUserGetInfo *r)
    8549             : {
    8550           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8551           0 :         if (flags & NDR_IN) {
    8552           0 :                 NDR_ZERO_STRUCT(r->out);
    8553             : 
    8554             :                 {
    8555           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8556           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8557           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.UserName));
    8558           0 :                         ndr->flags = _flags_save_string;
    8559             :                 }
    8560           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    8561           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8562             :         }
    8563           0 :         if (flags & NDR_OUT) {
    8564             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8565             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8566           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8567           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8568           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    8569           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info, r->in.level));
    8570           0 :                 NDR_CHECK(ndr_pull_rap_netuser_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    8571             :         }
    8572           0 :         return NDR_ERR_SUCCESS;
    8573             : }
    8574             : 
    8575           0 : _PUBLIC_ void ndr_print_rap_NetUserGetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetUserGetInfo *r)
    8576             : {
    8577           0 :         ndr_print_struct(ndr, name, "rap_NetUserGetInfo");
    8578           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8579           0 :         ndr->depth++;
    8580           0 :         if (flags & NDR_SET_VALUES) {
    8581           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8582             :         }
    8583           0 :         if (flags & NDR_IN) {
    8584           0 :                 ndr_print_struct(ndr, "in", "rap_NetUserGetInfo");
    8585           0 :                 ndr->depth++;
    8586             :                 {
    8587           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8588           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8589           0 :                         ndr_print_string(ndr, "UserName", r->in.UserName);
    8590           0 :                         ndr->flags = _flags_save_string;
    8591             :                 }
    8592           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8593           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8594           0 :                 ndr->depth--;
    8595             :         }
    8596           0 :         if (flags & NDR_OUT) {
    8597           0 :                 ndr_print_struct(ndr, "out", "rap_NetUserGetInfo");
    8598           0 :                 ndr->depth++;
    8599           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8600           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8601           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    8602           0 :                 ndr_print_set_switch_value(ndr, &r->out.info, r->in.level);
    8603           0 :                 ndr_print_rap_netuser_info(ndr, "info", &r->out.info);
    8604           0 :                 ndr->depth--;
    8605             :         }
    8606           0 :         ndr->depth--;
    8607             : }
    8608             : 
    8609           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetSessionEnum(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetSessionEnum *r)
    8610             : {
    8611           0 :         uint32_t cntr_info_0;
    8612           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8613           0 :         if (flags & NDR_IN) {
    8614           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    8615           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8616             :         }
    8617           0 :         if (flags & NDR_OUT) {
    8618           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8619           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8620           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.count));
    8621           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    8622           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    8623           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    8624           0 :                         NDR_CHECK(ndr_push_rap_session_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    8625             :                 }
    8626           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    8627           0 :                         NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    8628           0 :                         NDR_CHECK(ndr_push_rap_session_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    8629             :                 }
    8630             :         }
    8631           0 :         return NDR_ERR_SUCCESS;
    8632             : }
    8633             : 
    8634           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetSessionEnum(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetSessionEnum *r)
    8635             : {
    8636           0 :         uint32_t size_info_0 = 0;
    8637           0 :         uint32_t cntr_info_0;
    8638           0 :         TALLOC_CTX *_mem_save_info_0 = NULL;
    8639           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8640           0 :         if (flags & NDR_IN) {
    8641           0 :                 NDR_ZERO_STRUCT(r->out);
    8642             : 
    8643           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    8644           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8645             :         }
    8646           0 :         if (flags & NDR_OUT) {
    8647             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8648             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8649           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8650           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8651           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.count));
    8652           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    8653           0 :                 size_info_0 = r->out.count;
    8654           0 :                 NDR_PULL_ALLOC_N(ndr, r->out.info, size_info_0);
    8655           0 :                 _mem_save_info_0 = NDR_PULL_GET_MEM_CTX(ndr);
    8656           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.info, 0);
    8657           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    8658           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    8659           0 :                         NDR_CHECK(ndr_pull_rap_session_info(ndr, NDR_SCALARS, &r->out.info[cntr_info_0]));
    8660             :                 }
    8661           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    8662           0 :                         NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level));
    8663           0 :                         NDR_CHECK(ndr_pull_rap_session_info(ndr, NDR_BUFFERS, &r->out.info[cntr_info_0]));
    8664             :                 }
    8665           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_info_0, 0);
    8666           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (size_info_0); cntr_info_0++) {
    8667             :                 }
    8668             :         }
    8669           0 :         return NDR_ERR_SUCCESS;
    8670             : }
    8671             : 
    8672           0 : _PUBLIC_ void ndr_print_rap_NetSessionEnum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetSessionEnum *r)
    8673             : {
    8674           0 :         uint32_t cntr_info_0;
    8675           0 :         ndr_print_struct(ndr, name, "rap_NetSessionEnum");
    8676           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8677           0 :         ndr->depth++;
    8678           0 :         if (flags & NDR_SET_VALUES) {
    8679           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8680             :         }
    8681           0 :         if (flags & NDR_IN) {
    8682           0 :                 ndr_print_struct(ndr, "in", "rap_NetSessionEnum");
    8683           0 :                 ndr->depth++;
    8684           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8685           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8686           0 :                 ndr->depth--;
    8687             :         }
    8688           0 :         if (flags & NDR_OUT) {
    8689           0 :                 ndr_print_struct(ndr, "out", "rap_NetSessionEnum");
    8690           0 :                 ndr->depth++;
    8691           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8692           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8693           0 :                 ndr_print_uint16(ndr, "count", r->out.count);
    8694           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    8695           0 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "info", (uint32_t)(r->out.count));
    8696           0 :                 ndr->depth++;
    8697           0 :                 for (cntr_info_0 = 0; cntr_info_0 < (r->out.count); cntr_info_0++) {
    8698           0 :                         ndr_print_set_switch_value(ndr, &r->out.info[cntr_info_0], r->in.level);
    8699           0 :                         ndr_print_rap_session_info(ndr, "info", &r->out.info[cntr_info_0]);
    8700             :                 }
    8701           0 :                 ndr->depth--;
    8702           0 :                 ndr->depth--;
    8703             :         }
    8704           0 :         ndr->depth--;
    8705             : }
    8706             : 
    8707           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetSessionGetInfo(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetSessionGetInfo *r)
    8708             : {
    8709           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8710           0 :         if (flags & NDR_IN) {
    8711             :                 {
    8712           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8713           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8714           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.SessionName));
    8715           0 :                         ndr->flags = _flags_save_string;
    8716             :                 }
    8717           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    8718           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8719             :         }
    8720           0 :         if (flags & NDR_OUT) {
    8721           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8722           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8723           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.available));
    8724           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->out.info, r->in.level));
    8725           0 :                 NDR_CHECK(ndr_push_rap_session_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    8726             :         }
    8727           0 :         return NDR_ERR_SUCCESS;
    8728             : }
    8729             : 
    8730           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetSessionGetInfo(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetSessionGetInfo *r)
    8731             : {
    8732           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8733           0 :         if (flags & NDR_IN) {
    8734           0 :                 NDR_ZERO_STRUCT(r->out);
    8735             : 
    8736             :                 {
    8737           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8738           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8739           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.SessionName));
    8740           0 :                         ndr->flags = _flags_save_string;
    8741             :                 }
    8742           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    8743           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8744             :         }
    8745           0 :         if (flags & NDR_OUT) {
    8746             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8747             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8748           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8749           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8750           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.available));
    8751           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->out.info, r->in.level));
    8752           0 :                 NDR_CHECK(ndr_pull_rap_session_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->out.info));
    8753             :         }
    8754           0 :         return NDR_ERR_SUCCESS;
    8755             : }
    8756             : 
    8757           0 : _PUBLIC_ void ndr_print_rap_NetSessionGetInfo(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetSessionGetInfo *r)
    8758             : {
    8759           0 :         ndr_print_struct(ndr, name, "rap_NetSessionGetInfo");
    8760           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8761           0 :         ndr->depth++;
    8762           0 :         if (flags & NDR_SET_VALUES) {
    8763           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8764             :         }
    8765           0 :         if (flags & NDR_IN) {
    8766           0 :                 ndr_print_struct(ndr, "in", "rap_NetSessionGetInfo");
    8767           0 :                 ndr->depth++;
    8768             :                 {
    8769           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8770           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8771           0 :                         ndr_print_string(ndr, "SessionName", r->in.SessionName);
    8772           0 :                         ndr->flags = _flags_save_string;
    8773             :                 }
    8774           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8775           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8776           0 :                 ndr->depth--;
    8777             :         }
    8778           0 :         if (flags & NDR_OUT) {
    8779           0 :                 ndr_print_struct(ndr, "out", "rap_NetSessionGetInfo");
    8780           0 :                 ndr->depth++;
    8781           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8782           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8783           0 :                 ndr_print_uint16(ndr, "available", r->out.available);
    8784           0 :                 ndr_print_set_switch_value(ndr, &r->out.info, r->in.level);
    8785           0 :                 ndr_print_rap_session_info(ndr, "info", &r->out.info);
    8786           0 :                 ndr->depth--;
    8787             :         }
    8788           0 :         ndr->depth--;
    8789             : }
    8790             : 
    8791           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetUserAdd(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetUserAdd *r)
    8792             : {
    8793           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8794           0 :         if (flags & NDR_IN) {
    8795           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.level));
    8796           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8797           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.pwdlength));
    8798           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.unknown));
    8799           0 :                 NDR_CHECK(ndr_push_set_switch_value(ndr, &r->in.info, r->in.level));
    8800           0 :                 NDR_CHECK(ndr_push_rap_netuser_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.info));
    8801             :         }
    8802           0 :         if (flags & NDR_OUT) {
    8803           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8804           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8805             :         }
    8806           0 :         return NDR_ERR_SUCCESS;
    8807             : }
    8808             : 
    8809           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetUserAdd(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetUserAdd *r)
    8810             : {
    8811           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8812           0 :         if (flags & NDR_IN) {
    8813           0 :                 NDR_ZERO_STRUCT(r->out);
    8814             : 
    8815           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.level));
    8816           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8817           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.pwdlength));
    8818           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.unknown));
    8819           0 :                 NDR_CHECK(ndr_pull_set_switch_value(ndr, &r->in.info, r->in.level));
    8820           0 :                 NDR_CHECK(ndr_pull_rap_netuser_info(ndr, NDR_SCALARS|NDR_BUFFERS, &r->in.info));
    8821             :         }
    8822           0 :         if (flags & NDR_OUT) {
    8823             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8824             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8825           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8826           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8827             :         }
    8828           0 :         return NDR_ERR_SUCCESS;
    8829             : }
    8830             : 
    8831           0 : _PUBLIC_ void ndr_print_rap_NetUserAdd(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetUserAdd *r)
    8832             : {
    8833           0 :         ndr_print_struct(ndr, name, "rap_NetUserAdd");
    8834           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8835           0 :         ndr->depth++;
    8836           0 :         if (flags & NDR_SET_VALUES) {
    8837           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8838             :         }
    8839           0 :         if (flags & NDR_IN) {
    8840           0 :                 ndr_print_struct(ndr, "in", "rap_NetUserAdd");
    8841           0 :                 ndr->depth++;
    8842           0 :                 ndr_print_uint16(ndr, "level", r->in.level);
    8843           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8844           0 :                 ndr_print_uint16(ndr, "pwdlength", r->in.pwdlength);
    8845           0 :                 ndr_print_uint16(ndr, "unknown", r->in.unknown);
    8846           0 :                 ndr_print_set_switch_value(ndr, &r->in.info, r->in.level);
    8847           0 :                 ndr_print_rap_netuser_info(ndr, "info", &r->in.info);
    8848           0 :                 ndr->depth--;
    8849             :         }
    8850           0 :         if (flags & NDR_OUT) {
    8851           0 :                 ndr_print_struct(ndr, "out", "rap_NetUserAdd");
    8852           0 :                 ndr->depth++;
    8853           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8854           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8855           0 :                 ndr->depth--;
    8856             :         }
    8857           0 :         ndr->depth--;
    8858             : }
    8859             : 
    8860           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetUserDelete(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetUserDelete *r)
    8861             : {
    8862           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8863           0 :         if (flags & NDR_IN) {
    8864             :                 {
    8865           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8866           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8867           0 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->in.UserName));
    8868           0 :                         ndr->flags = _flags_save_string;
    8869             :                 }
    8870             :         }
    8871           0 :         if (flags & NDR_OUT) {
    8872           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8873           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8874             :         }
    8875           0 :         return NDR_ERR_SUCCESS;
    8876             : }
    8877             : 
    8878           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetUserDelete(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetUserDelete *r)
    8879             : {
    8880           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8881           0 :         if (flags & NDR_IN) {
    8882           0 :                 NDR_ZERO_STRUCT(r->out);
    8883             : 
    8884             :                 {
    8885           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8886           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8887           0 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->in.UserName));
    8888           0 :                         ndr->flags = _flags_save_string;
    8889             :                 }
    8890             :         }
    8891           0 :         if (flags & NDR_OUT) {
    8892             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8893             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8894           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8895           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8896             :         }
    8897           0 :         return NDR_ERR_SUCCESS;
    8898             : }
    8899             : 
    8900           0 : _PUBLIC_ void ndr_print_rap_NetUserDelete(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetUserDelete *r)
    8901             : {
    8902           0 :         ndr_print_struct(ndr, name, "rap_NetUserDelete");
    8903           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8904           0 :         ndr->depth++;
    8905           0 :         if (flags & NDR_SET_VALUES) {
    8906           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8907             :         }
    8908           0 :         if (flags & NDR_IN) {
    8909           0 :                 ndr_print_struct(ndr, "in", "rap_NetUserDelete");
    8910           0 :                 ndr->depth++;
    8911             :                 {
    8912           0 :                         libndr_flags _flags_save_string = ndr->flags;
    8913           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM);
    8914           0 :                         ndr_print_string(ndr, "UserName", r->in.UserName);
    8915           0 :                         ndr->flags = _flags_save_string;
    8916             :                 }
    8917           0 :                 ndr->depth--;
    8918             :         }
    8919           0 :         if (flags & NDR_OUT) {
    8920           0 :                 ndr_print_struct(ndr, "out", "rap_NetUserDelete");
    8921           0 :                 ndr->depth++;
    8922           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8923           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8924           0 :                 ndr->depth--;
    8925             :         }
    8926           0 :         ndr->depth--;
    8927             : }
    8928             : 
    8929           0 : _PUBLIC_ enum ndr_err_code ndr_push_rap_NetRemoteTOD(struct ndr_push *ndr, ndr_flags_type flags, const struct rap_NetRemoteTOD *r)
    8930             : {
    8931           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
    8932           0 :         if (flags & NDR_IN) {
    8933           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->in.bufsize));
    8934             :         }
    8935           0 :         if (flags & NDR_OUT) {
    8936           0 :                 NDR_CHECK(ndr_push_rap_status(ndr, NDR_SCALARS, r->out.status));
    8937           0 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->out.convert));
    8938           0 :                 NDR_CHECK(ndr_push_rap_TimeOfDayInfo(ndr, NDR_SCALARS, &r->out.tod));
    8939             :         }
    8940           0 :         return NDR_ERR_SUCCESS;
    8941             : }
    8942             : 
    8943           0 : _PUBLIC_ enum ndr_err_code ndr_pull_rap_NetRemoteTOD(struct ndr_pull *ndr, ndr_flags_type flags, struct rap_NetRemoteTOD *r)
    8944             : {
    8945           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
    8946           0 :         if (flags & NDR_IN) {
    8947           0 :                 NDR_ZERO_STRUCT(r->out);
    8948             : 
    8949           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->in.bufsize));
    8950             :         }
    8951           0 :         if (flags & NDR_OUT) {
    8952             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
    8953             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
    8954           0 :                 NDR_CHECK(ndr_pull_rap_status(ndr, NDR_SCALARS, &r->out.status));
    8955           0 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->out.convert));
    8956           0 :                 NDR_CHECK(ndr_pull_rap_TimeOfDayInfo(ndr, NDR_SCALARS, &r->out.tod));
    8957             :         }
    8958           0 :         return NDR_ERR_SUCCESS;
    8959             : }
    8960             : 
    8961           0 : _PUBLIC_ void ndr_print_rap_NetRemoteTOD(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rap_NetRemoteTOD *r)
    8962             : {
    8963           0 :         ndr_print_struct(ndr, name, "rap_NetRemoteTOD");
    8964           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
    8965           0 :         ndr->depth++;
    8966           0 :         if (flags & NDR_SET_VALUES) {
    8967           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
    8968             :         }
    8969           0 :         if (flags & NDR_IN) {
    8970           0 :                 ndr_print_struct(ndr, "in", "rap_NetRemoteTOD");
    8971           0 :                 ndr->depth++;
    8972           0 :                 ndr_print_uint16(ndr, "bufsize", r->in.bufsize);
    8973           0 :                 ndr->depth--;
    8974             :         }
    8975           0 :         if (flags & NDR_OUT) {
    8976           0 :                 ndr_print_struct(ndr, "out", "rap_NetRemoteTOD");
    8977           0 :                 ndr->depth++;
    8978           0 :                 ndr_print_rap_status(ndr, "status", r->out.status);
    8979           0 :                 ndr_print_uint16(ndr, "convert", r->out.convert);
    8980           0 :                 ndr_print_rap_TimeOfDayInfo(ndr, "tod", &r->out.tod);
    8981           0 :                 ndr->depth--;
    8982             :         }
    8983           0 :         ndr->depth--;
    8984             : }
    8985             : 
    8986             : #ifndef SKIP_NDR_TABLE_rap
    8987             : static const struct ndr_interface_public_struct rap_public_structs[] = {
    8988             :         {
    8989             :                 .name = "rap_PrintQueue3",
    8990             :                 .struct_size = sizeof(struct rap_PrintQueue3 ),
    8991             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_rap_PrintQueue3,
    8992             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_rap_PrintQueue3,
    8993             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_rap_PrintQueue3,
    8994             :         },
    8995             :         {
    8996             :                 .name = "rap_LogonHours",
    8997             :                 .struct_size = sizeof(struct rap_LogonHours ),
    8998             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_rap_LogonHours,
    8999             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_rap_LogonHours,
    9000             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_rap_LogonHours,
    9001             :         },
    9002             :         {
    9003             :                 .name = "rap_TimeOfDayInfo",
    9004             :                 .struct_size = sizeof(struct rap_TimeOfDayInfo ),
    9005             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_rap_TimeOfDayInfo,
    9006             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_rap_TimeOfDayInfo,
    9007             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_rap_TimeOfDayInfo,
    9008             :         },
    9009             :         { .name = NULL }
    9010             : };
    9011             : 
    9012             : static const struct ndr_interface_call rap_calls[] = {
    9013             :         {
    9014             :                 "rap_NetShareEnum",
    9015             :                 sizeof(struct rap_NetShareEnum),
    9016             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetShareEnum,
    9017             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetShareEnum,
    9018             :                 (ndr_print_function_t) ndr_print_rap_NetShareEnum,
    9019             :                 { 0, NULL },
    9020             :                 { 0, NULL },
    9021             :         },
    9022             :         {
    9023             :                 "rap_NetShareAdd",
    9024             :                 sizeof(struct rap_NetShareAdd),
    9025             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetShareAdd,
    9026             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetShareAdd,
    9027             :                 (ndr_print_function_t) ndr_print_rap_NetShareAdd,
    9028             :                 { 0, NULL },
    9029             :                 { 0, NULL },
    9030             :         },
    9031             :         {
    9032             :                 "rap_NetServerEnum2",
    9033             :                 sizeof(struct rap_NetServerEnum2),
    9034             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetServerEnum2,
    9035             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetServerEnum2,
    9036             :                 (ndr_print_function_t) ndr_print_rap_NetServerEnum2,
    9037             :                 { 0, NULL },
    9038             :                 { 0, NULL },
    9039             :         },
    9040             :         {
    9041             :                 "rap_WserverGetInfo",
    9042             :                 sizeof(struct rap_WserverGetInfo),
    9043             :                 (ndr_push_flags_fn_t) ndr_push_rap_WserverGetInfo,
    9044             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_WserverGetInfo,
    9045             :                 (ndr_print_function_t) ndr_print_rap_WserverGetInfo,
    9046             :                 { 0, NULL },
    9047             :                 { 0, NULL },
    9048             :         },
    9049             :         {
    9050             :                 "rap_NetPrintQEnum",
    9051             :                 sizeof(struct rap_NetPrintQEnum),
    9052             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintQEnum,
    9053             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintQEnum,
    9054             :                 (ndr_print_function_t) ndr_print_rap_NetPrintQEnum,
    9055             :                 { 0, NULL },
    9056             :                 { 0, NULL },
    9057             :         },
    9058             :         {
    9059             :                 "rap_NetPrintQGetInfo",
    9060             :                 sizeof(struct rap_NetPrintQGetInfo),
    9061             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintQGetInfo,
    9062             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintQGetInfo,
    9063             :                 (ndr_print_function_t) ndr_print_rap_NetPrintQGetInfo,
    9064             :                 { 0, NULL },
    9065             :                 { 0, NULL },
    9066             :         },
    9067             :         {
    9068             :                 "rap_NetPrintJobPause",
    9069             :                 sizeof(struct rap_NetPrintJobPause),
    9070             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintJobPause,
    9071             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintJobPause,
    9072             :                 (ndr_print_function_t) ndr_print_rap_NetPrintJobPause,
    9073             :                 { 0, NULL },
    9074             :                 { 0, NULL },
    9075             :         },
    9076             :         {
    9077             :                 "rap_NetPrintJobContinue",
    9078             :                 sizeof(struct rap_NetPrintJobContinue),
    9079             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintJobContinue,
    9080             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintJobContinue,
    9081             :                 (ndr_print_function_t) ndr_print_rap_NetPrintJobContinue,
    9082             :                 { 0, NULL },
    9083             :                 { 0, NULL },
    9084             :         },
    9085             :         {
    9086             :                 "rap_NetPrintJobDelete",
    9087             :                 sizeof(struct rap_NetPrintJobDelete),
    9088             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintJobDelete,
    9089             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintJobDelete,
    9090             :                 (ndr_print_function_t) ndr_print_rap_NetPrintJobDelete,
    9091             :                 { 0, NULL },
    9092             :                 { 0, NULL },
    9093             :         },
    9094             :         {
    9095             :                 "rap_NetPrintQueuePause",
    9096             :                 sizeof(struct rap_NetPrintQueuePause),
    9097             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintQueuePause,
    9098             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintQueuePause,
    9099             :                 (ndr_print_function_t) ndr_print_rap_NetPrintQueuePause,
    9100             :                 { 0, NULL },
    9101             :                 { 0, NULL },
    9102             :         },
    9103             :         {
    9104             :                 "rap_NetPrintQueueResume",
    9105             :                 sizeof(struct rap_NetPrintQueueResume),
    9106             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintQueueResume,
    9107             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintQueueResume,
    9108             :                 (ndr_print_function_t) ndr_print_rap_NetPrintQueueResume,
    9109             :                 { 0, NULL },
    9110             :                 { 0, NULL },
    9111             :         },
    9112             :         {
    9113             :                 "rap_NetPrintQueuePurge",
    9114             :                 sizeof(struct rap_NetPrintQueuePurge),
    9115             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintQueuePurge,
    9116             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintQueuePurge,
    9117             :                 (ndr_print_function_t) ndr_print_rap_NetPrintQueuePurge,
    9118             :                 { 0, NULL },
    9119             :                 { 0, NULL },
    9120             :         },
    9121             :         {
    9122             :                 "rap_NetPrintJobEnum",
    9123             :                 sizeof(struct rap_NetPrintJobEnum),
    9124             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintJobEnum,
    9125             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintJobEnum,
    9126             :                 (ndr_print_function_t) ndr_print_rap_NetPrintJobEnum,
    9127             :                 { 0, NULL },
    9128             :                 { 0, NULL },
    9129             :         },
    9130             :         {
    9131             :                 "rap_NetPrintJobGetInfo",
    9132             :                 sizeof(struct rap_NetPrintJobGetInfo),
    9133             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintJobGetInfo,
    9134             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintJobGetInfo,
    9135             :                 (ndr_print_function_t) ndr_print_rap_NetPrintJobGetInfo,
    9136             :                 { 0, NULL },
    9137             :                 { 0, NULL },
    9138             :         },
    9139             :         {
    9140             :                 "rap_NetPrintJobSetInfo",
    9141             :                 sizeof(struct rap_NetPrintJobSetInfo),
    9142             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintJobSetInfo,
    9143             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintJobSetInfo,
    9144             :                 (ndr_print_function_t) ndr_print_rap_NetPrintJobSetInfo,
    9145             :                 { 0, NULL },
    9146             :                 { 0, NULL },
    9147             :         },
    9148             :         {
    9149             :                 "rap_NetPrintDestEnum",
    9150             :                 sizeof(struct rap_NetPrintDestEnum),
    9151             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintDestEnum,
    9152             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintDestEnum,
    9153             :                 (ndr_print_function_t) ndr_print_rap_NetPrintDestEnum,
    9154             :                 { 0, NULL },
    9155             :                 { 0, NULL },
    9156             :         },
    9157             :         {
    9158             :                 "rap_NetPrintDestGetInfo",
    9159             :                 sizeof(struct rap_NetPrintDestGetInfo),
    9160             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetPrintDestGetInfo,
    9161             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetPrintDestGetInfo,
    9162             :                 (ndr_print_function_t) ndr_print_rap_NetPrintDestGetInfo,
    9163             :                 { 0, NULL },
    9164             :                 { 0, NULL },
    9165             :         },
    9166             :         {
    9167             :                 "rap_NetUserPasswordSet2",
    9168             :                 sizeof(struct rap_NetUserPasswordSet2),
    9169             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetUserPasswordSet2,
    9170             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetUserPasswordSet2,
    9171             :                 (ndr_print_function_t) ndr_print_rap_NetUserPasswordSet2,
    9172             :                 { 0, NULL },
    9173             :                 { 0, NULL },
    9174             :         },
    9175             :         {
    9176             :                 "rap_NetOEMChangePassword",
    9177             :                 sizeof(struct rap_NetOEMChangePassword),
    9178             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetOEMChangePassword,
    9179             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetOEMChangePassword,
    9180             :                 (ndr_print_function_t) ndr_print_rap_NetOEMChangePassword,
    9181             :                 { 0, NULL },
    9182             :                 { 0, NULL },
    9183             :         },
    9184             :         {
    9185             :                 "rap_NetUserGetInfo",
    9186             :                 sizeof(struct rap_NetUserGetInfo),
    9187             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetUserGetInfo,
    9188             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetUserGetInfo,
    9189             :                 (ndr_print_function_t) ndr_print_rap_NetUserGetInfo,
    9190             :                 { 0, NULL },
    9191             :                 { 0, NULL },
    9192             :         },
    9193             :         {
    9194             :                 "rap_NetSessionEnum",
    9195             :                 sizeof(struct rap_NetSessionEnum),
    9196             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetSessionEnum,
    9197             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetSessionEnum,
    9198             :                 (ndr_print_function_t) ndr_print_rap_NetSessionEnum,
    9199             :                 { 0, NULL },
    9200             :                 { 0, NULL },
    9201             :         },
    9202             :         {
    9203             :                 "rap_NetSessionGetInfo",
    9204             :                 sizeof(struct rap_NetSessionGetInfo),
    9205             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetSessionGetInfo,
    9206             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetSessionGetInfo,
    9207             :                 (ndr_print_function_t) ndr_print_rap_NetSessionGetInfo,
    9208             :                 { 0, NULL },
    9209             :                 { 0, NULL },
    9210             :         },
    9211             :         {
    9212             :                 "rap_NetUserAdd",
    9213             :                 sizeof(struct rap_NetUserAdd),
    9214             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetUserAdd,
    9215             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetUserAdd,
    9216             :                 (ndr_print_function_t) ndr_print_rap_NetUserAdd,
    9217             :                 { 0, NULL },
    9218             :                 { 0, NULL },
    9219             :         },
    9220             :         {
    9221             :                 "rap_NetUserDelete",
    9222             :                 sizeof(struct rap_NetUserDelete),
    9223             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetUserDelete,
    9224             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetUserDelete,
    9225             :                 (ndr_print_function_t) ndr_print_rap_NetUserDelete,
    9226             :                 { 0, NULL },
    9227             :                 { 0, NULL },
    9228             :         },
    9229             :         {
    9230             :                 "rap_NetRemoteTOD",
    9231             :                 sizeof(struct rap_NetRemoteTOD),
    9232             :                 (ndr_push_flags_fn_t) ndr_push_rap_NetRemoteTOD,
    9233             :                 (ndr_pull_flags_fn_t) ndr_pull_rap_NetRemoteTOD,
    9234             :                 (ndr_print_function_t) ndr_print_rap_NetRemoteTOD,
    9235             :                 { 0, NULL },
    9236             :                 { 0, NULL },
    9237             :         },
    9238             :         { .name = NULL }
    9239             : };
    9240             : 
    9241             : static const char * const rap_endpoint_strings[] = {
    9242             :         "ncacn_np:[\\pipe\\rap]", 
    9243             : };
    9244             : 
    9245             : static const struct ndr_interface_string_array rap_endpoints = {
    9246             :         .count  = 1,
    9247             :         .names  = rap_endpoint_strings
    9248             : };
    9249             : 
    9250             : static const char * const rap_authservice_strings[] = {
    9251             :         "host", 
    9252             : };
    9253             : 
    9254             : static const struct ndr_interface_string_array rap_authservices = {
    9255             :         .count  = 1,
    9256             :         .names  = rap_authservice_strings
    9257             : };
    9258             : 
    9259             : 
    9260             : const struct ndr_interface_table ndr_table_rap = {
    9261             :         .name           = "rap",
    9262             :         .num_calls      = 25,
    9263             :         .calls          = rap_calls,
    9264             :         .num_public_structs     = 3,
    9265             :         .public_structs         = rap_public_structs,
    9266             :         .endpoints      = &rap_endpoints,
    9267             :         .authservices   = &rap_authservices
    9268             : };
    9269             : 
    9270             : #endif /* SKIP_NDR_TABLE_rap */

Generated by: LCOV version 1.14