LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_ntprinting.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 300 669 44.8 %
Date: 2024-04-21 15:09:00 Functions: 7 23 30.4 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_ntprinting.h"
       5             : 
       6           0 : _PUBLIC_ enum ndr_err_code ndr_push_ntprinting_form(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct ntprinting_form *r)
       7             : {
       8             :         {
       9           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
      10           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
      11           0 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      12           0 :                 if (ndr_flags & NDR_SCALARS) {
      13           0 :                         NDR_CHECK(ndr_push_align(ndr, 4));
      14           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->position));
      15           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->flag));
      16           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->width));
      17           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->length));
      18           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->left));
      19           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->top));
      20           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->right));
      21           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->bottom));
      22           0 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      23             :                 }
      24           0 :                 if (ndr_flags & NDR_BUFFERS) {
      25           0 :                 }
      26           0 :                 ndr->flags = _flags_save_STRUCT;
      27             :         }
      28           0 :         return NDR_ERR_SUCCESS;
      29             : }
      30             : 
      31           0 : _PUBLIC_ enum ndr_err_code ndr_pull_ntprinting_form(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct ntprinting_form *r)
      32             : {
      33             :         {
      34           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
      35           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
      36           0 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      37           0 :                 if (ndr_flags & NDR_SCALARS) {
      38           0 :                         NDR_CHECK(ndr_pull_align(ndr, 4));
      39           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->position));
      40           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->flag));
      41           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->width));
      42           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->length));
      43           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->left));
      44           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->top));
      45           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->right));
      46           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->bottom));
      47           0 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      48             :                 }
      49           0 :                 if (ndr_flags & NDR_BUFFERS) {
      50           0 :                 }
      51           0 :                 ndr->flags = _flags_save_STRUCT;
      52             :         }
      53           0 :         return NDR_ERR_SUCCESS;
      54             : }
      55             : 
      56           0 : static void ndr_print_flags_ntprinting_form(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct ntprinting_form *r)
      57             : {
      58           0 :         ndr_print_ntprinting_form(ndr, name, r);
      59           0 : }
      60             : 
      61           0 : _PUBLIC_ void ndr_print_ntprinting_form(struct ndr_print *ndr, const char *name, const struct ntprinting_form *r)
      62             : {
      63           0 :         ndr_print_struct(ndr, name, "ntprinting_form");
      64           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      65             :         {
      66           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
      67           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
      68           0 :                 ndr->depth++;
      69           0 :                 ndr_print_uint32(ndr, "position", r->position);
      70           0 :                 ndr_print_uint32(ndr, "flag", r->flag);
      71           0 :                 ndr_print_uint32(ndr, "width", r->width);
      72           0 :                 ndr_print_uint32(ndr, "length", r->length);
      73           0 :                 ndr_print_uint32(ndr, "left", r->left);
      74           0 :                 ndr_print_uint32(ndr, "top", r->top);
      75           0 :                 ndr_print_uint32(ndr, "right", r->right);
      76           0 :                 ndr_print_uint32(ndr, "bottom", r->bottom);
      77           0 :                 ndr->depth--;
      78           0 :                 ndr->flags = _flags_save_STRUCT;
      79             :         }
      80             : }
      81             : 
      82           0 : _PUBLIC_ enum ndr_err_code ndr_push_ntprinting_driver(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct ntprinting_driver *r)
      83             : {
      84             :         {
      85           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
      86           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
      87           0 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      88           0 :                 if (ndr_flags & NDR_SCALARS) {
      89           0 :                         NDR_CHECK(ndr_push_align(ndr, 8));
      90             :                         /* [skip] 'r->string_flags' */
      91           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->version));
      92             :                         {
      93           0 :                                 libndr_flags _flags_save_string = ndr->flags;
      94           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
      95           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->name));
      96           0 :                                 ndr->flags = _flags_save_string;
      97             :                         }
      98             :                         {
      99           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     100           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     101           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->environment));
     102           0 :                                 ndr->flags = _flags_save_string;
     103             :                         }
     104             :                         {
     105           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     106           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     107           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->driverpath));
     108           0 :                                 ndr->flags = _flags_save_string;
     109             :                         }
     110             :                         {
     111           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     112           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     113           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->datafile));
     114           0 :                                 ndr->flags = _flags_save_string;
     115             :                         }
     116             :                         {
     117           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     118           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     119           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->configfile));
     120           0 :                                 ndr->flags = _flags_save_string;
     121             :                         }
     122             :                         {
     123           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     124           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     125           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->helpfile));
     126           0 :                                 ndr->flags = _flags_save_string;
     127             :                         }
     128             :                         {
     129           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     130           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     131           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->monitorname));
     132           0 :                                 ndr->flags = _flags_save_string;
     133             :                         }
     134             :                         {
     135           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     136           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     137           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->defaultdatatype));
     138           0 :                                 ndr->flags = _flags_save_string;
     139             :                         }
     140             :                         {
     141           0 :                                 libndr_flags _flags_save_string_array = ndr->flags;
     142           0 :                                 ndr_set_flags(&ndr->flags, (ndr_ntprinting_string_flags(r->string_flags)&~LIBNDR_FLAG_STR_NULLTERM)|LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING);
     143           0 :                                 NDR_CHECK(ndr_push_string_array(ndr, NDR_SCALARS, r->dependent_files));
     144           0 :                                 ndr->flags = _flags_save_string_array;
     145             :                         }
     146           0 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     147             :                 }
     148           0 :                 if (ndr_flags & NDR_BUFFERS) {
     149             :                         /* [skip] 'r->string_flags' */
     150           0 :                 }
     151           0 :                 ndr->flags = _flags_save_STRUCT;
     152             :         }
     153           0 :         return NDR_ERR_SUCCESS;
     154             : }
     155             : 
     156           0 : _PUBLIC_ enum ndr_err_code ndr_pull_ntprinting_driver(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct ntprinting_driver *r)
     157             : {
     158             :         {
     159           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     160           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     161           0 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     162           0 :                 if (ndr_flags & NDR_SCALARS) {
     163           0 :                         NDR_CHECK(ndr_pull_align(ndr, 8));
     164             :                         /* [skip] 'r->string_flags' */
     165           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->version));
     166             :                         {
     167           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     168           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     169           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->name));
     170           0 :                                 ndr->flags = _flags_save_string;
     171             :                         }
     172             :                         {
     173           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     174           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     175           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->environment));
     176           0 :                                 ndr->flags = _flags_save_string;
     177             :                         }
     178             :                         {
     179           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     180           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     181           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->driverpath));
     182           0 :                                 ndr->flags = _flags_save_string;
     183             :                         }
     184             :                         {
     185           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     186           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     187           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->datafile));
     188           0 :                                 ndr->flags = _flags_save_string;
     189             :                         }
     190             :                         {
     191           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     192           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     193           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->configfile));
     194           0 :                                 ndr->flags = _flags_save_string;
     195             :                         }
     196             :                         {
     197           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     198           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     199           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->helpfile));
     200           0 :                                 ndr->flags = _flags_save_string;
     201             :                         }
     202             :                         {
     203           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     204           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     205           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->monitorname));
     206           0 :                                 ndr->flags = _flags_save_string;
     207             :                         }
     208             :                         {
     209           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     210           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     211           0 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->defaultdatatype));
     212           0 :                                 ndr->flags = _flags_save_string;
     213             :                         }
     214             :                         {
     215           0 :                                 libndr_flags _flags_save_string_array = ndr->flags;
     216           0 :                                 ndr_set_flags(&ndr->flags, (ndr_ntprinting_string_flags(r->string_flags)&~LIBNDR_FLAG_STR_NULLTERM)|LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING);
     217           0 :                                 NDR_CHECK(ndr_pull_string_array(ndr, NDR_SCALARS, &r->dependent_files));
     218           0 :                                 ndr->flags = _flags_save_string_array;
     219             :                         }
     220           0 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     221             :                 }
     222           0 :                 if (ndr_flags & NDR_BUFFERS) {
     223           0 :                 }
     224           0 :                 ndr->flags = _flags_save_STRUCT;
     225             :         }
     226           0 :         return NDR_ERR_SUCCESS;
     227             : }
     228             : 
     229           0 : static void ndr_print_flags_ntprinting_driver(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct ntprinting_driver *r)
     230             : {
     231           0 :         ndr_print_ntprinting_driver(ndr, name, r);
     232           0 : }
     233             : 
     234           0 : _PUBLIC_ void ndr_print_ntprinting_driver(struct ndr_print *ndr, const char *name, const struct ntprinting_driver *r)
     235             : {
     236           0 :         ndr_print_struct(ndr, name, "ntprinting_driver");
     237           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     238             :         {
     239           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     240           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     241           0 :                 ndr->depth++;
     242           0 :                 ndr_print_libndr_flags(ndr, "string_flags", r->string_flags);
     243           0 :                 ndr_print_uint32(ndr, "version", r->version);
     244             :                 {
     245           0 :                         libndr_flags _flags_save_string = ndr->flags;
     246           0 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     247           0 :                         ndr_print_string(ndr, "name", r->name);
     248           0 :                         ndr->flags = _flags_save_string;
     249             :                 }
     250             :                 {
     251           0 :                         libndr_flags _flags_save_string = ndr->flags;
     252           0 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     253           0 :                         ndr_print_string(ndr, "environment", r->environment);
     254           0 :                         ndr->flags = _flags_save_string;
     255             :                 }
     256             :                 {
     257           0 :                         libndr_flags _flags_save_string = ndr->flags;
     258           0 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     259           0 :                         ndr_print_string(ndr, "driverpath", r->driverpath);
     260           0 :                         ndr->flags = _flags_save_string;
     261             :                 }
     262             :                 {
     263           0 :                         libndr_flags _flags_save_string = ndr->flags;
     264           0 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     265           0 :                         ndr_print_string(ndr, "datafile", r->datafile);
     266           0 :                         ndr->flags = _flags_save_string;
     267             :                 }
     268             :                 {
     269           0 :                         libndr_flags _flags_save_string = ndr->flags;
     270           0 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     271           0 :                         ndr_print_string(ndr, "configfile", r->configfile);
     272           0 :                         ndr->flags = _flags_save_string;
     273             :                 }
     274             :                 {
     275           0 :                         libndr_flags _flags_save_string = ndr->flags;
     276           0 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     277           0 :                         ndr_print_string(ndr, "helpfile", r->helpfile);
     278           0 :                         ndr->flags = _flags_save_string;
     279             :                 }
     280             :                 {
     281           0 :                         libndr_flags _flags_save_string = ndr->flags;
     282           0 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     283           0 :                         ndr_print_string(ndr, "monitorname", r->monitorname);
     284           0 :                         ndr->flags = _flags_save_string;
     285             :                 }
     286             :                 {
     287           0 :                         libndr_flags _flags_save_string = ndr->flags;
     288           0 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     289           0 :                         ndr_print_string(ndr, "defaultdatatype", r->defaultdatatype);
     290           0 :                         ndr->flags = _flags_save_string;
     291             :                 }
     292             :                 {
     293           0 :                         libndr_flags _flags_save_string_array = ndr->flags;
     294           0 :                         ndr_set_flags(&ndr->flags, (ndr_ntprinting_string_flags(r->string_flags)&~LIBNDR_FLAG_STR_NULLTERM)|LIBNDR_FLAG_STR_NOTERM|LIBNDR_FLAG_REMAINING);
     295           0 :                         ndr_print_string_array(ndr, "dependent_files", r->dependent_files);
     296           0 :                         ndr->flags = _flags_save_string_array;
     297             :                 }
     298           0 :                 ndr->depth--;
     299           0 :                 ndr->flags = _flags_save_STRUCT;
     300             :         }
     301             : }
     302             : 
     303           0 : _PUBLIC_ enum ndr_err_code ndr_push_ntprinting_devicemode(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct ntprinting_devicemode *r)
     304             : {
     305             :         {
     306           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     307           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     308           0 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     309           0 :                 if (ndr_flags & NDR_SCALARS) {
     310           0 :                         NDR_CHECK(ndr_push_align(ndr, 8));
     311             :                         /* [skip] 'r->string_flags' */
     312             :                         {
     313           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     314           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     315           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->devicename));
     316           0 :                                 ndr->flags = _flags_save_string;
     317             :                         }
     318             :                         {
     319           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     320           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     321           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->formname));
     322           0 :                                 ndr->flags = _flags_save_string;
     323             :                         }
     324           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->specversion));
     325           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->driverversion));
     326           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->size));
     327           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->driverextra));
     328           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->orientation));
     329           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->papersize));
     330           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->paperlength));
     331           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->paperwidth));
     332           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->scale));
     333           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->copies));
     334           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->defaultsource));
     335           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->printquality));
     336           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->color));
     337           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->duplex));
     338           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->yresolution));
     339           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->ttoption));
     340           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->collate));
     341           0 :                         NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->logpixels));
     342           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->fields));
     343           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->bitsperpel));
     344           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->pelswidth));
     345           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->pelsheight));
     346           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->displayflags));
     347           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->displayfrequency));
     348           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->icmmethod));
     349           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->icmintent));
     350           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->mediatype));
     351           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dithertype));
     352           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved1));
     353           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved2));
     354           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->panningwidth));
     355           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->panningheight));
     356           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->nt_dev_private));
     357           0 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     358             :                 }
     359           0 :                 if (ndr_flags & NDR_BUFFERS) {
     360             :                         /* [skip] 'r->string_flags' */
     361           0 :                         if (r->nt_dev_private) {
     362           0 :                                 NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, *r->nt_dev_private));
     363             :                         }
     364             :                 }
     365           0 :                 ndr->flags = _flags_save_STRUCT;
     366             :         }
     367           0 :         return NDR_ERR_SUCCESS;
     368             : }
     369             : 
     370           4 : _PUBLIC_ enum ndr_err_code ndr_pull_ntprinting_devicemode(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct ntprinting_devicemode *r)
     371             : {
     372           4 :         uint32_t _ptr_nt_dev_private;
     373           4 :         TALLOC_CTX *_mem_save_nt_dev_private_0 = NULL;
     374             :         {
     375           4 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     376           4 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     377           4 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     378           4 :                 if (ndr_flags & NDR_SCALARS) {
     379           4 :                         NDR_CHECK(ndr_pull_align(ndr, 8));
     380             :                         /* [skip] 'r->string_flags' */
     381             :                         {
     382           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     383           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     384           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->devicename));
     385           4 :                                 ndr->flags = _flags_save_string;
     386             :                         }
     387             :                         {
     388           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     389           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     390           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->formname));
     391           4 :                                 ndr->flags = _flags_save_string;
     392             :                         }
     393           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->specversion));
     394           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->driverversion));
     395           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->size));
     396           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->driverextra));
     397           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->orientation));
     398           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->papersize));
     399           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->paperlength));
     400           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->paperwidth));
     401           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->scale));
     402           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->copies));
     403           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->defaultsource));
     404           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->printquality));
     405           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->color));
     406           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->duplex));
     407           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->yresolution));
     408           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->ttoption));
     409           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->collate));
     410           4 :                         NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->logpixels));
     411           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->fields));
     412           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->bitsperpel));
     413           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pelswidth));
     414           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->pelsheight));
     415           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->displayflags));
     416           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->displayfrequency));
     417           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->icmmethod));
     418           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->icmintent));
     419           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->mediatype));
     420           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dithertype));
     421           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved1));
     422           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved2));
     423           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->panningwidth));
     424           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->panningheight));
     425           4 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_nt_dev_private));
     426           4 :                         if (_ptr_nt_dev_private) {
     427           2 :                                 NDR_PULL_ALLOC(ndr, r->nt_dev_private);
     428             :                         } else {
     429           2 :                                 r->nt_dev_private = NULL;
     430             :                         }
     431           4 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     432             :                 }
     433           4 :                 if (ndr_flags & NDR_BUFFERS) {
     434           4 :                         if (r->nt_dev_private) {
     435           2 :                                 _mem_save_nt_dev_private_0 = NDR_PULL_GET_MEM_CTX(ndr);
     436           2 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->nt_dev_private, 0);
     437           2 :                                 NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, r->nt_dev_private));
     438           2 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_nt_dev_private_0, 0);
     439             :                         }
     440             :                 }
     441           4 :                 ndr->flags = _flags_save_STRUCT;
     442             :         }
     443           4 :         return NDR_ERR_SUCCESS;
     444             : }
     445             : 
     446           0 : static void ndr_print_flags_ntprinting_devicemode(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct ntprinting_devicemode *r)
     447             : {
     448           0 :         ndr_print_ntprinting_devicemode(ndr, name, r);
     449           0 : }
     450             : 
     451           2 : _PUBLIC_ void ndr_print_ntprinting_devicemode(struct ndr_print *ndr, const char *name, const struct ntprinting_devicemode *r)
     452             : {
     453           2 :         ndr_print_struct(ndr, name, "ntprinting_devicemode");
     454           2 :         if (r == NULL) { ndr_print_null(ndr); return; }
     455             :         {
     456           2 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     457           2 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     458           2 :                 ndr->depth++;
     459           2 :                 ndr_print_libndr_flags(ndr, "string_flags", r->string_flags);
     460             :                 {
     461           2 :                         libndr_flags _flags_save_string = ndr->flags;
     462           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     463           2 :                         ndr_print_string(ndr, "devicename", r->devicename);
     464           2 :                         ndr->flags = _flags_save_string;
     465             :                 }
     466             :                 {
     467           2 :                         libndr_flags _flags_save_string = ndr->flags;
     468           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     469           2 :                         ndr_print_string(ndr, "formname", r->formname);
     470           2 :                         ndr->flags = _flags_save_string;
     471             :                 }
     472           2 :                 ndr_print_uint16(ndr, "specversion", r->specversion);
     473           2 :                 ndr_print_uint16(ndr, "driverversion", r->driverversion);
     474           2 :                 ndr_print_uint16(ndr, "size", r->size);
     475           2 :                 ndr_print_uint16(ndr, "driverextra", r->driverextra);
     476           2 :                 ndr_print_uint16(ndr, "orientation", r->orientation);
     477           2 :                 ndr_print_uint16(ndr, "papersize", r->papersize);
     478           2 :                 ndr_print_uint16(ndr, "paperlength", r->paperlength);
     479           2 :                 ndr_print_uint16(ndr, "paperwidth", r->paperwidth);
     480           2 :                 ndr_print_uint16(ndr, "scale", r->scale);
     481           2 :                 ndr_print_uint16(ndr, "copies", r->copies);
     482           2 :                 ndr_print_uint16(ndr, "defaultsource", r->defaultsource);
     483           2 :                 ndr_print_uint16(ndr, "printquality", r->printquality);
     484           2 :                 ndr_print_uint16(ndr, "color", r->color);
     485           2 :                 ndr_print_uint16(ndr, "duplex", r->duplex);
     486           2 :                 ndr_print_uint16(ndr, "yresolution", r->yresolution);
     487           2 :                 ndr_print_uint16(ndr, "ttoption", r->ttoption);
     488           2 :                 ndr_print_uint16(ndr, "collate", r->collate);
     489           2 :                 ndr_print_uint16(ndr, "logpixels", r->logpixels);
     490           2 :                 ndr_print_uint32(ndr, "fields", r->fields);
     491           2 :                 ndr_print_uint32(ndr, "bitsperpel", r->bitsperpel);
     492           2 :                 ndr_print_uint32(ndr, "pelswidth", r->pelswidth);
     493           2 :                 ndr_print_uint32(ndr, "pelsheight", r->pelsheight);
     494           2 :                 ndr_print_uint32(ndr, "displayflags", r->displayflags);
     495           2 :                 ndr_print_uint32(ndr, "displayfrequency", r->displayfrequency);
     496           2 :                 ndr_print_uint32(ndr, "icmmethod", r->icmmethod);
     497           2 :                 ndr_print_uint32(ndr, "icmintent", r->icmintent);
     498           2 :                 ndr_print_uint32(ndr, "mediatype", r->mediatype);
     499           2 :                 ndr_print_uint32(ndr, "dithertype", r->dithertype);
     500           2 :                 ndr_print_uint32(ndr, "reserved1", r->reserved1);
     501           2 :                 ndr_print_uint32(ndr, "reserved2", r->reserved2);
     502           2 :                 ndr_print_uint32(ndr, "panningwidth", r->panningwidth);
     503           2 :                 ndr_print_uint32(ndr, "panningheight", r->panningheight);
     504           2 :                 ndr_print_ptr(ndr, "nt_dev_private", r->nt_dev_private);
     505           2 :                 ndr->depth++;
     506           2 :                 if (r->nt_dev_private) {
     507           2 :                         ndr_print_DATA_BLOB(ndr, "nt_dev_private", *r->nt_dev_private);
     508             :                 }
     509           2 :                 ndr->depth--;
     510           2 :                 ndr->depth--;
     511           2 :                 ndr->flags = _flags_save_STRUCT;
     512             :         }
     513             : }
     514             : 
     515           0 : _PUBLIC_ enum ndr_err_code ndr_push_ntprinting_printer_data(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct ntprinting_printer_data *r)
     516             : {
     517             :         {
     518           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     519           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     520           0 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     521           0 :                 if (ndr_flags & NDR_SCALARS) {
     522           0 :                         NDR_CHECK(ndr_push_align(ndr, 8));
     523             :                         /* [skip] 'r->string_flags' */
     524           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->ptr));
     525             :                         {
     526           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     527           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     528           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->name));
     529           0 :                                 ndr->flags = _flags_save_string;
     530             :                         }
     531           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->type));
     532           0 :                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->data));
     533           0 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     534             :                 }
     535           0 :                 if (ndr_flags & NDR_BUFFERS) {
     536             :                         /* [skip] 'r->string_flags' */
     537           0 :                 }
     538           0 :                 ndr->flags = _flags_save_STRUCT;
     539             :         }
     540           0 :         return NDR_ERR_SUCCESS;
     541             : }
     542             : 
     543          40 : _PUBLIC_ enum ndr_err_code ndr_pull_ntprinting_printer_data(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct ntprinting_printer_data *r)
     544             : {
     545             :         {
     546          40 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     547          40 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     548          40 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     549          40 :                 if (ndr_flags & NDR_SCALARS) {
     550          40 :                         NDR_CHECK(ndr_pull_align(ndr, 8));
     551             :                         /* [skip] 'r->string_flags' */
     552          40 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->ptr));
     553             :                         {
     554          40 :                                 libndr_flags _flags_save_string = ndr->flags;
     555          40 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     556          40 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->name));
     557          40 :                                 ndr->flags = _flags_save_string;
     558             :                         }
     559          40 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->type));
     560          40 :                         NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->data));
     561          40 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     562             :                 }
     563          40 :                 if (ndr_flags & NDR_BUFFERS) {
     564          40 :                 }
     565          40 :                 ndr->flags = _flags_save_STRUCT;
     566             :         }
     567          40 :         return NDR_ERR_SUCCESS;
     568             : }
     569             : 
     570           0 : static void ndr_print_flags_ntprinting_printer_data(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct ntprinting_printer_data *r)
     571             : {
     572           0 :         ndr_print_ntprinting_printer_data(ndr, name, r);
     573           0 : }
     574             : 
     575          22 : _PUBLIC_ void ndr_print_ntprinting_printer_data(struct ndr_print *ndr, const char *name, const struct ntprinting_printer_data *r)
     576             : {
     577          22 :         ndr_print_struct(ndr, name, "ntprinting_printer_data");
     578          22 :         if (r == NULL) { ndr_print_null(ndr); return; }
     579             :         {
     580          22 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     581          22 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     582          22 :                 ndr->depth++;
     583          22 :                 ndr_print_libndr_flags(ndr, "string_flags", r->string_flags);
     584          22 :                 ndr_print_uint32(ndr, "ptr", r->ptr);
     585             :                 {
     586          22 :                         libndr_flags _flags_save_string = ndr->flags;
     587          22 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     588          22 :                         ndr_print_string(ndr, "name", r->name);
     589          22 :                         ndr->flags = _flags_save_string;
     590             :                 }
     591          22 :                 ndr_print_uint32(ndr, "type", r->type);
     592          22 :                 ndr_print_DATA_BLOB(ndr, "data", r->data);
     593          22 :                 ndr->depth--;
     594          22 :                 ndr->flags = _flags_save_STRUCT;
     595             :         }
     596             : }
     597             : 
     598           0 : _PUBLIC_ enum ndr_err_code ndr_push_ntprinting_printer_info(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct ntprinting_printer_info *r)
     599             : {
     600             :         {
     601           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     602           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     603           0 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     604           0 :                 if (ndr_flags & NDR_SCALARS) {
     605           0 :                         NDR_CHECK(ndr_push_align(ndr, 8));
     606             :                         /* [skip] 'r->string_flags' */
     607           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->attributes));
     608           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->priority));
     609           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->default_priority));
     610           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->starttime));
     611           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->untiltime));
     612           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->status));
     613           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->cjobs));
     614           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->averageppm));
     615           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->changeid));
     616           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->c_setprinter));
     617           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->setuptime));
     618             :                         {
     619           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     620           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     621           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->servername));
     622           0 :                                 ndr->flags = _flags_save_string;
     623             :                         }
     624             :                         {
     625           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     626           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     627           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->printername));
     628           0 :                                 ndr->flags = _flags_save_string;
     629             :                         }
     630             :                         {
     631           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     632           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     633           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sharename));
     634           0 :                                 ndr->flags = _flags_save_string;
     635             :                         }
     636             :                         {
     637           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     638           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     639           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->portname));
     640           0 :                                 ndr->flags = _flags_save_string;
     641             :                         }
     642             :                         {
     643           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     644           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     645           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->drivername));
     646           0 :                                 ndr->flags = _flags_save_string;
     647             :                         }
     648             :                         {
     649           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     650           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     651           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->comment));
     652           0 :                                 ndr->flags = _flags_save_string;
     653             :                         }
     654             :                         {
     655           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     656           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     657           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->location));
     658           0 :                                 ndr->flags = _flags_save_string;
     659             :                         }
     660             :                         {
     661           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     662           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     663           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sepfile));
     664           0 :                                 ndr->flags = _flags_save_string;
     665             :                         }
     666             :                         {
     667           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     668           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     669           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->printprocessor));
     670           0 :                                 ndr->flags = _flags_save_string;
     671             :                         }
     672             :                         {
     673           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     674           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     675           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->datatype));
     676           0 :                                 ndr->flags = _flags_save_string;
     677             :                         }
     678             :                         {
     679           0 :                                 libndr_flags _flags_save_string = ndr->flags;
     680           0 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     681           0 :                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->parameters));
     682           0 :                                 ndr->flags = _flags_save_string;
     683             :                         }
     684           0 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     685             :                 }
     686           0 :                 if (ndr_flags & NDR_BUFFERS) {
     687             :                         /* [skip] 'r->string_flags' */
     688           0 :                 }
     689           0 :                 ndr->flags = _flags_save_STRUCT;
     690             :         }
     691           0 :         return NDR_ERR_SUCCESS;
     692             : }
     693             : 
     694           4 : _PUBLIC_ enum ndr_err_code ndr_pull_ntprinting_printer_info(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct ntprinting_printer_info *r)
     695             : {
     696             :         {
     697           4 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     698           4 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     699           4 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     700           4 :                 if (ndr_flags & NDR_SCALARS) {
     701           4 :                         NDR_CHECK(ndr_pull_align(ndr, 8));
     702             :                         /* [skip] 'r->string_flags' */
     703           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->attributes));
     704           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->priority));
     705           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->default_priority));
     706           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->starttime));
     707           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->untiltime));
     708           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->status));
     709           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->cjobs));
     710           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->averageppm));
     711           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->changeid));
     712           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->c_setprinter));
     713           4 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->setuptime));
     714             :                         {
     715           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     716           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     717           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->servername));
     718           4 :                                 ndr->flags = _flags_save_string;
     719             :                         }
     720             :                         {
     721           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     722           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     723           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->printername));
     724           4 :                                 ndr->flags = _flags_save_string;
     725             :                         }
     726             :                         {
     727           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     728           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     729           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sharename));
     730           4 :                                 ndr->flags = _flags_save_string;
     731             :                         }
     732             :                         {
     733           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     734           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     735           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->portname));
     736           4 :                                 ndr->flags = _flags_save_string;
     737             :                         }
     738             :                         {
     739           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     740           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     741           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->drivername));
     742           4 :                                 ndr->flags = _flags_save_string;
     743             :                         }
     744             :                         {
     745           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     746           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     747           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->comment));
     748           4 :                                 ndr->flags = _flags_save_string;
     749             :                         }
     750             :                         {
     751           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     752           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     753           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->location));
     754           4 :                                 ndr->flags = _flags_save_string;
     755             :                         }
     756             :                         {
     757           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     758           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     759           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sepfile));
     760           4 :                                 ndr->flags = _flags_save_string;
     761             :                         }
     762             :                         {
     763           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     764           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     765           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->printprocessor));
     766           4 :                                 ndr->flags = _flags_save_string;
     767             :                         }
     768             :                         {
     769           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     770           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     771           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->datatype));
     772           4 :                                 ndr->flags = _flags_save_string;
     773             :                         }
     774             :                         {
     775           4 :                                 libndr_flags _flags_save_string = ndr->flags;
     776           4 :                                 ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     777           4 :                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->parameters));
     778           4 :                                 ndr->flags = _flags_save_string;
     779             :                         }
     780           4 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     781             :                 }
     782           4 :                 if (ndr_flags & NDR_BUFFERS) {
     783           4 :                 }
     784           4 :                 ndr->flags = _flags_save_STRUCT;
     785             :         }
     786           4 :         return NDR_ERR_SUCCESS;
     787             : }
     788             : 
     789           0 : static void ndr_print_flags_ntprinting_printer_info(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct ntprinting_printer_info *r)
     790             : {
     791           0 :         ndr_print_ntprinting_printer_info(ndr, name, r);
     792           0 : }
     793             : 
     794           2 : _PUBLIC_ void ndr_print_ntprinting_printer_info(struct ndr_print *ndr, const char *name, const struct ntprinting_printer_info *r)
     795             : {
     796           2 :         ndr_print_struct(ndr, name, "ntprinting_printer_info");
     797           2 :         if (r == NULL) { ndr_print_null(ndr); return; }
     798             :         {
     799           2 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     800           2 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     801           2 :                 ndr->depth++;
     802           2 :                 ndr_print_libndr_flags(ndr, "string_flags", r->string_flags);
     803           2 :                 ndr_print_uint32(ndr, "attributes", r->attributes);
     804           2 :                 ndr_print_uint32(ndr, "priority", r->priority);
     805           2 :                 ndr_print_uint32(ndr, "default_priority", r->default_priority);
     806           2 :                 ndr_print_uint32(ndr, "starttime", r->starttime);
     807           2 :                 ndr_print_uint32(ndr, "untiltime", r->untiltime);
     808           2 :                 ndr_print_uint32(ndr, "status", r->status);
     809           2 :                 ndr_print_uint32(ndr, "cjobs", r->cjobs);
     810           2 :                 ndr_print_uint32(ndr, "averageppm", r->averageppm);
     811           2 :                 ndr_print_uint32(ndr, "changeid", r->changeid);
     812           2 :                 ndr_print_uint32(ndr, "c_setprinter", r->c_setprinter);
     813           2 :                 ndr_print_uint32(ndr, "setuptime", r->setuptime);
     814             :                 {
     815           2 :                         libndr_flags _flags_save_string = ndr->flags;
     816           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     817           2 :                         ndr_print_string(ndr, "servername", r->servername);
     818           2 :                         ndr->flags = _flags_save_string;
     819             :                 }
     820             :                 {
     821           2 :                         libndr_flags _flags_save_string = ndr->flags;
     822           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     823           2 :                         ndr_print_string(ndr, "printername", r->printername);
     824           2 :                         ndr->flags = _flags_save_string;
     825             :                 }
     826             :                 {
     827           2 :                         libndr_flags _flags_save_string = ndr->flags;
     828           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     829           2 :                         ndr_print_string(ndr, "sharename", r->sharename);
     830           2 :                         ndr->flags = _flags_save_string;
     831             :                 }
     832             :                 {
     833           2 :                         libndr_flags _flags_save_string = ndr->flags;
     834           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     835           2 :                         ndr_print_string(ndr, "portname", r->portname);
     836           2 :                         ndr->flags = _flags_save_string;
     837             :                 }
     838             :                 {
     839           2 :                         libndr_flags _flags_save_string = ndr->flags;
     840           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     841           2 :                         ndr_print_string(ndr, "drivername", r->drivername);
     842           2 :                         ndr->flags = _flags_save_string;
     843             :                 }
     844             :                 {
     845           2 :                         libndr_flags _flags_save_string = ndr->flags;
     846           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     847           2 :                         ndr_print_string(ndr, "comment", r->comment);
     848           2 :                         ndr->flags = _flags_save_string;
     849             :                 }
     850             :                 {
     851           2 :                         libndr_flags _flags_save_string = ndr->flags;
     852           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     853           2 :                         ndr_print_string(ndr, "location", r->location);
     854           2 :                         ndr->flags = _flags_save_string;
     855             :                 }
     856             :                 {
     857           2 :                         libndr_flags _flags_save_string = ndr->flags;
     858           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     859           2 :                         ndr_print_string(ndr, "sepfile", r->sepfile);
     860           2 :                         ndr->flags = _flags_save_string;
     861             :                 }
     862             :                 {
     863           2 :                         libndr_flags _flags_save_string = ndr->flags;
     864           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     865           2 :                         ndr_print_string(ndr, "printprocessor", r->printprocessor);
     866           2 :                         ndr->flags = _flags_save_string;
     867             :                 }
     868             :                 {
     869           2 :                         libndr_flags _flags_save_string = ndr->flags;
     870           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     871           2 :                         ndr_print_string(ndr, "datatype", r->datatype);
     872           2 :                         ndr->flags = _flags_save_string;
     873             :                 }
     874             :                 {
     875           2 :                         libndr_flags _flags_save_string = ndr->flags;
     876           2 :                         ndr_set_flags(&ndr->flags, ndr_ntprinting_string_flags(r->string_flags));
     877           2 :                         ndr_print_string(ndr, "parameters", r->parameters);
     878           2 :                         ndr->flags = _flags_save_string;
     879             :                 }
     880           2 :                 ndr->depth--;
     881           2 :                 ndr->flags = _flags_save_STRUCT;
     882             :         }
     883             : }
     884             : 
     885           0 : _PUBLIC_ enum ndr_err_code ndr_push_ntprinting_printer(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct ntprinting_printer *r)
     886             : {
     887           0 :         uint32_t cntr_printer_data_0;
     888             :         {
     889           0 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     890           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     891           0 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     892           0 :                 if (ndr_flags & NDR_SCALARS) {
     893           0 :                         NDR_CHECK(ndr_push_align(ndr, 8));
     894           0 :                         NDR_CHECK(ndr_push_ntprinting_printer_info(ndr, NDR_SCALARS, &r->info));
     895           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->devmode));
     896           0 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->count));
     897           0 :                         for (cntr_printer_data_0 = 0; cntr_printer_data_0 < (r->count); cntr_printer_data_0++) {
     898           0 :                                 NDR_CHECK(ndr_push_ntprinting_printer_data(ndr, NDR_SCALARS, &r->printer_data[cntr_printer_data_0]));
     899             :                         }
     900           0 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     901             :                 }
     902           0 :                 if (ndr_flags & NDR_BUFFERS) {
     903           0 :                         if (r->devmode) {
     904           0 :                                 NDR_CHECK(ndr_push_ntprinting_devicemode(ndr, NDR_SCALARS|NDR_BUFFERS, r->devmode));
     905             :                         }
     906             :                 }
     907           0 :                 ndr->flags = _flags_save_STRUCT;
     908             :         }
     909           0 :         return NDR_ERR_SUCCESS;
     910             : }
     911             : 
     912           0 : static void ndr_print_flags_ntprinting_printer(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct ntprinting_printer *r)
     913             : {
     914           0 :         ndr_print_ntprinting_printer(ndr, name, r);
     915           0 : }
     916             : 
     917           2 : _PUBLIC_ void ndr_print_ntprinting_printer(struct ndr_print *ndr, const char *name, const struct ntprinting_printer *r)
     918             : {
     919           2 :         uint32_t cntr_printer_data_0;
     920           2 :         ndr_print_struct(ndr, name, "ntprinting_printer");
     921           2 :         if (r == NULL) { ndr_print_null(ndr); return; }
     922             :         {
     923           2 :                 libndr_flags _flags_save_STRUCT = ndr->flags;
     924           2 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_NOALIGN);
     925           2 :                 ndr->depth++;
     926           2 :                 ndr_print_ntprinting_printer_info(ndr, "info", &r->info);
     927           2 :                 ndr_print_ptr(ndr, "devmode", r->devmode);
     928           2 :                 ndr->depth++;
     929           2 :                 if (r->devmode) {
     930           2 :                         ndr_print_ntprinting_devicemode(ndr, "devmode", r->devmode);
     931             :                 }
     932           2 :                 ndr->depth--;
     933           2 :                 ndr_print_uint32(ndr, "count", r->count);
     934           2 :                 ndr->print(ndr, "%s: ARRAY(%"PRIu32")", "printer_data", (uint32_t)(r->count));
     935           2 :                 ndr->depth++;
     936          24 :                 for (cntr_printer_data_0 = 0; cntr_printer_data_0 < (r->count); cntr_printer_data_0++) {
     937          22 :                         ndr_print_ntprinting_printer_data(ndr, "printer_data", &r->printer_data[cntr_printer_data_0]);
     938             :                 }
     939           2 :                 ndr->depth--;
     940           2 :                 ndr->depth--;
     941           2 :                 ndr->flags = _flags_save_STRUCT;
     942             :         }
     943             : }
     944             : 
     945             : #ifndef SKIP_NDR_TABLE_ntprinting
     946             : static const struct ndr_interface_public_struct ntprinting_public_structs[] = {
     947             :         {
     948             :                 .name = "ntprinting_form",
     949             :                 .struct_size = sizeof(struct ntprinting_form ),
     950             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_ntprinting_form,
     951             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_ntprinting_form,
     952             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_ntprinting_form,
     953             :         },
     954             :         {
     955             :                 .name = "ntprinting_driver",
     956             :                 .struct_size = sizeof(struct ntprinting_driver ),
     957             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_ntprinting_driver,
     958             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_ntprinting_driver,
     959             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_ntprinting_driver,
     960             :         },
     961             :         {
     962             :                 .name = "ntprinting_devicemode",
     963             :                 .struct_size = sizeof(struct ntprinting_devicemode ),
     964             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_ntprinting_devicemode,
     965             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_ntprinting_devicemode,
     966             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_ntprinting_devicemode,
     967             :         },
     968             :         {
     969             :                 .name = "ntprinting_printer_data",
     970             :                 .struct_size = sizeof(struct ntprinting_printer_data ),
     971             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_ntprinting_printer_data,
     972             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_ntprinting_printer_data,
     973             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_ntprinting_printer_data,
     974             :         },
     975             :         {
     976             :                 .name = "ntprinting_printer_info",
     977             :                 .struct_size = sizeof(struct ntprinting_printer_info ),
     978             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_ntprinting_printer_info,
     979             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_ntprinting_printer_info,
     980             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_ntprinting_printer_info,
     981             :         },
     982             :         {
     983             :                 .name = "ntprinting_printer",
     984             :                 .struct_size = sizeof(struct ntprinting_printer ),
     985             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_ntprinting_printer,
     986             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_ntprinting_printer,
     987             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_ntprinting_printer,
     988             :         },
     989             :         { .name = NULL }
     990             : };
     991             : 
     992             : static const struct ndr_interface_call ntprinting_calls[] = {
     993             :         { .name = NULL }
     994             : };
     995             : 
     996             : static const char * const ntprinting_endpoint_strings[] = {
     997             :         "ncacn_np:[\\pipe\\ntprinting]", 
     998             : };
     999             : 
    1000             : static const struct ndr_interface_string_array ntprinting_endpoints = {
    1001             :         .count  = 1,
    1002             :         .names  = ntprinting_endpoint_strings
    1003             : };
    1004             : 
    1005             : static const char * const ntprinting_authservice_strings[] = {
    1006             :         "host", 
    1007             : };
    1008             : 
    1009             : static const struct ndr_interface_string_array ntprinting_authservices = {
    1010             :         .count  = 1,
    1011             :         .names  = ntprinting_authservice_strings
    1012             : };
    1013             : 
    1014             : 
    1015             : const struct ndr_interface_table ndr_table_ntprinting = {
    1016             :         .name           = "ntprinting",
    1017             :         .syntax_id      = {
    1018             :                 {0xa025d3cb,0xc605,0x40d6,{0x86,0xe1},{0x4c,0xff,0x18,0xe7,0xdd,0x94}},
    1019             :                 NDR_NTPRINTING_VERSION
    1020             :         },
    1021             :         .helpstring     = NDR_NTPRINTING_HELPSTRING,
    1022             :         .num_calls      = 0,
    1023             :         .calls          = ntprinting_calls,
    1024             :         .num_public_structs     = 6,
    1025             :         .public_structs         = ntprinting_public_structs,
    1026             :         .endpoints      = &ntprinting_endpoints,
    1027             :         .authservices   = &ntprinting_authservices
    1028             : };
    1029             : 
    1030             : #endif /* SKIP_NDR_TABLE_ntprinting */

Generated by: LCOV version 1.14