LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_misc.c (source / functions) Hit Total Coverage
Test: coverage report for abartlet/fix-coverage dd10fb34 Lines: 294 527 55.8 %
Date: 2021-09-23 10:06:22 Functions: 26 35 74.3 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_misc.h"
       5             : 
       6   279579918 : _PUBLIC_ enum ndr_err_code ndr_push_GUID(struct ndr_push *ndr, int ndr_flags, const struct GUID *r)
       7             : {
       8   279579918 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
       9   279579918 :         if (ndr_flags & NDR_SCALARS) {
      10   279577684 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      11   279577684 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->time_low));
      12   279577684 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->time_mid));
      13   279577684 :                 NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r->time_hi_and_version));
      14   279577684 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->clock_seq, 2));
      15   279577684 :                 NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r->node, 6));
      16   279577682 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      17             :         }
      18   276119324 :         if (ndr_flags & NDR_BUFFERS) {
      19             :         }
      20   279579916 :         return NDR_ERR_SUCCESS;
      21             : }
      22             : 
      23   378614868 : _PUBLIC_ enum ndr_err_code ndr_pull_GUID(struct ndr_pull *ndr, int ndr_flags, struct GUID *r)
      24             : {
      25   378614868 :         uint32_t size_clock_seq_0 = 0;
      26   378614868 :         uint32_t size_node_0 = 0;
      27   378614868 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      28   378614868 :         if (ndr_flags & NDR_SCALARS) {
      29   378610360 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      30   378610360 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->time_low));
      31   378610359 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->time_mid));
      32   378610359 :                 NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, &r->time_hi_and_version));
      33   378610356 :                 size_clock_seq_0 = 2;
      34   378610356 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->clock_seq, size_clock_seq_0));
      35   378610356 :                 size_node_0 = 6;
      36   378610356 :                 NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r->node, size_node_0));
      37   378610356 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      38             :         }
      39   369688050 :         if (ndr_flags & NDR_BUFFERS) {
      40             :         }
      41   378614864 :         return NDR_ERR_SUCCESS;
      42             : }
      43             : 
      44           2 : static void ndr_print_flags_GUID(struct ndr_print *ndr, const char *name, int unused, const struct GUID *r)
      45             : {
      46           2 :         ndr_print_GUID(ndr, name, r);
      47           2 : }
      48             : 
      49         218 : _PUBLIC_ size_t ndr_size_GUID(const struct GUID *r, int flags)
      50             : {
      51         218 :         return ndr_size_struct(r, flags, (ndr_push_flags_fn_t)ndr_push_GUID);
      52             : }
      53             : 
      54      881474 : _PUBLIC_ enum ndr_err_code ndr_push_ndr_syntax_id(struct ndr_push *ndr, int ndr_flags, const struct ndr_syntax_id *r)
      55             : {
      56      881474 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      57      881474 :         if (ndr_flags & NDR_SCALARS) {
      58      881474 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      59      881474 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->uuid));
      60      881474 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->if_version));
      61      881474 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      62             :         }
      63      875082 :         if (ndr_flags & NDR_BUFFERS) {
      64             :         }
      65      881474 :         return NDR_ERR_SUCCESS;
      66             : }
      67             : 
      68     1002998 : _PUBLIC_ enum ndr_err_code ndr_pull_ndr_syntax_id(struct ndr_pull *ndr, int ndr_flags, struct ndr_syntax_id *r)
      69             : {
      70     1002998 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      71     1002998 :         if (ndr_flags & NDR_SCALARS) {
      72     1002998 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      73     1002998 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->uuid));
      74     1002998 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->if_version));
      75     1002998 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      76             :         }
      77      994782 :         if (ndr_flags & NDR_BUFFERS) {
      78             :         }
      79     1002998 :         return NDR_ERR_SUCCESS;
      80             : }
      81             : 
      82           0 : static void ndr_print_flags_ndr_syntax_id(struct ndr_print *ndr, const char *name, int unused, const struct ndr_syntax_id *r)
      83             : {
      84           0 :         ndr_print_ndr_syntax_id(ndr, name, r);
      85           0 : }
      86             : 
      87         102 : _PUBLIC_ void ndr_print_ndr_syntax_id(struct ndr_print *ndr, const char *name, const struct ndr_syntax_id *r)
      88             : {
      89         102 :         ndr_print_struct(ndr, name, "ndr_syntax_id");
      90         102 :         if (r == NULL) { ndr_print_null(ndr); return; }
      91         102 :         ndr->depth++;
      92         102 :         ndr_print_GUID(ndr, "uuid", &r->uuid);
      93         102 :         ndr_print_uint32(ndr, "if_version", r->if_version);
      94         102 :         ndr->depth--;
      95             : }
      96             : 
      97    27004403 : _PUBLIC_ enum ndr_err_code ndr_push_policy_handle(struct ndr_push *ndr, int ndr_flags, const struct policy_handle *r)
      98             : {
      99    27004403 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     100    27004403 :         if (ndr_flags & NDR_SCALARS) {
     101    27004403 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     102    27004403 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->handle_type));
     103    27004403 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->uuid));
     104    27004403 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     105             :         }
     106    26959536 :         if (ndr_flags & NDR_BUFFERS) {
     107             :         }
     108    27004403 :         return NDR_ERR_SUCCESS;
     109             : }
     110             : 
     111    27042856 : _PUBLIC_ enum ndr_err_code ndr_pull_policy_handle(struct ndr_pull *ndr, int ndr_flags, struct policy_handle *r)
     112             : {
     113    27042856 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     114    27042856 :         if (ndr_flags & NDR_SCALARS) {
     115    27042856 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     116    27042856 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->handle_type));
     117    27042856 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->uuid));
     118    27042856 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     119             :         }
     120    26997934 :         if (ndr_flags & NDR_BUFFERS) {
     121             :         }
     122    27042856 :         return NDR_ERR_SUCCESS;
     123             : }
     124             : 
     125           0 : static void ndr_print_flags_policy_handle(struct ndr_print *ndr, const char *name, int unused, const struct policy_handle *r)
     126             : {
     127           0 :         ndr_print_policy_handle(ndr, name, r);
     128           0 : }
     129             : 
     130        4825 : _PUBLIC_ void ndr_print_policy_handle(struct ndr_print *ndr, const char *name, const struct policy_handle *r)
     131             : {
     132        4825 :         ndr_print_struct(ndr, name, "policy_handle");
     133        4825 :         if (r == NULL) { ndr_print_null(ndr); return; }
     134        4825 :         ndr->depth++;
     135        4825 :         ndr_print_uint32(ndr, "handle_type", r->handle_type);
     136        4825 :         ndr_print_GUID(ndr, "uuid", &r->uuid);
     137        4825 :         ndr->depth--;
     138             : }
     139             : 
     140       55714 : _PUBLIC_ enum ndr_err_code ndr_push_netr_SchannelType(struct ndr_push *ndr, int ndr_flags, enum netr_SchannelType r)
     141             : {
     142       55714 :         NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
     143       55714 :         return NDR_ERR_SUCCESS;
     144             : }
     145             : 
     146       90262 : _PUBLIC_ enum ndr_err_code ndr_pull_netr_SchannelType(struct ndr_pull *ndr, int ndr_flags, enum netr_SchannelType *r)
     147             : {
     148             :         uint16_t v;
     149       90262 :         NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
     150       90262 :         *r = v;
     151       90262 :         return NDR_ERR_SUCCESS;
     152             : }
     153             : 
     154         155 : _PUBLIC_ void ndr_print_netr_SchannelType(struct ndr_print *ndr, const char *name, enum netr_SchannelType r)
     155             : {
     156         155 :         const char *val = NULL;
     157             : 
     158         155 :         switch (r) {
     159           0 :                 case SEC_CHAN_NULL: val = "SEC_CHAN_NULL"; break;
     160           0 :                 case SEC_CHAN_LOCAL: val = "SEC_CHAN_LOCAL"; break;
     161         130 :                 case SEC_CHAN_WKSTA: val = "SEC_CHAN_WKSTA"; break;
     162           0 :                 case SEC_CHAN_DNS_DOMAIN: val = "SEC_CHAN_DNS_DOMAIN"; break;
     163           0 :                 case SEC_CHAN_DOMAIN: val = "SEC_CHAN_DOMAIN"; break;
     164           0 :                 case SEC_CHAN_LANMAN: val = "SEC_CHAN_LANMAN"; break;
     165          21 :                 case SEC_CHAN_BDC: val = "SEC_CHAN_BDC"; break;
     166           4 :                 case SEC_CHAN_RODC: val = "SEC_CHAN_RODC"; break;
     167             :         }
     168         155 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     169         155 : }
     170             : 
     171           0 : _PUBLIC_ enum ndr_err_code ndr_push_KRB5_EDATA_NTSTATUS(struct ndr_push *ndr, int ndr_flags, const struct KRB5_EDATA_NTSTATUS *r)
     172             : {
     173           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     174           0 :         if (ndr_flags & NDR_SCALARS) {
     175           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     176           0 :                 NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->ntstatus));
     177           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown1));
     178           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->unknown2));
     179           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     180             :         }
     181           0 :         if (ndr_flags & NDR_BUFFERS) {
     182             :         }
     183           0 :         return NDR_ERR_SUCCESS;
     184             : }
     185             : 
     186           0 : _PUBLIC_ enum ndr_err_code ndr_pull_KRB5_EDATA_NTSTATUS(struct ndr_pull *ndr, int ndr_flags, struct KRB5_EDATA_NTSTATUS *r)
     187             : {
     188           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     189           0 :         if (ndr_flags & NDR_SCALARS) {
     190           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     191           0 :                 NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->ntstatus));
     192           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown1));
     193           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->unknown2));
     194           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     195             :         }
     196           0 :         if (ndr_flags & NDR_BUFFERS) {
     197             :         }
     198           0 :         return NDR_ERR_SUCCESS;
     199             : }
     200             : 
     201           0 : static void ndr_print_flags_KRB5_EDATA_NTSTATUS(struct ndr_print *ndr, const char *name, int unused, const struct KRB5_EDATA_NTSTATUS *r)
     202             : {
     203           0 :         ndr_print_KRB5_EDATA_NTSTATUS(ndr, name, r);
     204           0 : }
     205             : 
     206           0 : _PUBLIC_ void ndr_print_KRB5_EDATA_NTSTATUS(struct ndr_print *ndr, const char *name, const struct KRB5_EDATA_NTSTATUS *r)
     207             : {
     208           0 :         ndr_print_struct(ndr, name, "KRB5_EDATA_NTSTATUS");
     209           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     210           0 :         ndr->depth++;
     211           0 :         ndr_print_NTSTATUS(ndr, "ntstatus", r->ntstatus);
     212           0 :         ndr_print_uint32(ndr, "unknown1", r->unknown1);
     213           0 :         ndr_print_uint32(ndr, "unknown2", r->unknown2);
     214           0 :         ndr->depth--;
     215             : }
     216             : 
     217     1505462 : _PUBLIC_ enum ndr_err_code ndr_push_winreg_Type(struct ndr_push *ndr, int ndr_flags, enum winreg_Type r)
     218             : {
     219     1505462 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     220     1505462 :         return NDR_ERR_SUCCESS;
     221             : }
     222             : 
     223     1507506 : _PUBLIC_ enum ndr_err_code ndr_pull_winreg_Type(struct ndr_pull *ndr, int ndr_flags, enum winreg_Type *r)
     224             : {
     225             :         uint32_t v;
     226     1507506 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     227     1507506 :         *r = v;
     228     1507506 :         return NDR_ERR_SUCCESS;
     229             : }
     230             : 
     231         482 : _PUBLIC_ void ndr_print_winreg_Type(struct ndr_print *ndr, const char *name, enum winreg_Type r)
     232             : {
     233         482 :         const char *val = NULL;
     234             : 
     235         482 :         switch (r) {
     236         188 :                 case REG_NONE: val = "REG_NONE"; break;
     237          74 :                 case REG_SZ: val = "REG_SZ"; break;
     238           0 :                 case REG_EXPAND_SZ: val = "REG_EXPAND_SZ"; break;
     239         144 :                 case REG_BINARY: val = "REG_BINARY"; break;
     240          42 :                 case REG_DWORD: val = "REG_DWORD"; break;
     241          10 :                 case REG_DWORD_BIG_ENDIAN: val = "REG_DWORD_BIG_ENDIAN"; break;
     242           0 :                 case REG_LINK: val = "REG_LINK"; break;
     243          12 :                 case REG_MULTI_SZ: val = "REG_MULTI_SZ"; break;
     244           0 :                 case REG_RESOURCE_LIST: val = "REG_RESOURCE_LIST"; break;
     245           0 :                 case REG_FULL_RESOURCE_DESCRIPTOR: val = "REG_FULL_RESOURCE_DESCRIPTOR"; break;
     246           0 :                 case REG_RESOURCE_REQUIREMENTS_LIST: val = "REG_RESOURCE_REQUIREMENTS_LIST"; break;
     247          10 :                 case REG_QWORD: val = "REG_QWORD"; break;
     248             :         }
     249         482 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     250         482 : }
     251             : 
     252      677415 : _PUBLIC_ enum ndr_err_code ndr_push_winreg_Data(struct ndr_push *ndr, int ndr_flags, const union winreg_Data *r)
     253             : {
     254             :         uint32_t level;
     255             :         {
     256      677415 :                 uint32_t _flags_save_UNION = ndr->flags;
     257      677415 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN);
     258      677415 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     259      677415 :                 if (ndr_flags & NDR_SCALARS) {
     260             :                         /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     261      677415 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     262      677415 :                         NDR_CHECK(ndr_push_union_align(ndr, 8));
     263      677415 :                         switch (level) {
     264           0 :                                 case REG_NONE: {
     265           0 :                                 break; }
     266             : 
     267      637820 :                                 case REG_SZ: {
     268             :                                         {
     269      637820 :                                                 uint32_t _flags_save_string = ndr->flags;
     270      637820 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     271      637820 :                                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
     272      627750 :                                                 ndr->flags = _flags_save_string;
     273             :                                         }
     274      627750 :                                 break; }
     275             : 
     276           0 :                                 case REG_EXPAND_SZ: {
     277             :                                         {
     278           0 :                                                 uint32_t _flags_save_string = ndr->flags;
     279           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     280           0 :                                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
     281           0 :                                                 ndr->flags = _flags_save_string;
     282             :                                         }
     283           0 :                                 break; }
     284             : 
     285           0 :                                 case REG_BINARY: {
     286             :                                         {
     287           0 :                                                 uint32_t _flags_save_DATA_BLOB = ndr->flags;
     288           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     289           0 :                                                 NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->binary));
     290           0 :                                                 ndr->flags = _flags_save_DATA_BLOB;
     291             :                                         }
     292           0 :                                 break; }
     293             : 
     294           0 :                                 case REG_DWORD: {
     295           0 :                                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->value));
     296           0 :                                 break; }
     297             : 
     298           0 :                                 case REG_DWORD_BIG_ENDIAN: {
     299             :                                         {
     300           0 :                                                 uint32_t _flags_save_uint32 = ndr->flags;
     301           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     302           0 :                                                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->value));
     303           0 :                                                 ndr->flags = _flags_save_uint32;
     304             :                                         }
     305           0 :                                 break; }
     306             : 
     307       39595 :                                 case REG_MULTI_SZ: {
     308             :                                         {
     309       39595 :                                                 uint32_t _flags_save_string_array = ndr->flags;
     310       39595 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     311       39595 :                                                 NDR_CHECK(ndr_push_string_array(ndr, NDR_SCALARS, r->string_array));
     312       39595 :                                                 ndr->flags = _flags_save_string_array;
     313             :                                         }
     314       39595 :                                 break; }
     315             : 
     316           0 :                                 case REG_QWORD: {
     317           0 :                                         NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->qword));
     318           0 :                                 break; }
     319             : 
     320           0 :                                 default: {
     321             :                                         {
     322           0 :                                                 uint32_t _flags_save_DATA_BLOB = ndr->flags;
     323           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     324           0 :                                                 NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->data));
     325           0 :                                                 ndr->flags = _flags_save_DATA_BLOB;
     326             :                                         }
     327           0 :                                 break; }
     328             : 
     329             :                         }
     330           0 :                 }
     331      677415 :                 ndr->flags = _flags_save_UNION;
     332             :         }
     333      677415 :         return NDR_ERR_SUCCESS;
     334             : }
     335             : 
     336       66627 : _PUBLIC_ enum ndr_err_code ndr_pull_winreg_Data(struct ndr_pull *ndr, int ndr_flags, union winreg_Data *r)
     337             : {
     338             :         uint32_t level;
     339             :         {
     340       66627 :                 uint32_t _flags_save_UNION = ndr->flags;
     341       66627 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN);
     342       66627 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     343       66627 :                 if (ndr_flags & NDR_SCALARS) {
     344             :                         /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     345       66627 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     346       66627 :                         NDR_CHECK(ndr_pull_union_align(ndr, 8));
     347       66627 :                         switch (level) {
     348           0 :                                 case REG_NONE: {
     349           0 :                                 break; }
     350             : 
     351       66617 :                                 case REG_SZ: {
     352             :                                         {
     353       66617 :                                                 uint32_t _flags_save_string = ndr->flags;
     354       66617 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     355       66617 :                                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
     356       66609 :                                                 ndr->flags = _flags_save_string;
     357             :                                         }
     358       66609 :                                 break; }
     359             : 
     360           0 :                                 case REG_EXPAND_SZ: {
     361             :                                         {
     362           0 :                                                 uint32_t _flags_save_string = ndr->flags;
     363           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     364           0 :                                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
     365           0 :                                                 ndr->flags = _flags_save_string;
     366             :                                         }
     367           0 :                                 break; }
     368             : 
     369           0 :                                 case REG_BINARY: {
     370             :                                         {
     371           0 :                                                 uint32_t _flags_save_DATA_BLOB = ndr->flags;
     372           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     373           0 :                                                 NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->binary));
     374           0 :                                                 ndr->flags = _flags_save_DATA_BLOB;
     375             :                                         }
     376           0 :                                 break; }
     377             : 
     378           0 :                                 case REG_DWORD: {
     379           0 :                                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->value));
     380           0 :                                 break; }
     381             : 
     382           0 :                                 case REG_DWORD_BIG_ENDIAN: {
     383             :                                         {
     384           0 :                                                 uint32_t _flags_save_uint32 = ndr->flags;
     385           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     386           0 :                                                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->value));
     387           0 :                                                 ndr->flags = _flags_save_uint32;
     388             :                                         }
     389           0 :                                 break; }
     390             : 
     391          10 :                                 case REG_MULTI_SZ: {
     392             :                                         {
     393          10 :                                                 uint32_t _flags_save_string_array = ndr->flags;
     394          10 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     395          10 :                                                 NDR_CHECK(ndr_pull_string_array(ndr, NDR_SCALARS, &r->string_array));
     396          10 :                                                 ndr->flags = _flags_save_string_array;
     397             :                                         }
     398          10 :                                 break; }
     399             : 
     400           0 :                                 case REG_QWORD: {
     401           0 :                                         NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->qword));
     402           0 :                                 break; }
     403             : 
     404           0 :                                 default: {
     405             :                                         {
     406           0 :                                                 uint32_t _flags_save_DATA_BLOB = ndr->flags;
     407           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     408           0 :                                                 NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->data));
     409           0 :                                                 ndr->flags = _flags_save_DATA_BLOB;
     410             :                                         }
     411           0 :                                 break; }
     412             : 
     413             :                         }
     414           0 :                 }
     415       66627 :                 ndr->flags = _flags_save_UNION;
     416             :         }
     417       66627 :         return NDR_ERR_SUCCESS;
     418             : }
     419             : 
     420           0 : _PUBLIC_ void ndr_print_winreg_Data(struct ndr_print *ndr, const char *name, const union winreg_Data *r)
     421             : {
     422             :         uint32_t level;
     423             :         {
     424           0 :                 uint32_t _flags_save_UNION = ndr->flags;
     425           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN);
     426           0 :                 level = ndr_print_steal_switch_value(ndr, r);
     427           0 :                 ndr_print_union(ndr, name, level, "winreg_Data");
     428           0 :                 switch (level) {
     429           0 :                         case REG_NONE:
     430           0 :                         break;
     431             : 
     432           0 :                         case REG_SZ:
     433             :                                 {
     434           0 :                                         uint32_t _flags_save_string = ndr->flags;
     435           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     436           0 :                                         ndr_print_string(ndr, "string", r->string);
     437           0 :                                         ndr->flags = _flags_save_string;
     438             :                                 }
     439           0 :                         break;
     440             : 
     441           0 :                         case REG_EXPAND_SZ:
     442             :                                 {
     443           0 :                                         uint32_t _flags_save_string = ndr->flags;
     444           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     445           0 :                                         ndr_print_string(ndr, "string", r->string);
     446           0 :                                         ndr->flags = _flags_save_string;
     447             :                                 }
     448           0 :                         break;
     449             : 
     450           0 :                         case REG_BINARY:
     451             :                                 {
     452           0 :                                         uint32_t _flags_save_DATA_BLOB = ndr->flags;
     453           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     454           0 :                                         ndr_print_DATA_BLOB(ndr, "binary", r->binary);
     455           0 :                                         ndr->flags = _flags_save_DATA_BLOB;
     456             :                                 }
     457           0 :                         break;
     458             : 
     459           0 :                         case REG_DWORD:
     460           0 :                                 ndr_print_uint32(ndr, "value", r->value);
     461           0 :                         break;
     462             : 
     463           0 :                         case REG_DWORD_BIG_ENDIAN:
     464             :                                 {
     465           0 :                                         uint32_t _flags_save_uint32 = ndr->flags;
     466           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     467           0 :                                         ndr_print_uint32(ndr, "value", r->value);
     468           0 :                                         ndr->flags = _flags_save_uint32;
     469             :                                 }
     470           0 :                         break;
     471             : 
     472           0 :                         case REG_MULTI_SZ:
     473             :                                 {
     474           0 :                                         uint32_t _flags_save_string_array = ndr->flags;
     475           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     476           0 :                                         ndr_print_string_array(ndr, "string_array", r->string_array);
     477           0 :                                         ndr->flags = _flags_save_string_array;
     478             :                                 }
     479           0 :                         break;
     480             : 
     481           0 :                         case REG_QWORD:
     482           0 :                                 ndr_print_hyper(ndr, "qword", r->qword);
     483           0 :                         break;
     484             : 
     485           0 :                         default:
     486             :                                 {
     487           0 :                                         uint32_t _flags_save_DATA_BLOB = ndr->flags;
     488           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     489           0 :                                         ndr_print_DATA_BLOB(ndr, "data", r->data);
     490           0 :                                         ndr->flags = _flags_save_DATA_BLOB;
     491             :                                 }
     492           0 :                         break;
     493             : 
     494             :                 }
     495           0 :                 ndr->flags = _flags_save_UNION;
     496             :         }
     497           0 : }
     498             : 
     499       25216 : _PUBLIC_ enum ndr_err_code ndr_push_winreg_Data_GPO(struct ndr_push *ndr, int ndr_flags, const union winreg_Data_GPO *r)
     500             : {
     501             :         uint32_t level;
     502             :         {
     503       25216 :                 uint32_t _flags_save_UNION = ndr->flags;
     504       25216 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN);
     505       25216 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     506       25216 :                 if (ndr_flags & NDR_SCALARS) {
     507             :                         /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     508       25216 :                         NDR_CHECK(ndr_push_steal_switch_value(ndr, r, &level));
     509       25216 :                         NDR_CHECK(ndr_push_union_align(ndr, 8));
     510       25216 :                         switch (level) {
     511        6624 :                                 case REG_NONE: {
     512        6624 :                                 break; }
     513             : 
     514        9248 :                                 case REG_SZ: {
     515             :                                         {
     516        9248 :                                                 uint32_t _flags_save_string = ndr->flags;
     517        9248 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     518        9248 :                                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
     519        9248 :                                                 ndr->flags = _flags_save_string;
     520             :                                         }
     521        9248 :                                 break; }
     522             : 
     523         608 :                                 case REG_EXPAND_SZ: {
     524             :                                         {
     525         608 :                                                 uint32_t _flags_save_string = ndr->flags;
     526         608 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     527         608 :                                                 NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->string));
     528         608 :                                                 ndr->flags = _flags_save_string;
     529             :                                         }
     530         608 :                                 break; }
     531             : 
     532         288 :                                 case REG_BINARY: {
     533             :                                         {
     534         288 :                                                 uint32_t _flags_save_DATA_BLOB = ndr->flags;
     535         288 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     536         288 :                                                 NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->binary));
     537         288 :                                                 ndr->flags = _flags_save_DATA_BLOB;
     538             :                                         }
     539         288 :                                 break; }
     540             : 
     541        7256 :                                 case REG_DWORD: {
     542        7256 :                                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->value));
     543        7256 :                                 break; }
     544             : 
     545           0 :                                 case REG_DWORD_BIG_ENDIAN: {
     546             :                                         {
     547           0 :                                                 uint32_t _flags_save_uint32 = ndr->flags;
     548           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     549           0 :                                                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->value));
     550           0 :                                                 ndr->flags = _flags_save_uint32;
     551             :                                         }
     552           0 :                                 break; }
     553             : 
     554         576 :                                 case REG_QWORD: {
     555         576 :                                         NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->qword));
     556         576 :                                 break; }
     557             : 
     558         616 :                                 default: {
     559             :                                         {
     560         616 :                                                 uint32_t _flags_save_DATA_BLOB = ndr->flags;
     561         616 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     562         616 :                                                 NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->data));
     563         616 :                                                 ndr->flags = _flags_save_DATA_BLOB;
     564             :                                         }
     565         616 :                                 break; }
     566             : 
     567             :                         }
     568           0 :                 }
     569       25216 :                 ndr->flags = _flags_save_UNION;
     570             :         }
     571       25216 :         return NDR_ERR_SUCCESS;
     572             : }
     573             : 
     574        8574 : _PUBLIC_ enum ndr_err_code ndr_pull_winreg_Data_GPO(struct ndr_pull *ndr, int ndr_flags, union winreg_Data_GPO *r)
     575             : {
     576             :         uint32_t level;
     577             :         {
     578        8574 :                 uint32_t _flags_save_UNION = ndr->flags;
     579        8574 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN);
     580        8574 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     581        8574 :                 if (ndr_flags & NDR_SCALARS) {
     582             :                         /* This token is not used again (except perhaps below in the NDR_BUFFERS case) */
     583        8574 :                         NDR_CHECK(ndr_pull_steal_switch_value(ndr, r, &level));
     584        8574 :                         NDR_CHECK(ndr_pull_union_align(ndr, 8));
     585        8574 :                         switch (level) {
     586        1656 :                                 case REG_NONE: {
     587        1656 :                                 break; }
     588             : 
     589        3472 :                                 case REG_SZ: {
     590             :                                         {
     591        3472 :                                                 uint32_t _flags_save_string = ndr->flags;
     592        3472 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     593        3472 :                                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
     594        3472 :                                                 ndr->flags = _flags_save_string;
     595             :                                         }
     596        3472 :                                 break; }
     597             : 
     598         160 :                                 case REG_EXPAND_SZ: {
     599             :                                         {
     600         160 :                                                 uint32_t _flags_save_string = ndr->flags;
     601         160 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     602         160 :                                                 NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->string));
     603         160 :                                                 ndr->flags = _flags_save_string;
     604             :                                         }
     605         160 :                                 break; }
     606             : 
     607          72 :                                 case REG_BINARY: {
     608             :                                         {
     609          72 :                                                 uint32_t _flags_save_DATA_BLOB = ndr->flags;
     610          72 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     611          72 :                                                 NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->binary));
     612          72 :                                                 ndr->flags = _flags_save_DATA_BLOB;
     613             :                                         }
     614          72 :                                 break; }
     615             : 
     616        2906 :                                 case REG_DWORD: {
     617        2906 :                                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->value));
     618        2906 :                                 break; }
     619             : 
     620           0 :                                 case REG_DWORD_BIG_ENDIAN: {
     621             :                                         {
     622           0 :                                                 uint32_t _flags_save_uint32 = ndr->flags;
     623           0 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     624           0 :                                                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->value));
     625           0 :                                                 ndr->flags = _flags_save_uint32;
     626             :                                         }
     627           0 :                                 break; }
     628             : 
     629         144 :                                 case REG_QWORD: {
     630         144 :                                         NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->qword));
     631         144 :                                 break; }
     632             : 
     633         164 :                                 default: {
     634             :                                         {
     635         164 :                                                 uint32_t _flags_save_DATA_BLOB = ndr->flags;
     636         164 :                                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     637         164 :                                                 NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->data));
     638         164 :                                                 ndr->flags = _flags_save_DATA_BLOB;
     639             :                                         }
     640         164 :                                 break; }
     641             : 
     642             :                         }
     643           0 :                 }
     644        8574 :                 ndr->flags = _flags_save_UNION;
     645             :         }
     646        8574 :         return NDR_ERR_SUCCESS;
     647             : }
     648             : 
     649           0 : _PUBLIC_ void ndr_print_winreg_Data_GPO(struct ndr_print *ndr, const char *name, const union winreg_Data_GPO *r)
     650             : {
     651             :         uint32_t level;
     652             :         {
     653           0 :                 uint32_t _flags_save_UNION = ndr->flags;
     654           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_LITTLE_ENDIAN);
     655           0 :                 level = ndr_print_steal_switch_value(ndr, r);
     656           0 :                 ndr_print_union(ndr, name, level, "winreg_Data_GPO");
     657           0 :                 switch (level) {
     658           0 :                         case REG_NONE:
     659           0 :                         break;
     660             : 
     661           0 :                         case REG_SZ:
     662             :                                 {
     663           0 :                                         uint32_t _flags_save_string = ndr->flags;
     664           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     665           0 :                                         ndr_print_string(ndr, "string", r->string);
     666           0 :                                         ndr->flags = _flags_save_string;
     667             :                                 }
     668           0 :                         break;
     669             : 
     670           0 :                         case REG_EXPAND_SZ:
     671             :                                 {
     672           0 :                                         uint32_t _flags_save_string = ndr->flags;
     673           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_ALIGN2);
     674           0 :                                         ndr_print_string(ndr, "string", r->string);
     675           0 :                                         ndr->flags = _flags_save_string;
     676             :                                 }
     677           0 :                         break;
     678             : 
     679           0 :                         case REG_BINARY:
     680             :                                 {
     681           0 :                                         uint32_t _flags_save_DATA_BLOB = ndr->flags;
     682           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     683           0 :                                         ndr_print_DATA_BLOB(ndr, "binary", r->binary);
     684           0 :                                         ndr->flags = _flags_save_DATA_BLOB;
     685             :                                 }
     686           0 :                         break;
     687             : 
     688           0 :                         case REG_DWORD:
     689           0 :                                 ndr_print_uint32(ndr, "value", r->value);
     690           0 :                         break;
     691             : 
     692           0 :                         case REG_DWORD_BIG_ENDIAN:
     693             :                                 {
     694           0 :                                         uint32_t _flags_save_uint32 = ndr->flags;
     695           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_BIGENDIAN);
     696           0 :                                         ndr_print_uint32(ndr, "value", r->value);
     697           0 :                                         ndr->flags = _flags_save_uint32;
     698             :                                 }
     699           0 :                         break;
     700             : 
     701           0 :                         case REG_QWORD:
     702           0 :                                 ndr_print_hyper(ndr, "qword", r->qword);
     703           0 :                         break;
     704             : 
     705           0 :                         default:
     706             :                                 {
     707           0 :                                         uint32_t _flags_save_DATA_BLOB = ndr->flags;
     708           0 :                                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_REMAINING);
     709           0 :                                         ndr_print_DATA_BLOB(ndr, "data", r->data);
     710           0 :                                         ndr->flags = _flags_save_DATA_BLOB;
     711             :                                 }
     712           0 :                         break;
     713             : 
     714             :                 }
     715           0 :                 ndr->flags = _flags_save_UNION;
     716             :         }
     717           0 : }
     718             : 
     719       18912 : _PUBLIC_ size_t ndr_size_winreg_Data_GPO(const union winreg_Data_GPO *r, uint32_t level, int flags)
     720             : {
     721       18912 :         flags |= LIBNDR_FLAG_LITTLE_ENDIAN;
     722       18912 :         return ndr_size_union(r, flags, level, (ndr_push_flags_fn_t)ndr_push_winreg_Data_GPO);
     723             : }
     724             : 
     725          36 : _PUBLIC_ enum ndr_err_code ndr_push_netr_SamDatabaseID(struct ndr_push *ndr, int ndr_flags, enum netr_SamDatabaseID r)
     726             : {
     727          36 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     728          36 :         return NDR_ERR_SUCCESS;
     729             : }
     730             : 
     731        1116 : _PUBLIC_ enum ndr_err_code ndr_pull_netr_SamDatabaseID(struct ndr_pull *ndr, int ndr_flags, enum netr_SamDatabaseID *r)
     732             : {
     733             :         uint32_t v;
     734        1116 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     735        1116 :         *r = v;
     736        1116 :         return NDR_ERR_SUCCESS;
     737             : }
     738             : 
     739           0 : _PUBLIC_ void ndr_print_netr_SamDatabaseID(struct ndr_print *ndr, const char *name, enum netr_SamDatabaseID r)
     740             : {
     741           0 :         const char *val = NULL;
     742             : 
     743           0 :         switch (r) {
     744           0 :                 case SAM_DATABASE_DOMAIN: val = "SAM_DATABASE_DOMAIN"; break;
     745           0 :                 case SAM_DATABASE_BUILTIN: val = "SAM_DATABASE_BUILTIN"; break;
     746           0 :                 case SAM_DATABASE_PRIVS: val = "SAM_DATABASE_PRIVS"; break;
     747             :         }
     748           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     749           0 : }
     750             : 
     751         282 : _PUBLIC_ enum ndr_err_code ndr_push_svcctl_ServerType(struct ndr_push *ndr, int ndr_flags, uint32_t r)
     752             : {
     753         282 :         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
     754         282 :         return NDR_ERR_SUCCESS;
     755             : }
     756             : 
     757         424 : _PUBLIC_ enum ndr_err_code ndr_pull_svcctl_ServerType(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
     758             : {
     759             :         uint32_t v;
     760         424 :         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
     761         424 :         *r = v;
     762         424 :         return NDR_ERR_SUCCESS;
     763             : }
     764             : 
     765           6 : _PUBLIC_ void ndr_print_svcctl_ServerType(struct ndr_print *ndr, const char *name, uint32_t r)
     766             : {
     767           6 :         ndr_print_uint32(ndr, name, r);
     768           6 :         ndr->depth++;
     769           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_WORKSTATION", SV_TYPE_WORKSTATION, r);
     770           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_SERVER", SV_TYPE_SERVER, r);
     771           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_SQLSERVER", SV_TYPE_SQLSERVER, r);
     772           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_DOMAIN_CTRL", SV_TYPE_DOMAIN_CTRL, r);
     773           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_DOMAIN_BAKCTRL", SV_TYPE_DOMAIN_BAKCTRL, r);
     774           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_TIME_SOURCE", SV_TYPE_TIME_SOURCE, r);
     775           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_AFP", SV_TYPE_AFP, r);
     776           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_NOVELL", SV_TYPE_NOVELL, r);
     777           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_DOMAIN_MEMBER", SV_TYPE_DOMAIN_MEMBER, r);
     778           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_PRINTQ_SERVER", SV_TYPE_PRINTQ_SERVER, r);
     779           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_DIALIN_SERVER", SV_TYPE_DIALIN_SERVER, r);
     780           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_SERVER_UNIX", SV_TYPE_SERVER_UNIX, r);
     781           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_NT", SV_TYPE_NT, r);
     782           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_WFW", SV_TYPE_WFW, r);
     783           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_SERVER_MFPN", SV_TYPE_SERVER_MFPN, r);
     784           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_SERVER_NT", SV_TYPE_SERVER_NT, r);
     785           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_POTENTIAL_BROWSER", SV_TYPE_POTENTIAL_BROWSER, r);
     786           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_BACKUP_BROWSER", SV_TYPE_BACKUP_BROWSER, r);
     787           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_MASTER_BROWSER", SV_TYPE_MASTER_BROWSER, r);
     788           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_DOMAIN_MASTER", SV_TYPE_DOMAIN_MASTER, r);
     789           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_SERVER_OSF", SV_TYPE_SERVER_OSF, r);
     790           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_SERVER_VMS", SV_TYPE_SERVER_VMS, r);
     791           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_WIN95_PLUS", SV_TYPE_WIN95_PLUS, r);
     792           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_DFS_SERVER", SV_TYPE_DFS_SERVER, r);
     793           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_ALTERNATE_XPORT", SV_TYPE_ALTERNATE_XPORT, r);
     794           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_LOCAL_LIST_ONLY", SV_TYPE_LOCAL_LIST_ONLY, r);
     795           6 :         ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "SV_TYPE_DOMAIN_ENUM", SV_TYPE_DOMAIN_ENUM, r);
     796           6 :         ndr->depth--;
     797           6 : }
     798             : 
     799             : #ifndef SKIP_NDR_TABLE_misc
     800             : static const struct ndr_interface_public_struct misc_public_structs[] = {
     801             :         {
     802             :                 .name = "GUID",
     803             :                 .struct_size = sizeof(struct GUID ),
     804             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_GUID,
     805             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_GUID,
     806             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_GUID,
     807             :         },
     808             :         {
     809             :                 .name = "ndr_syntax_id",
     810             :                 .struct_size = sizeof(struct ndr_syntax_id ),
     811             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_ndr_syntax_id,
     812             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_ndr_syntax_id,
     813             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_ndr_syntax_id,
     814             :         },
     815             :         {
     816             :                 .name = "policy_handle",
     817             :                 .struct_size = sizeof(struct policy_handle ),
     818             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_policy_handle,
     819             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_policy_handle,
     820             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_policy_handle,
     821             :         },
     822             :         {
     823             :                 .name = "KRB5_EDATA_NTSTATUS",
     824             :                 .struct_size = sizeof(struct KRB5_EDATA_NTSTATUS ),
     825             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_KRB5_EDATA_NTSTATUS,
     826             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_KRB5_EDATA_NTSTATUS,
     827             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_KRB5_EDATA_NTSTATUS,
     828             :         },
     829             :         { .name = NULL }
     830             : };
     831             : 
     832             : static const struct ndr_interface_call misc_calls[] = {
     833             :         { .name = NULL }
     834             : };
     835             : 
     836             : static const char * const misc_endpoint_strings[] = {
     837             :         "ncacn_np:[\\pipe\\misc]", 
     838             : };
     839             : 
     840             : static const struct ndr_interface_string_array misc_endpoints = {
     841             :         .count  = 1,
     842             :         .names  = misc_endpoint_strings
     843             : };
     844             : 
     845             : static const char * const misc_authservice_strings[] = {
     846             :         "host", 
     847             : };
     848             : 
     849             : static const struct ndr_interface_string_array misc_authservices = {
     850             :         .count  = 1,
     851             :         .names  = misc_authservice_strings
     852             : };
     853             : 
     854             : 
     855             : const struct ndr_interface_table ndr_table_misc = {
     856             :         .name           = "misc",
     857             :         .num_calls      = 0,
     858             :         .calls          = misc_calls,
     859             :         .num_public_structs     = 4,
     860             :         .public_structs         = misc_public_structs,
     861             :         .endpoints      = &misc_endpoints,
     862             :         .authservices   = &misc_authservices
     863             : };
     864             : 
     865             : #endif /* SKIP_NDR_TABLE_misc */

Generated by: LCOV version 1.13