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

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_rot.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_orpc.h"
       7           0 : static enum ndr_err_code ndr_push_rot_add(struct ndr_push *ndr, ndr_flags_type flags, const struct rot_add *r)
       8             : {
       9           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
      10           0 :         if (flags & NDR_IN) {
      11           0 :                 if (r->in.unk == NULL) {
      12           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
      13             :                 }
      14           0 :                 if (r->in.moniker == NULL) {
      15           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
      16             :                 }
      17           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags));
      18           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.unk));
      19           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.moniker));
      20             :         }
      21           0 :         if (flags & NDR_OUT) {
      22           0 :                 if (r->out.rotid == NULL) {
      23           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
      24             :                 }
      25           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->out.rotid));
      26           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
      27             :         }
      28           0 :         return NDR_ERR_SUCCESS;
      29             : }
      30             : 
      31           0 : static enum ndr_err_code ndr_pull_rot_add(struct ndr_pull *ndr, ndr_flags_type flags, struct rot_add *r)
      32             : {
      33           0 :         TALLOC_CTX *_mem_save_unk_0 = NULL;
      34           0 :         TALLOC_CTX *_mem_save_moniker_0 = NULL;
      35           0 :         TALLOC_CTX *_mem_save_rotid_0 = NULL;
      36           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
      37           0 :         if (flags & NDR_IN) {
      38           0 :                 NDR_ZERO_STRUCT(r->out);
      39             : 
      40           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags));
      41           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
      42           0 :                         NDR_PULL_ALLOC(ndr, r->in.unk);
      43             :                 }
      44           0 :                 _mem_save_unk_0 = NDR_PULL_GET_MEM_CTX(ndr);
      45           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.unk, LIBNDR_FLAG_REF_ALLOC);
      46           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.unk));
      47           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_unk_0, LIBNDR_FLAG_REF_ALLOC);
      48           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
      49           0 :                         NDR_PULL_ALLOC(ndr, r->in.moniker);
      50             :                 }
      51           0 :                 _mem_save_moniker_0 = NDR_PULL_GET_MEM_CTX(ndr);
      52           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.moniker, LIBNDR_FLAG_REF_ALLOC);
      53           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.moniker));
      54           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_moniker_0, LIBNDR_FLAG_REF_ALLOC);
      55           0 :                 NDR_PULL_ALLOC(ndr, r->out.rotid);
      56           0 :                 NDR_ZERO_STRUCTP(r->out.rotid);
      57             :         }
      58           0 :         if (flags & NDR_OUT) {
      59             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
      60             :                 if (r->in.unk == NULL) {
      61             :                         NDR_PULL_ALLOC(ndr, r->in.unk);
      62             :                         NDR_ZERO_STRUCTP(r->in.unk);
      63             :                 }
      64             :                 if (r->in.moniker == NULL) {
      65             :                         NDR_PULL_ALLOC(ndr, r->in.moniker);
      66             :                         NDR_ZERO_STRUCTP(r->in.moniker);
      67             :                 }
      68             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
      69           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
      70           0 :                         NDR_PULL_ALLOC(ndr, r->out.rotid);
      71             :                 }
      72           0 :                 _mem_save_rotid_0 = NDR_PULL_GET_MEM_CTX(ndr);
      73           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.rotid, LIBNDR_FLAG_REF_ALLOC);
      74           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->out.rotid));
      75           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_rotid_0, LIBNDR_FLAG_REF_ALLOC);
      76           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
      77             :         }
      78           0 :         return NDR_ERR_SUCCESS;
      79             : }
      80             : 
      81           0 : _PUBLIC_ void ndr_print_rot_add(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rot_add *r)
      82             : {
      83           0 :         ndr_print_struct(ndr, name, "rot_add");
      84           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      85           0 :         ndr->depth++;
      86           0 :         if (flags & NDR_SET_VALUES) {
      87           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
      88             :         }
      89           0 :         if (flags & NDR_IN) {
      90           0 :                 ndr_print_struct(ndr, "in", "rot_add");
      91           0 :                 ndr->depth++;
      92           0 :                 ndr_print_uint32(ndr, "flags", r->in.flags);
      93           0 :                 ndr_print_ptr(ndr, "unk", r->in.unk);
      94           0 :                 ndr->depth++;
      95           0 :                 ndr_print_MInterfacePointer(ndr, "unk", r->in.unk);
      96           0 :                 ndr->depth--;
      97           0 :                 ndr_print_ptr(ndr, "moniker", r->in.moniker);
      98           0 :                 ndr->depth++;
      99           0 :                 ndr_print_MInterfacePointer(ndr, "moniker", r->in.moniker);
     100           0 :                 ndr->depth--;
     101           0 :                 ndr->depth--;
     102             :         }
     103           0 :         if (flags & NDR_OUT) {
     104           0 :                 ndr_print_struct(ndr, "out", "rot_add");
     105           0 :                 ndr->depth++;
     106           0 :                 ndr_print_ptr(ndr, "rotid", r->out.rotid);
     107           0 :                 ndr->depth++;
     108           0 :                 ndr_print_uint32(ndr, "rotid", *r->out.rotid);
     109           0 :                 ndr->depth--;
     110           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     111           0 :                 ndr->depth--;
     112             :         }
     113           0 :         ndr->depth--;
     114             : }
     115             : 
     116           0 : static enum ndr_err_code ndr_push_rot_remove(struct ndr_push *ndr, ndr_flags_type flags, const struct rot_remove *r)
     117             : {
     118           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     119           0 :         if (flags & NDR_IN) {
     120           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.rotid));
     121             :         }
     122           0 :         if (flags & NDR_OUT) {
     123           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     124             :         }
     125           0 :         return NDR_ERR_SUCCESS;
     126             : }
     127             : 
     128           0 : static enum ndr_err_code ndr_pull_rot_remove(struct ndr_pull *ndr, ndr_flags_type flags, struct rot_remove *r)
     129             : {
     130           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     131           0 :         if (flags & NDR_IN) {
     132           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.rotid));
     133             :         }
     134           0 :         if (flags & NDR_OUT) {
     135             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     136             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     137           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     138             :         }
     139           0 :         return NDR_ERR_SUCCESS;
     140             : }
     141             : 
     142           0 : _PUBLIC_ void ndr_print_rot_remove(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rot_remove *r)
     143             : {
     144           0 :         ndr_print_struct(ndr, name, "rot_remove");
     145           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     146           0 :         ndr->depth++;
     147           0 :         if (flags & NDR_SET_VALUES) {
     148           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     149             :         }
     150           0 :         if (flags & NDR_IN) {
     151           0 :                 ndr_print_struct(ndr, "in", "rot_remove");
     152           0 :                 ndr->depth++;
     153           0 :                 ndr_print_uint32(ndr, "rotid", r->in.rotid);
     154           0 :                 ndr->depth--;
     155             :         }
     156           0 :         if (flags & NDR_OUT) {
     157           0 :                 ndr_print_struct(ndr, "out", "rot_remove");
     158           0 :                 ndr->depth++;
     159           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     160           0 :                 ndr->depth--;
     161             :         }
     162           0 :         ndr->depth--;
     163             : }
     164             : 
     165           0 : static enum ndr_err_code ndr_push_rot_is_listed(struct ndr_push *ndr, ndr_flags_type flags, const struct rot_is_listed *r)
     166             : {
     167           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     168           0 :         if (flags & NDR_IN) {
     169           0 :                 if (r->in.moniker == NULL) {
     170           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     171             :                 }
     172           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.moniker));
     173             :         }
     174           0 :         if (flags & NDR_OUT) {
     175           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     176             :         }
     177           0 :         return NDR_ERR_SUCCESS;
     178             : }
     179             : 
     180           0 : static enum ndr_err_code ndr_pull_rot_is_listed(struct ndr_pull *ndr, ndr_flags_type flags, struct rot_is_listed *r)
     181             : {
     182           0 :         TALLOC_CTX *_mem_save_moniker_0 = NULL;
     183           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     184           0 :         if (flags & NDR_IN) {
     185           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     186           0 :                         NDR_PULL_ALLOC(ndr, r->in.moniker);
     187             :                 }
     188           0 :                 _mem_save_moniker_0 = NDR_PULL_GET_MEM_CTX(ndr);
     189           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.moniker, LIBNDR_FLAG_REF_ALLOC);
     190           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.moniker));
     191           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_moniker_0, LIBNDR_FLAG_REF_ALLOC);
     192             :         }
     193           0 :         if (flags & NDR_OUT) {
     194             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     195             :                 if (r->in.moniker == NULL) {
     196             :                         NDR_PULL_ALLOC(ndr, r->in.moniker);
     197             :                         NDR_ZERO_STRUCTP(r->in.moniker);
     198             :                 }
     199             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     200           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     201             :         }
     202           0 :         return NDR_ERR_SUCCESS;
     203             : }
     204             : 
     205           0 : _PUBLIC_ void ndr_print_rot_is_listed(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rot_is_listed *r)
     206             : {
     207           0 :         ndr_print_struct(ndr, name, "rot_is_listed");
     208           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     209           0 :         ndr->depth++;
     210           0 :         if (flags & NDR_SET_VALUES) {
     211           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     212             :         }
     213           0 :         if (flags & NDR_IN) {
     214           0 :                 ndr_print_struct(ndr, "in", "rot_is_listed");
     215           0 :                 ndr->depth++;
     216           0 :                 ndr_print_ptr(ndr, "moniker", r->in.moniker);
     217           0 :                 ndr->depth++;
     218           0 :                 ndr_print_MInterfacePointer(ndr, "moniker", r->in.moniker);
     219           0 :                 ndr->depth--;
     220           0 :                 ndr->depth--;
     221             :         }
     222           0 :         if (flags & NDR_OUT) {
     223           0 :                 ndr_print_struct(ndr, "out", "rot_is_listed");
     224           0 :                 ndr->depth++;
     225           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     226           0 :                 ndr->depth--;
     227             :         }
     228           0 :         ndr->depth--;
     229             : }
     230             : 
     231           0 : static enum ndr_err_code ndr_push_rot_get_interface_pointer(struct ndr_push *ndr, ndr_flags_type flags, const struct rot_get_interface_pointer *r)
     232             : {
     233           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     234           0 :         if (flags & NDR_IN) {
     235           0 :                 if (r->in.moniker == NULL) {
     236           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     237             :                 }
     238           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.moniker));
     239             :         }
     240           0 :         if (flags & NDR_OUT) {
     241           0 :                 if (r->out.ip == NULL) {
     242           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     243             :                 }
     244           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ip));
     245           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     246             :         }
     247           0 :         return NDR_ERR_SUCCESS;
     248             : }
     249             : 
     250           0 : static enum ndr_err_code ndr_pull_rot_get_interface_pointer(struct ndr_pull *ndr, ndr_flags_type flags, struct rot_get_interface_pointer *r)
     251             : {
     252           0 :         TALLOC_CTX *_mem_save_moniker_0 = NULL;
     253           0 :         TALLOC_CTX *_mem_save_ip_0 = NULL;
     254           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     255           0 :         if (flags & NDR_IN) {
     256           0 :                 NDR_ZERO_STRUCT(r->out);
     257             : 
     258           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     259           0 :                         NDR_PULL_ALLOC(ndr, r->in.moniker);
     260             :                 }
     261           0 :                 _mem_save_moniker_0 = NDR_PULL_GET_MEM_CTX(ndr);
     262           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.moniker, LIBNDR_FLAG_REF_ALLOC);
     263           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.moniker));
     264           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_moniker_0, LIBNDR_FLAG_REF_ALLOC);
     265           0 :                 NDR_PULL_ALLOC(ndr, r->out.ip);
     266           0 :                 NDR_ZERO_STRUCTP(r->out.ip);
     267             :         }
     268           0 :         if (flags & NDR_OUT) {
     269             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     270             :                 if (r->in.moniker == NULL) {
     271             :                         NDR_PULL_ALLOC(ndr, r->in.moniker);
     272             :                         NDR_ZERO_STRUCTP(r->in.moniker);
     273             :                 }
     274             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     275           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     276           0 :                         NDR_PULL_ALLOC(ndr, r->out.ip);
     277             :                 }
     278           0 :                 _mem_save_ip_0 = NDR_PULL_GET_MEM_CTX(ndr);
     279           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.ip, LIBNDR_FLAG_REF_ALLOC);
     280           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.ip));
     281           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ip_0, LIBNDR_FLAG_REF_ALLOC);
     282           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     283             :         }
     284           0 :         return NDR_ERR_SUCCESS;
     285             : }
     286             : 
     287           0 : _PUBLIC_ void ndr_print_rot_get_interface_pointer(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rot_get_interface_pointer *r)
     288             : {
     289           0 :         ndr_print_struct(ndr, name, "rot_get_interface_pointer");
     290           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     291           0 :         ndr->depth++;
     292           0 :         if (flags & NDR_SET_VALUES) {
     293           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     294             :         }
     295           0 :         if (flags & NDR_IN) {
     296           0 :                 ndr_print_struct(ndr, "in", "rot_get_interface_pointer");
     297           0 :                 ndr->depth++;
     298           0 :                 ndr_print_ptr(ndr, "moniker", r->in.moniker);
     299           0 :                 ndr->depth++;
     300           0 :                 ndr_print_MInterfacePointer(ndr, "moniker", r->in.moniker);
     301           0 :                 ndr->depth--;
     302           0 :                 ndr->depth--;
     303             :         }
     304           0 :         if (flags & NDR_OUT) {
     305           0 :                 ndr_print_struct(ndr, "out", "rot_get_interface_pointer");
     306           0 :                 ndr->depth++;
     307           0 :                 ndr_print_ptr(ndr, "ip", r->out.ip);
     308           0 :                 ndr->depth++;
     309           0 :                 ndr_print_MInterfacePointer(ndr, "ip", r->out.ip);
     310           0 :                 ndr->depth--;
     311           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     312           0 :                 ndr->depth--;
     313             :         }
     314           0 :         ndr->depth--;
     315             : }
     316             : 
     317           0 : static enum ndr_err_code ndr_push_rot_set_modification_time(struct ndr_push *ndr, ndr_flags_type flags, const struct rot_set_modification_time *r)
     318             : {
     319           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     320           0 :         if (flags & NDR_IN) {
     321           0 :                 if (r->in.t == NULL) {
     322           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     323             :                 }
     324           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.rotid));
     325           0 :                 NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, *r->in.t));
     326             :         }
     327           0 :         if (flags & NDR_OUT) {
     328           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     329             :         }
     330           0 :         return NDR_ERR_SUCCESS;
     331             : }
     332             : 
     333           0 : static enum ndr_err_code ndr_pull_rot_set_modification_time(struct ndr_pull *ndr, ndr_flags_type flags, struct rot_set_modification_time *r)
     334             : {
     335           0 :         TALLOC_CTX *_mem_save_t_0 = NULL;
     336           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     337           0 :         if (flags & NDR_IN) {
     338           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.rotid));
     339           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     340           0 :                         NDR_PULL_ALLOC(ndr, r->in.t);
     341             :                 }
     342           0 :                 _mem_save_t_0 = NDR_PULL_GET_MEM_CTX(ndr);
     343           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.t, LIBNDR_FLAG_REF_ALLOC);
     344           0 :                 NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, r->in.t));
     345           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_t_0, LIBNDR_FLAG_REF_ALLOC);
     346             :         }
     347           0 :         if (flags & NDR_OUT) {
     348             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     349             :                 if (r->in.t == NULL) {
     350             :                         NDR_PULL_ALLOC(ndr, r->in.t);
     351             :                         NDR_ZERO_STRUCTP(r->in.t);
     352             :                 }
     353             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     354           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     355             :         }
     356           0 :         return NDR_ERR_SUCCESS;
     357             : }
     358             : 
     359           0 : _PUBLIC_ void ndr_print_rot_set_modification_time(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rot_set_modification_time *r)
     360             : {
     361           0 :         ndr_print_struct(ndr, name, "rot_set_modification_time");
     362           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     363           0 :         ndr->depth++;
     364           0 :         if (flags & NDR_SET_VALUES) {
     365           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     366             :         }
     367           0 :         if (flags & NDR_IN) {
     368           0 :                 ndr_print_struct(ndr, "in", "rot_set_modification_time");
     369           0 :                 ndr->depth++;
     370           0 :                 ndr_print_uint32(ndr, "rotid", r->in.rotid);
     371           0 :                 ndr_print_ptr(ndr, "t", r->in.t);
     372           0 :                 ndr->depth++;
     373           0 :                 ndr_print_NTTIME(ndr, "t", *r->in.t);
     374           0 :                 ndr->depth--;
     375           0 :                 ndr->depth--;
     376             :         }
     377           0 :         if (flags & NDR_OUT) {
     378           0 :                 ndr_print_struct(ndr, "out", "rot_set_modification_time");
     379           0 :                 ndr->depth++;
     380           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     381           0 :                 ndr->depth--;
     382             :         }
     383           0 :         ndr->depth--;
     384             : }
     385             : 
     386           0 : static enum ndr_err_code ndr_push_rot_get_modification_time(struct ndr_push *ndr, ndr_flags_type flags, const struct rot_get_modification_time *r)
     387             : {
     388           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     389           0 :         if (flags & NDR_IN) {
     390           0 :                 if (r->in.moniker == NULL) {
     391           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     392             :                 }
     393           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.moniker));
     394             :         }
     395           0 :         if (flags & NDR_OUT) {
     396           0 :                 if (r->out.t == NULL) {
     397           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     398             :                 }
     399           0 :                 NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, *r->out.t));
     400           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     401             :         }
     402           0 :         return NDR_ERR_SUCCESS;
     403             : }
     404             : 
     405           0 : static enum ndr_err_code ndr_pull_rot_get_modification_time(struct ndr_pull *ndr, ndr_flags_type flags, struct rot_get_modification_time *r)
     406             : {
     407           0 :         TALLOC_CTX *_mem_save_moniker_0 = NULL;
     408           0 :         TALLOC_CTX *_mem_save_t_0 = NULL;
     409           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     410           0 :         if (flags & NDR_IN) {
     411           0 :                 NDR_ZERO_STRUCT(r->out);
     412             : 
     413           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     414           0 :                         NDR_PULL_ALLOC(ndr, r->in.moniker);
     415             :                 }
     416           0 :                 _mem_save_moniker_0 = NDR_PULL_GET_MEM_CTX(ndr);
     417           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->in.moniker, LIBNDR_FLAG_REF_ALLOC);
     418           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.moniker));
     419           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_moniker_0, LIBNDR_FLAG_REF_ALLOC);
     420           0 :                 NDR_PULL_ALLOC(ndr, r->out.t);
     421           0 :                 NDR_ZERO_STRUCTP(r->out.t);
     422             :         }
     423           0 :         if (flags & NDR_OUT) {
     424             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     425             :                 if (r->in.moniker == NULL) {
     426             :                         NDR_PULL_ALLOC(ndr, r->in.moniker);
     427             :                         NDR_ZERO_STRUCTP(r->in.moniker);
     428             :                 }
     429             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     430           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     431           0 :                         NDR_PULL_ALLOC(ndr, r->out.t);
     432             :                 }
     433           0 :                 _mem_save_t_0 = NDR_PULL_GET_MEM_CTX(ndr);
     434           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.t, LIBNDR_FLAG_REF_ALLOC);
     435           0 :                 NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, r->out.t));
     436           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_t_0, LIBNDR_FLAG_REF_ALLOC);
     437           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     438             :         }
     439           0 :         return NDR_ERR_SUCCESS;
     440             : }
     441             : 
     442           0 : _PUBLIC_ void ndr_print_rot_get_modification_time(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rot_get_modification_time *r)
     443             : {
     444           0 :         ndr_print_struct(ndr, name, "rot_get_modification_time");
     445           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     446           0 :         ndr->depth++;
     447           0 :         if (flags & NDR_SET_VALUES) {
     448           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     449             :         }
     450           0 :         if (flags & NDR_IN) {
     451           0 :                 ndr_print_struct(ndr, "in", "rot_get_modification_time");
     452           0 :                 ndr->depth++;
     453           0 :                 ndr_print_ptr(ndr, "moniker", r->in.moniker);
     454           0 :                 ndr->depth++;
     455           0 :                 ndr_print_MInterfacePointer(ndr, "moniker", r->in.moniker);
     456           0 :                 ndr->depth--;
     457           0 :                 ndr->depth--;
     458             :         }
     459           0 :         if (flags & NDR_OUT) {
     460           0 :                 ndr_print_struct(ndr, "out", "rot_get_modification_time");
     461           0 :                 ndr->depth++;
     462           0 :                 ndr_print_ptr(ndr, "t", r->out.t);
     463           0 :                 ndr->depth++;
     464           0 :                 ndr_print_NTTIME(ndr, "t", *r->out.t);
     465           0 :                 ndr->depth--;
     466           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     467           0 :                 ndr->depth--;
     468             :         }
     469           0 :         ndr->depth--;
     470             : }
     471             : 
     472           0 : static enum ndr_err_code ndr_push_rot_enum(struct ndr_push *ndr, ndr_flags_type flags, const struct rot_enum *r)
     473             : {
     474           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     475           0 :         if (flags & NDR_IN) {
     476           0 :         }
     477           0 :         if (flags & NDR_OUT) {
     478           0 :                 if (r->out.EnumMoniker == NULL) {
     479           0 :                         return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
     480             :                 }
     481           0 :                 NDR_CHECK(ndr_push_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.EnumMoniker));
     482           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     483             :         }
     484           0 :         return NDR_ERR_SUCCESS;
     485             : }
     486             : 
     487           0 : static enum ndr_err_code ndr_pull_rot_enum(struct ndr_pull *ndr, ndr_flags_type flags, struct rot_enum *r)
     488             : {
     489           0 :         TALLOC_CTX *_mem_save_EnumMoniker_0 = NULL;
     490           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     491           0 :         if (flags & NDR_IN) {
     492           0 :                 NDR_ZERO_STRUCT(r->out);
     493             : 
     494           0 :                 NDR_PULL_ALLOC(ndr, r->out.EnumMoniker);
     495           0 :                 NDR_ZERO_STRUCTP(r->out.EnumMoniker);
     496             :         }
     497           0 :         if (flags & NDR_OUT) {
     498             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     499             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     500           0 :                 if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
     501           0 :                         NDR_PULL_ALLOC(ndr, r->out.EnumMoniker);
     502             :                 }
     503           0 :                 _mem_save_EnumMoniker_0 = NDR_PULL_GET_MEM_CTX(ndr);
     504           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->out.EnumMoniker, LIBNDR_FLAG_REF_ALLOC);
     505           0 :                 NDR_CHECK(ndr_pull_MInterfacePointer(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.EnumMoniker));
     506           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_EnumMoniker_0, LIBNDR_FLAG_REF_ALLOC);
     507           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     508             :         }
     509           0 :         return NDR_ERR_SUCCESS;
     510             : }
     511             : 
     512           0 : _PUBLIC_ void ndr_print_rot_enum(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct rot_enum *r)
     513             : {
     514           0 :         ndr_print_struct(ndr, name, "rot_enum");
     515           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     516           0 :         ndr->depth++;
     517           0 :         if (flags & NDR_SET_VALUES) {
     518           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     519             :         }
     520           0 :         if (flags & NDR_IN) {
     521           0 :                 ndr_print_struct(ndr, "in", "rot_enum");
     522           0 :                 ndr->depth++;
     523           0 :                 ndr->depth--;
     524             :         }
     525           0 :         if (flags & NDR_OUT) {
     526           0 :                 ndr_print_struct(ndr, "out", "rot_enum");
     527           0 :                 ndr->depth++;
     528           0 :                 ndr_print_ptr(ndr, "EnumMoniker", r->out.EnumMoniker);
     529           0 :                 ndr->depth++;
     530           0 :                 ndr_print_MInterfacePointer(ndr, "EnumMoniker", r->out.EnumMoniker);
     531           0 :                 ndr->depth--;
     532           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     533           0 :                 ndr->depth--;
     534             :         }
     535           0 :         ndr->depth--;
     536             : }
     537             : 
     538             : #ifndef SKIP_NDR_TABLE_rot
     539             : static const struct ndr_interface_public_struct rot_public_structs[] = {
     540             :         { .name = NULL }
     541             : };
     542             : 
     543             : static const struct ndr_interface_call rot_calls[] = {
     544             :         {
     545             :                 "rot_add",
     546             :                 sizeof(struct rot_add),
     547             :                 (ndr_push_flags_fn_t) ndr_push_rot_add,
     548             :                 (ndr_pull_flags_fn_t) ndr_pull_rot_add,
     549             :                 (ndr_print_function_t) ndr_print_rot_add,
     550             :                 { 0, NULL },
     551             :                 { 0, NULL },
     552             :         },
     553             :         {
     554             :                 "rot_remove",
     555             :                 sizeof(struct rot_remove),
     556             :                 (ndr_push_flags_fn_t) ndr_push_rot_remove,
     557             :                 (ndr_pull_flags_fn_t) ndr_pull_rot_remove,
     558             :                 (ndr_print_function_t) ndr_print_rot_remove,
     559             :                 { 0, NULL },
     560             :                 { 0, NULL },
     561             :         },
     562             :         {
     563             :                 "rot_is_listed",
     564             :                 sizeof(struct rot_is_listed),
     565             :                 (ndr_push_flags_fn_t) ndr_push_rot_is_listed,
     566             :                 (ndr_pull_flags_fn_t) ndr_pull_rot_is_listed,
     567             :                 (ndr_print_function_t) ndr_print_rot_is_listed,
     568             :                 { 0, NULL },
     569             :                 { 0, NULL },
     570             :         },
     571             :         {
     572             :                 "rot_get_interface_pointer",
     573             :                 sizeof(struct rot_get_interface_pointer),
     574             :                 (ndr_push_flags_fn_t) ndr_push_rot_get_interface_pointer,
     575             :                 (ndr_pull_flags_fn_t) ndr_pull_rot_get_interface_pointer,
     576             :                 (ndr_print_function_t) ndr_print_rot_get_interface_pointer,
     577             :                 { 0, NULL },
     578             :                 { 0, NULL },
     579             :         },
     580             :         {
     581             :                 "rot_set_modification_time",
     582             :                 sizeof(struct rot_set_modification_time),
     583             :                 (ndr_push_flags_fn_t) ndr_push_rot_set_modification_time,
     584             :                 (ndr_pull_flags_fn_t) ndr_pull_rot_set_modification_time,
     585             :                 (ndr_print_function_t) ndr_print_rot_set_modification_time,
     586             :                 { 0, NULL },
     587             :                 { 0, NULL },
     588             :         },
     589             :         {
     590             :                 "rot_get_modification_time",
     591             :                 sizeof(struct rot_get_modification_time),
     592             :                 (ndr_push_flags_fn_t) ndr_push_rot_get_modification_time,
     593             :                 (ndr_pull_flags_fn_t) ndr_pull_rot_get_modification_time,
     594             :                 (ndr_print_function_t) ndr_print_rot_get_modification_time,
     595             :                 { 0, NULL },
     596             :                 { 0, NULL },
     597             :         },
     598             :         {
     599             :                 "rot_enum",
     600             :                 sizeof(struct rot_enum),
     601             :                 (ndr_push_flags_fn_t) ndr_push_rot_enum,
     602             :                 (ndr_pull_flags_fn_t) ndr_pull_rot_enum,
     603             :                 (ndr_print_function_t) ndr_print_rot_enum,
     604             :                 { 0, NULL },
     605             :                 { 0, NULL },
     606             :         },
     607             :         { .name = NULL }
     608             : };
     609             : 
     610             : static const char * const rot_endpoint_strings[] = {
     611             :         "ncacn_np:[\\pipe\\epmapper]", 
     612             :         "ncacn_ip_tcp:[135]", 
     613             :         "ncalrpc:[EPMAPPER]", 
     614             : };
     615             : 
     616             : static const struct ndr_interface_string_array rot_endpoints = {
     617             :         .count  = 3,
     618             :         .names  = rot_endpoint_strings
     619             : };
     620             : 
     621             : static const char * const rot_authservice_strings[] = {
     622             :         "host", 
     623             : };
     624             : 
     625             : static const struct ndr_interface_string_array rot_authservices = {
     626             :         .count  = 1,
     627             :         .names  = rot_authservice_strings
     628             : };
     629             : 
     630             : 
     631             : const struct ndr_interface_table ndr_table_rot = {
     632             :         .name           = "rot",
     633             :         .syntax_id      = {
     634             :                 {0xb9e79e60,0x3d52,0x11ce,{0xaa,0xa1},{0x00,0x00,0x69,0x01,0x29,0x3f}},
     635             :                 NDR_ROT_VERSION
     636             :         },
     637             :         .helpstring     = NDR_ROT_HELPSTRING,
     638             :         .num_calls      = 7,
     639             :         .calls          = rot_calls,
     640             :         .num_public_structs     = 0,
     641             :         .public_structs         = rot_public_structs,
     642             :         .endpoints      = &rot_endpoints,
     643             :         .authservices   = &rot_authservices
     644             : };
     645             : 
     646             : #endif /* SKIP_NDR_TABLE_rot */

Generated by: LCOV version 1.14