LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_server_id.c (source / functions) Hit Total Coverage
Test: coverage report for abartlet/fix-coverage dd10fb34 Lines: 31 34 91.2 %
Date: 2021-09-23 10:06:22 Functions: 3 4 75.0 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_server_id.h"
       5             : 
       6     1538077 : _PUBLIC_ enum ndr_err_code ndr_push_server_id(struct ndr_push *ndr, int ndr_flags, const struct server_id *r)
       7             : {
       8     1538077 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
       9     1538077 :         if (ndr_flags & NDR_SCALARS) {
      10     1538077 :                 NDR_CHECK(ndr_push_align(ndr, 8));
      11     1538077 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->pid));
      12     1538077 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->task_id));
      13     1538077 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->vnn));
      14     1538077 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->unique_id));
      15     1538077 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
      16             :         }
      17     1531673 :         if (ndr_flags & NDR_BUFFERS) {
      18             :         }
      19     1538077 :         return NDR_ERR_SUCCESS;
      20             : }
      21             : 
      22     1198581 : _PUBLIC_ enum ndr_err_code ndr_pull_server_id(struct ndr_pull *ndr, int ndr_flags, struct server_id *r)
      23             : {
      24     1198581 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      25     1198581 :         if (ndr_flags & NDR_SCALARS) {
      26     1198581 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
      27     1198581 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->pid));
      28     1198581 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->task_id));
      29     1198581 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->vnn));
      30     1198581 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->unique_id));
      31     1198581 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
      32             :         }
      33     1196990 :         if (ndr_flags & NDR_BUFFERS) {
      34             :         }
      35     1198581 :         return NDR_ERR_SUCCESS;
      36             : }
      37             : 
      38           0 : static void ndr_print_flags_server_id(struct ndr_print *ndr, const char *name, int unused, const struct server_id *r)
      39             : {
      40           0 :         ndr_print_server_id(ndr, name, r);
      41           0 : }
      42             : 
      43           2 : _PUBLIC_ void ndr_print_server_id(struct ndr_print *ndr, const char *name, const struct server_id *r)
      44             : {
      45           2 :         ndr_print_struct(ndr, name, "server_id");
      46           2 :         if (r == NULL) { ndr_print_null(ndr); return; }
      47           2 :         ndr->depth++;
      48           2 :         ndr_print_hyper(ndr, "pid", r->pid);
      49           2 :         ndr_print_uint32(ndr, "task_id", r->task_id);
      50           2 :         ndr_print_uint32(ndr, "vnn", r->vnn);
      51           2 :         ndr_print_hyper(ndr, "unique_id", r->unique_id);
      52           2 :         ndr->depth--;
      53             : }
      54             : 
      55             : #ifndef SKIP_NDR_TABLE_server_id
      56             : static const struct ndr_interface_public_struct server_id_public_structs[] = {
      57             :         {
      58             :                 .name = "server_id",
      59             :                 .struct_size = sizeof(struct server_id ),
      60             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_server_id,
      61             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_server_id,
      62             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_server_id,
      63             :         },
      64             :         { .name = NULL }
      65             : };
      66             : 
      67             : static const struct ndr_interface_call server_id_calls[] = {
      68             :         { .name = NULL }
      69             : };
      70             : 
      71             : static const char * const server_id_endpoint_strings[] = {
      72             :         "ncacn_np:[\\pipe\\server_id]", 
      73             : };
      74             : 
      75             : static const struct ndr_interface_string_array server_id_endpoints = {
      76             :         .count  = 1,
      77             :         .names  = server_id_endpoint_strings
      78             : };
      79             : 
      80             : static const char * const server_id_authservice_strings[] = {
      81             :         "host", 
      82             : };
      83             : 
      84             : static const struct ndr_interface_string_array server_id_authservices = {
      85             :         .count  = 1,
      86             :         .names  = server_id_authservice_strings
      87             : };
      88             : 
      89             : 
      90             : const struct ndr_interface_table ndr_table_server_id = {
      91             :         .name           = "server_id",
      92             :         .num_calls      = 0,
      93             :         .calls          = server_id_calls,
      94             :         .num_public_structs     = 1,
      95             :         .public_structs         = server_id_public_structs,
      96             :         .endpoints      = &server_id_endpoints,
      97             :         .authservices   = &server_id_authservices
      98             : };
      99             : 
     100             : #endif /* SKIP_NDR_TABLE_server_id */

Generated by: LCOV version 1.13