LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_fscc.c (source / functions) Hit Total Coverage
Test: coverage report for abartlet/fix-coverage dd10fb34 Lines: 0 114 0.0 %
Date: 2021-09-23 10:06:22 Functions: 0 13 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_fscc.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_misc.h"
       7           0 : _PUBLIC_ enum ndr_err_code ndr_push_fscc_FileObjectIdBuffer_2(struct ndr_push *ndr, int ndr_flags, const struct fscc_FileObjectIdBuffer_2 *r)
       8             : {
       9           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      10           0 :         if (ndr_flags & NDR_SCALARS) {
      11           0 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      12           0 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->id));
      13           0 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->birthVolumeId));
      14           0 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->initialObjectId));
      15           0 :                 NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->domainId));
      16           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      17             :         }
      18           0 :         if (ndr_flags & NDR_BUFFERS) {
      19             :         }
      20           0 :         return NDR_ERR_SUCCESS;
      21             : }
      22             : 
      23           0 : _PUBLIC_ enum ndr_err_code ndr_pull_fscc_FileObjectIdBuffer_2(struct ndr_pull *ndr, int ndr_flags, struct fscc_FileObjectIdBuffer_2 *r)
      24             : {
      25           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      26           0 :         if (ndr_flags & NDR_SCALARS) {
      27           0 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      28           0 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->id));
      29           0 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->birthVolumeId));
      30           0 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->initialObjectId));
      31           0 :                 NDR_CHECK(ndr_pull_GUID(ndr, NDR_SCALARS, &r->domainId));
      32           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      33             :         }
      34           0 :         if (ndr_flags & NDR_BUFFERS) {
      35             :         }
      36           0 :         return NDR_ERR_SUCCESS;
      37             : }
      38             : 
      39           0 : static void ndr_print_flags_fscc_FileObjectIdBuffer_2(struct ndr_print *ndr, const char *name, int unused, const struct fscc_FileObjectIdBuffer_2 *r)
      40             : {
      41           0 :         ndr_print_fscc_FileObjectIdBuffer_2(ndr, name, r);
      42           0 : }
      43             : 
      44           0 : _PUBLIC_ void ndr_print_fscc_FileObjectIdBuffer_2(struct ndr_print *ndr, const char *name, const struct fscc_FileObjectIdBuffer_2 *r)
      45             : {
      46           0 :         ndr_print_struct(ndr, name, "fscc_FileObjectIdBuffer_2");
      47           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      48           0 :         ndr->depth++;
      49           0 :         ndr_print_GUID(ndr, "id", &r->id);
      50           0 :         ndr_print_GUID(ndr, "birthVolumeId", &r->birthVolumeId);
      51           0 :         ndr_print_GUID(ndr, "initialObjectId", &r->initialObjectId);
      52           0 :         ndr_print_GUID(ndr, "domainId", &r->domainId);
      53           0 :         ndr->depth--;
      54             : }
      55             : 
      56           0 : static enum ndr_err_code ndr_push_fscc_FileAttributes(struct ndr_push *ndr, int ndr_flags, uint32_t r)
      57             : {
      58             :         {
      59           0 :                 uint32_t _flags_save_BITMAP = ndr->flags;
      60           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
      61           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r));
      62           0 :                 ndr->flags = _flags_save_BITMAP;
      63             :         }
      64           0 :         return NDR_ERR_SUCCESS;
      65             : }
      66             : 
      67           0 : static enum ndr_err_code ndr_pull_fscc_FileAttributes(struct ndr_pull *ndr, int ndr_flags, uint32_t *r)
      68             : {
      69             :         uint32_t v;
      70             :         {
      71           0 :                 uint32_t _flags_save_BITMAP = ndr->flags;
      72           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
      73           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v));
      74           0 :                 *r = v;
      75           0 :                 ndr->flags = _flags_save_BITMAP;
      76             :         }
      77           0 :         return NDR_ERR_SUCCESS;
      78             : }
      79             : 
      80           0 : _PUBLIC_ void ndr_print_fscc_FileAttributes(struct ndr_print *ndr, const char *name, uint32_t r)
      81             : {
      82             :         {
      83           0 :                 uint32_t _flags_save_BITMAP = ndr->flags;
      84           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_PRINT_ARRAY_HEX);
      85           0 :                 ndr_print_uint32(ndr, name, r);
      86           0 :                 ndr->depth++;
      87           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_READONLY", FSCC_FILE_ATTRIBUTE_READONLY, r);
      88           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_HIDDEN", FSCC_FILE_ATTRIBUTE_HIDDEN, r);
      89           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_SYSTEM", FSCC_FILE_ATTRIBUTE_SYSTEM, r);
      90           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_NORMAL", FSCC_FILE_ATTRIBUTE_NORMAL, r);
      91           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_DIRECTORY", FSCC_FILE_ATTRIBUTE_DIRECTORY, r);
      92           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_ARCHIVE", FSCC_FILE_ATTRIBUTE_ARCHIVE, r);
      93           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_TEMPORARY", FSCC_FILE_ATTRIBUTE_TEMPORARY, r);
      94           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_SPARSE_FILE", FSCC_FILE_ATTRIBUTE_SPARSE_FILE, r);
      95           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_REPARSE_POINT", FSCC_FILE_ATTRIBUTE_REPARSE_POINT, r);
      96           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_COMPRESSED", FSCC_FILE_ATTRIBUTE_COMPRESSED, r);
      97           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_OFFLINE", FSCC_FILE_ATTRIBUTE_OFFLINE, r);
      98           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_NOT_CONTENT_INDEXED", FSCC_FILE_ATTRIBUTE_NOT_CONTENT_INDEXED, r);
      99           0 :                 ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "FSCC_FILE_ATTRIBUTE_ENCRYPTED", FSCC_FILE_ATTRIBUTE_ENCRYPTED, r);
     100           0 :                 ndr->depth--;
     101           0 :                 ndr->flags = _flags_save_BITMAP;
     102             :         }
     103           0 : }
     104             : 
     105           0 : _PUBLIC_ enum ndr_err_code ndr_push_fscc_FileNetworkOpenInformation(struct ndr_push *ndr, int ndr_flags, const struct fscc_FileNetworkOpenInformation *r)
     106             : {
     107           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     108           0 :         if (ndr_flags & NDR_SCALARS) {
     109           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     110           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->creationTime));
     111           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->lastAccessTime));
     112           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->lastWriteTime));
     113           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->changeTime));
     114           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->allocSize));
     115           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->endOfFile));
     116           0 :                 NDR_CHECK(ndr_push_fscc_FileAttributes(ndr, NDR_SCALARS, r->fileAttribute));
     117           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->reserved));
     118           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     119             :         }
     120           0 :         if (ndr_flags & NDR_BUFFERS) {
     121             :         }
     122           0 :         return NDR_ERR_SUCCESS;
     123             : }
     124             : 
     125           0 : _PUBLIC_ enum ndr_err_code ndr_pull_fscc_FileNetworkOpenInformation(struct ndr_pull *ndr, int ndr_flags, struct fscc_FileNetworkOpenInformation *r)
     126             : {
     127           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     128           0 :         if (ndr_flags & NDR_SCALARS) {
     129           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     130           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->creationTime));
     131           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->lastAccessTime));
     132           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->lastWriteTime));
     133           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->changeTime));
     134           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->allocSize));
     135           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->endOfFile));
     136           0 :                 NDR_CHECK(ndr_pull_fscc_FileAttributes(ndr, NDR_SCALARS, &r->fileAttribute));
     137           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->reserved));
     138           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     139             :         }
     140           0 :         if (ndr_flags & NDR_BUFFERS) {
     141             :         }
     142           0 :         return NDR_ERR_SUCCESS;
     143             : }
     144             : 
     145           0 : static void ndr_print_flags_fscc_FileNetworkOpenInformation(struct ndr_print *ndr, const char *name, int unused, const struct fscc_FileNetworkOpenInformation *r)
     146             : {
     147           0 :         ndr_print_fscc_FileNetworkOpenInformation(ndr, name, r);
     148           0 : }
     149             : 
     150           0 : _PUBLIC_ void ndr_print_fscc_FileNetworkOpenInformation(struct ndr_print *ndr, const char *name, const struct fscc_FileNetworkOpenInformation *r)
     151             : {
     152           0 :         ndr_print_struct(ndr, name, "fscc_FileNetworkOpenInformation");
     153           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     154           0 :         ndr->depth++;
     155           0 :         ndr_print_hyper(ndr, "creationTime", r->creationTime);
     156           0 :         ndr_print_hyper(ndr, "lastAccessTime", r->lastAccessTime);
     157           0 :         ndr_print_hyper(ndr, "lastWriteTime", r->lastWriteTime);
     158           0 :         ndr_print_hyper(ndr, "changeTime", r->changeTime);
     159           0 :         ndr_print_hyper(ndr, "allocSize", r->allocSize);
     160           0 :         ndr_print_hyper(ndr, "endOfFile", r->endOfFile);
     161           0 :         ndr_print_fscc_FileAttributes(ndr, "fileAttribute", r->fileAttribute);
     162           0 :         ndr_print_uint32(ndr, "reserved", r->reserved);
     163           0 :         ndr->depth--;
     164             : }
     165             : 
     166             : #ifndef SKIP_NDR_TABLE_fscc
     167             : static const struct ndr_interface_public_struct fscc_public_structs[] = {
     168             :         {
     169             :                 .name = "fscc_FileObjectIdBuffer_2",
     170             :                 .struct_size = sizeof(struct fscc_FileObjectIdBuffer_2 ),
     171             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fscc_FileObjectIdBuffer_2,
     172             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fscc_FileObjectIdBuffer_2,
     173             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fscc_FileObjectIdBuffer_2,
     174             :         },
     175             :         {
     176             :                 .name = "fscc_FileNetworkOpenInformation",
     177             :                 .struct_size = sizeof(struct fscc_FileNetworkOpenInformation ),
     178             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fscc_FileNetworkOpenInformation,
     179             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fscc_FileNetworkOpenInformation,
     180             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fscc_FileNetworkOpenInformation,
     181             :         },
     182             :         { .name = NULL }
     183             : };
     184             : 
     185             : static const struct ndr_interface_call fscc_calls[] = {
     186             :         { .name = NULL }
     187             : };
     188             : 
     189             : static const char * const fscc_endpoint_strings[] = {
     190             :         "ncacn_np:[\\pipe\\fscc]", 
     191             : };
     192             : 
     193             : static const struct ndr_interface_string_array fscc_endpoints = {
     194             :         .count  = 1,
     195             :         .names  = fscc_endpoint_strings
     196             : };
     197             : 
     198             : static const char * const fscc_authservice_strings[] = {
     199             :         "host", 
     200             : };
     201             : 
     202             : static const struct ndr_interface_string_array fscc_authservices = {
     203             :         .count  = 1,
     204             :         .names  = fscc_authservice_strings
     205             : };
     206             : 
     207             : 
     208             : const struct ndr_interface_table ndr_table_fscc = {
     209             :         .name           = "fscc",
     210             :         .num_calls      = 0,
     211             :         .calls          = fscc_calls,
     212             :         .num_public_structs     = 2,
     213             :         .public_structs         = fscc_public_structs,
     214             :         .endpoints      = &fscc_endpoints,
     215             :         .authservices   = &fscc_authservices
     216             : };
     217             : 
     218             : #endif /* SKIP_NDR_TABLE_fscc */

Generated by: LCOV version 1.13