LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_file_id.c (source / functions) Hit Total Coverage
Test: coverage report for master 2b515b7d Lines: 30 33 90.9 %
Date: 2024-02-28 12: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_file_id.h"
       5             : 
       6      674188 : _PUBLIC_ enum ndr_err_code ndr_push_file_id(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct file_id *r)
       7             : {
       8      674188 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
       9      674188 :         if (ndr_flags & NDR_SCALARS) {
      10      674188 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      11      674188 :                 NDR_CHECK(ndr_push_udlong(ndr, NDR_SCALARS, r->devid));
      12      674188 :                 NDR_CHECK(ndr_push_udlong(ndr, NDR_SCALARS, r->inode));
      13      674188 :                 NDR_CHECK(ndr_push_udlong(ndr, NDR_SCALARS, r->extid));
      14      674188 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      15             :         }
      16      674188 :         if (ndr_flags & NDR_BUFFERS) {
      17        1526 :         }
      18      674188 :         return NDR_ERR_SUCCESS;
      19             : }
      20             : 
      21      310140 : _PUBLIC_ enum ndr_err_code ndr_pull_file_id(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct file_id *r)
      22             : {
      23      310140 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      24      310140 :         if (ndr_flags & NDR_SCALARS) {
      25      310140 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      26      310140 :                 NDR_CHECK(ndr_pull_udlong(ndr, NDR_SCALARS, &r->devid));
      27      310140 :                 NDR_CHECK(ndr_pull_udlong(ndr, NDR_SCALARS, &r->inode));
      28      310140 :                 NDR_CHECK(ndr_pull_udlong(ndr, NDR_SCALARS, &r->extid));
      29      310140 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      30             :         }
      31      310140 :         if (ndr_flags & NDR_BUFFERS) {
      32        1225 :         }
      33      310140 :         return NDR_ERR_SUCCESS;
      34             : }
      35             : 
      36           0 : static void ndr_print_flags_file_id(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct file_id *r)
      37             : {
      38           0 :         ndr_print_file_id(ndr, name, r);
      39           0 : }
      40             : 
      41           6 : _PUBLIC_ void ndr_print_file_id(struct ndr_print *ndr, const char *name, const struct file_id *r)
      42             : {
      43           6 :         ndr_print_struct(ndr, name, "file_id");
      44           6 :         if (r == NULL) { ndr_print_null(ndr); return; }
      45           6 :         ndr->depth++;
      46           6 :         ndr_print_udlong(ndr, "devid", r->devid);
      47           6 :         ndr_print_udlong(ndr, "inode", r->inode);
      48           6 :         ndr_print_udlong(ndr, "extid", r->extid);
      49           6 :         ndr->depth--;
      50             : }
      51             : 
      52             : #ifndef SKIP_NDR_TABLE_file_id
      53             : static const struct ndr_interface_public_struct file_id_public_structs[] = {
      54             :         {
      55             :                 .name = "file_id",
      56             :                 .struct_size = sizeof(struct file_id ),
      57             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_file_id,
      58             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_file_id,
      59             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_file_id,
      60             :         },
      61             :         { .name = NULL }
      62             : };
      63             : 
      64             : static const struct ndr_interface_call file_id_calls[] = {
      65             :         { .name = NULL }
      66             : };
      67             : 
      68             : static const char * const file_id_endpoint_strings[] = {
      69             :         "ncacn_np:[\\pipe\\file_id]", 
      70             : };
      71             : 
      72             : static const struct ndr_interface_string_array file_id_endpoints = {
      73             :         .count  = 1,
      74             :         .names  = file_id_endpoint_strings
      75             : };
      76             : 
      77             : static const char * const file_id_authservice_strings[] = {
      78             :         "host", 
      79             : };
      80             : 
      81             : static const struct ndr_interface_string_array file_id_authservices = {
      82             :         .count  = 1,
      83             :         .names  = file_id_authservice_strings
      84             : };
      85             : 
      86             : 
      87             : const struct ndr_interface_table ndr_table_file_id = {
      88             :         .name           = "file_id",
      89             :         .num_calls      = 0,
      90             :         .calls          = file_id_calls,
      91             :         .num_public_structs     = 1,
      92             :         .public_structs         = file_id_public_structs,
      93             :         .endpoints      = &file_id_endpoints,
      94             :         .authservices   = &file_id_authservices
      95             : };
      96             : 
      97             : #endif /* SKIP_NDR_TABLE_file_id */

Generated by: LCOV version 1.14