LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_w32time.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 0 90 0.0 %
Date: 2024-04-21 15:09:00 Functions: 0 9 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_w32time.h"
       5             : 
       6           0 : static enum ndr_err_code ndr_push_w32time_SyncTime(struct ndr_push *ndr, ndr_flags_type flags, const struct w32time_SyncTime *r)
       7             : {
       8           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
       9           0 :         if (flags & NDR_IN) {
      10           0 :         }
      11           0 :         if (flags & NDR_OUT) {
      12           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
      13             :         }
      14           0 :         return NDR_ERR_SUCCESS;
      15             : }
      16             : 
      17           0 : static enum ndr_err_code ndr_pull_w32time_SyncTime(struct ndr_pull *ndr, ndr_flags_type flags, struct w32time_SyncTime *r)
      18             : {
      19           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
      20           0 :         if (flags & NDR_IN) {
      21           0 :         }
      22           0 :         if (flags & NDR_OUT) {
      23             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
      24             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
      25           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
      26             :         }
      27           0 :         return NDR_ERR_SUCCESS;
      28             : }
      29             : 
      30           0 : _PUBLIC_ void ndr_print_w32time_SyncTime(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct w32time_SyncTime *r)
      31             : {
      32           0 :         ndr_print_struct(ndr, name, "w32time_SyncTime");
      33           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      34           0 :         ndr->depth++;
      35           0 :         if (flags & NDR_SET_VALUES) {
      36           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
      37             :         }
      38           0 :         if (flags & NDR_IN) {
      39           0 :                 ndr_print_struct(ndr, "in", "w32time_SyncTime");
      40           0 :                 ndr->depth++;
      41           0 :                 ndr->depth--;
      42             :         }
      43           0 :         if (flags & NDR_OUT) {
      44           0 :                 ndr_print_struct(ndr, "out", "w32time_SyncTime");
      45           0 :                 ndr->depth++;
      46           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
      47           0 :                 ndr->depth--;
      48             :         }
      49           0 :         ndr->depth--;
      50             : }
      51             : 
      52           0 : static enum ndr_err_code ndr_push_w32time_GetNetLogonServiceBits(struct ndr_push *ndr, ndr_flags_type flags, const struct w32time_GetNetLogonServiceBits *r)
      53             : {
      54           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
      55           0 :         if (flags & NDR_IN) {
      56           0 :         }
      57           0 :         if (flags & NDR_OUT) {
      58           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
      59             :         }
      60           0 :         return NDR_ERR_SUCCESS;
      61             : }
      62             : 
      63           0 : static enum ndr_err_code ndr_pull_w32time_GetNetLogonServiceBits(struct ndr_pull *ndr, ndr_flags_type flags, struct w32time_GetNetLogonServiceBits *r)
      64             : {
      65           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
      66           0 :         if (flags & NDR_IN) {
      67           0 :         }
      68           0 :         if (flags & NDR_OUT) {
      69             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
      70             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
      71           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
      72             :         }
      73           0 :         return NDR_ERR_SUCCESS;
      74             : }
      75             : 
      76           0 : _PUBLIC_ void ndr_print_w32time_GetNetLogonServiceBits(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct w32time_GetNetLogonServiceBits *r)
      77             : {
      78           0 :         ndr_print_struct(ndr, name, "w32time_GetNetLogonServiceBits");
      79           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      80           0 :         ndr->depth++;
      81           0 :         if (flags & NDR_SET_VALUES) {
      82           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
      83             :         }
      84           0 :         if (flags & NDR_IN) {
      85           0 :                 ndr_print_struct(ndr, "in", "w32time_GetNetLogonServiceBits");
      86           0 :                 ndr->depth++;
      87           0 :                 ndr->depth--;
      88             :         }
      89           0 :         if (flags & NDR_OUT) {
      90           0 :                 ndr_print_struct(ndr, "out", "w32time_GetNetLogonServiceBits");
      91           0 :                 ndr->depth++;
      92           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
      93           0 :                 ndr->depth--;
      94             :         }
      95           0 :         ndr->depth--;
      96             : }
      97             : 
      98           0 : static enum ndr_err_code ndr_push_w32time_QueryProviderStatus(struct ndr_push *ndr, ndr_flags_type flags, const struct w32time_QueryProviderStatus *r)
      99             : {
     100           0 :         NDR_PUSH_CHECK_FN_FLAGS(ndr, flags);
     101           0 :         if (flags & NDR_IN) {
     102           0 :         }
     103           0 :         if (flags & NDR_OUT) {
     104           0 :                 NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
     105             :         }
     106           0 :         return NDR_ERR_SUCCESS;
     107             : }
     108             : 
     109           0 : static enum ndr_err_code ndr_pull_w32time_QueryProviderStatus(struct ndr_pull *ndr, ndr_flags_type flags, struct w32time_QueryProviderStatus *r)
     110             : {
     111           0 :         NDR_PULL_CHECK_FN_FLAGS(ndr, flags);
     112           0 :         if (flags & NDR_IN) {
     113           0 :         }
     114           0 :         if (flags & NDR_OUT) {
     115             : #ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
     116             : #endif /* FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION */
     117           0 :                 NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
     118             :         }
     119           0 :         return NDR_ERR_SUCCESS;
     120             : }
     121             : 
     122           0 : _PUBLIC_ void ndr_print_w32time_QueryProviderStatus(struct ndr_print *ndr, const char *name, ndr_flags_type flags, const struct w32time_QueryProviderStatus *r)
     123             : {
     124           0 :         ndr_print_struct(ndr, name, "w32time_QueryProviderStatus");
     125           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     126           0 :         ndr->depth++;
     127           0 :         if (flags & NDR_SET_VALUES) {
     128           0 :                 ndr->flags |= LIBNDR_PRINT_SET_VALUES;
     129             :         }
     130           0 :         if (flags & NDR_IN) {
     131           0 :                 ndr_print_struct(ndr, "in", "w32time_QueryProviderStatus");
     132           0 :                 ndr->depth++;
     133           0 :                 ndr->depth--;
     134             :         }
     135           0 :         if (flags & NDR_OUT) {
     136           0 :                 ndr_print_struct(ndr, "out", "w32time_QueryProviderStatus");
     137           0 :                 ndr->depth++;
     138           0 :                 ndr_print_WERROR(ndr, "result", r->out.result);
     139           0 :                 ndr->depth--;
     140             :         }
     141           0 :         ndr->depth--;
     142             : }
     143             : 
     144             : #ifndef SKIP_NDR_TABLE_w32time
     145             : static const struct ndr_interface_public_struct w32time_public_structs[] = {
     146             :         { .name = NULL }
     147             : };
     148             : 
     149             : static const struct ndr_interface_call w32time_calls[] = {
     150             :         {
     151             :                 "w32time_SyncTime",
     152             :                 sizeof(struct w32time_SyncTime),
     153             :                 (ndr_push_flags_fn_t) ndr_push_w32time_SyncTime,
     154             :                 (ndr_pull_flags_fn_t) ndr_pull_w32time_SyncTime,
     155             :                 (ndr_print_function_t) ndr_print_w32time_SyncTime,
     156             :                 { 0, NULL },
     157             :                 { 0, NULL },
     158             :         },
     159             :         {
     160             :                 "w32time_GetNetLogonServiceBits",
     161             :                 sizeof(struct w32time_GetNetLogonServiceBits),
     162             :                 (ndr_push_flags_fn_t) ndr_push_w32time_GetNetLogonServiceBits,
     163             :                 (ndr_pull_flags_fn_t) ndr_pull_w32time_GetNetLogonServiceBits,
     164             :                 (ndr_print_function_t) ndr_print_w32time_GetNetLogonServiceBits,
     165             :                 { 0, NULL },
     166             :                 { 0, NULL },
     167             :         },
     168             :         {
     169             :                 "w32time_QueryProviderStatus",
     170             :                 sizeof(struct w32time_QueryProviderStatus),
     171             :                 (ndr_push_flags_fn_t) ndr_push_w32time_QueryProviderStatus,
     172             :                 (ndr_pull_flags_fn_t) ndr_pull_w32time_QueryProviderStatus,
     173             :                 (ndr_print_function_t) ndr_print_w32time_QueryProviderStatus,
     174             :                 { 0, NULL },
     175             :                 { 0, NULL },
     176             :         },
     177             :         { .name = NULL }
     178             : };
     179             : 
     180             : static const char * const w32time_endpoint_strings[] = {
     181             :         "ncacn_np:[\\pipe\\srvsvc]", 
     182             :         "ncacn_np:[\\pipe\\atsvc]", 
     183             :         "ncacn_np:[\\pipe\\browser]", 
     184             :         "ncacn_np:[\\pipe\\keysvc]", 
     185             :         "ncacn_np:[\\pipe\\wkssvc]", 
     186             : };
     187             : 
     188             : static const struct ndr_interface_string_array w32time_endpoints = {
     189             :         .count  = 5,
     190             :         .names  = w32time_endpoint_strings
     191             : };
     192             : 
     193             : static const char * const w32time_authservice_strings[] = {
     194             :         "host", 
     195             : };
     196             : 
     197             : static const struct ndr_interface_string_array w32time_authservices = {
     198             :         .count  = 1,
     199             :         .names  = w32time_authservice_strings
     200             : };
     201             : 
     202             : 
     203             : const struct ndr_interface_table ndr_table_w32time = {
     204             :         .name           = "w32time",
     205             :         .syntax_id      = {
     206             :                 {0x8fb6d884,0x2388,0x11d0,{0x8c,0x35},{0x00,0xc0,0x4f,0xda,0x27,0x95}},
     207             :                 NDR_W32TIME_VERSION
     208             :         },
     209             :         .helpstring     = NDR_W32TIME_HELPSTRING,
     210             :         .num_calls      = 3,
     211             :         .calls          = w32time_calls,
     212             :         .num_public_structs     = 0,
     213             :         .public_structs         = w32time_public_structs,
     214             :         .endpoints      = &w32time_endpoints,
     215             :         .authservices   = &w32time_authservices
     216             : };
     217             : 
     218             : #endif /* SKIP_NDR_TABLE_w32time */

Generated by: LCOV version 1.14