LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_fsrvp_state.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 116 174 66.7 %
Date: 2024-04-21 15:09:00 Functions: 6 12 50.0 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_fsrvp_state.h"
       5             : 
       6          94 : _PUBLIC_ enum ndr_err_code ndr_push_fsrvp_state_smap(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsrvp_state_smap *r)
       7             : {
       8          94 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
       9          94 :         if (ndr_flags & NDR_SCALARS) {
      10          94 :                 NDR_CHECK(ndr_push_align(ndr, 4));
      11             :                 {
      12          94 :                         libndr_flags _flags_save_string = ndr->flags;
      13          94 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      14          94 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->share_name));
      15          94 :                         ndr->flags = _flags_save_string;
      16             :                 }
      17             :                 {
      18          94 :                         libndr_flags _flags_save_string = ndr->flags;
      19          94 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      20          94 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sc_share_name));
      21          94 :                         ndr->flags = _flags_save_string;
      22             :                 }
      23             :                 {
      24          94 :                         libndr_flags _flags_save_string = ndr->flags;
      25          94 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      26          94 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sc_share_comment));
      27          94 :                         ndr->flags = _flags_save_string;
      28             :                 }
      29          94 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->is_exposed));
      30          94 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
      31             :         }
      32          94 :         if (ndr_flags & NDR_BUFFERS) {
      33           4 :         }
      34          94 :         return NDR_ERR_SUCCESS;
      35             : }
      36             : 
      37           4 : _PUBLIC_ enum ndr_err_code ndr_pull_fsrvp_state_smap(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsrvp_state_smap *r)
      38             : {
      39           4 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      40           4 :         if (ndr_flags & NDR_SCALARS) {
      41           4 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
      42             :                 {
      43           4 :                         libndr_flags _flags_save_string = ndr->flags;
      44           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      45           4 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->share_name));
      46           4 :                         ndr->flags = _flags_save_string;
      47             :                 }
      48             :                 {
      49           4 :                         libndr_flags _flags_save_string = ndr->flags;
      50           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      51           4 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sc_share_name));
      52           4 :                         ndr->flags = _flags_save_string;
      53             :                 }
      54             :                 {
      55           4 :                         libndr_flags _flags_save_string = ndr->flags;
      56           4 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      57           4 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sc_share_comment));
      58           4 :                         ndr->flags = _flags_save_string;
      59             :                 }
      60           4 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->is_exposed));
      61           4 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
      62             :         }
      63           4 :         if (ndr_flags & NDR_BUFFERS) {
      64           4 :         }
      65           4 :         return NDR_ERR_SUCCESS;
      66             : }
      67             : 
      68           0 : static void ndr_print_flags_fsrvp_state_smap(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct fsrvp_state_smap *r)
      69             : {
      70           0 :         ndr_print_fsrvp_state_smap(ndr, name, r);
      71           0 : }
      72             : 
      73           0 : _PUBLIC_ void ndr_print_fsrvp_state_smap(struct ndr_print *ndr, const char *name, const struct fsrvp_state_smap *r)
      74             : {
      75           0 :         ndr_print_struct(ndr, name, "fsrvp_state_smap");
      76           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      77           0 :         ndr->depth++;
      78             :         {
      79           0 :                 libndr_flags _flags_save_string = ndr->flags;
      80           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      81           0 :                 ndr_print_string(ndr, "share_name", r->share_name);
      82           0 :                 ndr->flags = _flags_save_string;
      83             :         }
      84             :         {
      85           0 :                 libndr_flags _flags_save_string = ndr->flags;
      86           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      87           0 :                 ndr_print_string(ndr, "sc_share_name", r->sc_share_name);
      88           0 :                 ndr->flags = _flags_save_string;
      89             :         }
      90             :         {
      91           0 :                 libndr_flags _flags_save_string = ndr->flags;
      92           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      93           0 :                 ndr_print_string(ndr, "sc_share_comment", r->sc_share_comment);
      94           0 :                 ndr->flags = _flags_save_string;
      95             :         }
      96           0 :         ndr_print_uint32(ndr, "is_exposed", r->is_exposed);
      97           0 :         ndr->depth--;
      98             : }
      99             : 
     100          93 : _PUBLIC_ enum ndr_err_code ndr_push_fsrvp_state_sc(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsrvp_state_sc *r)
     101             : {
     102          93 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     103          93 :         if (ndr_flags & NDR_SCALARS) {
     104          93 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     105             :                 {
     106          93 :                         libndr_flags _flags_save_string = ndr->flags;
     107          93 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     108          93 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->id_str));
     109          93 :                         ndr->flags = _flags_save_string;
     110             :                 }
     111             :                 {
     112          93 :                         libndr_flags _flags_save_string = ndr->flags;
     113          93 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     114          93 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->volume_name));
     115          93 :                         ndr->flags = _flags_save_string;
     116             :                 }
     117             :                 {
     118          93 :                         libndr_flags _flags_save_string = ndr->flags;
     119          93 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     120          93 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->sc_path));
     121          93 :                         ndr->flags = _flags_save_string;
     122             :                 }
     123          93 :                 NDR_CHECK(ndr_push_time_t(ndr, NDR_SCALARS, r->create_ts));
     124          93 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->smaps_count));
     125          93 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     126             :         }
     127          93 :         if (ndr_flags & NDR_BUFFERS) {
     128           3 :         }
     129          93 :         return NDR_ERR_SUCCESS;
     130             : }
     131             : 
     132           3 : _PUBLIC_ enum ndr_err_code ndr_pull_fsrvp_state_sc(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsrvp_state_sc *r)
     133             : {
     134           3 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     135           3 :         if (ndr_flags & NDR_SCALARS) {
     136           3 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     137             :                 {
     138           3 :                         libndr_flags _flags_save_string = ndr->flags;
     139           3 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     140           3 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->id_str));
     141           3 :                         ndr->flags = _flags_save_string;
     142             :                 }
     143             :                 {
     144           3 :                         libndr_flags _flags_save_string = ndr->flags;
     145           3 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     146           3 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->volume_name));
     147           3 :                         ndr->flags = _flags_save_string;
     148             :                 }
     149             :                 {
     150           3 :                         libndr_flags _flags_save_string = ndr->flags;
     151           3 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     152           3 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->sc_path));
     153           3 :                         ndr->flags = _flags_save_string;
     154             :                 }
     155           3 :                 NDR_CHECK(ndr_pull_time_t(ndr, NDR_SCALARS, &r->create_ts));
     156           3 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->smaps_count));
     157           3 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     158             :         }
     159           3 :         if (ndr_flags & NDR_BUFFERS) {
     160           3 :         }
     161           3 :         return NDR_ERR_SUCCESS;
     162             : }
     163             : 
     164           0 : static void ndr_print_flags_fsrvp_state_sc(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct fsrvp_state_sc *r)
     165             : {
     166           0 :         ndr_print_fsrvp_state_sc(ndr, name, r);
     167           0 : }
     168             : 
     169           0 : _PUBLIC_ void ndr_print_fsrvp_state_sc(struct ndr_print *ndr, const char *name, const struct fsrvp_state_sc *r)
     170             : {
     171           0 :         ndr_print_struct(ndr, name, "fsrvp_state_sc");
     172           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     173           0 :         ndr->depth++;
     174             :         {
     175           0 :                 libndr_flags _flags_save_string = ndr->flags;
     176           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     177           0 :                 ndr_print_string(ndr, "id_str", r->id_str);
     178           0 :                 ndr->flags = _flags_save_string;
     179             :         }
     180             :         {
     181           0 :                 libndr_flags _flags_save_string = ndr->flags;
     182           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     183           0 :                 ndr_print_string(ndr, "volume_name", r->volume_name);
     184           0 :                 ndr->flags = _flags_save_string;
     185             :         }
     186             :         {
     187           0 :                 libndr_flags _flags_save_string = ndr->flags;
     188           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     189           0 :                 ndr_print_string(ndr, "sc_path", r->sc_path);
     190           0 :                 ndr->flags = _flags_save_string;
     191             :         }
     192           0 :         ndr_print_time_t(ndr, "create_ts", r->create_ts);
     193           0 :         ndr_print_int32(ndr, "smaps_count", r->smaps_count);
     194           0 :         ndr->depth--;
     195             : }
     196             : 
     197          93 : _PUBLIC_ enum ndr_err_code ndr_push_fsrvp_state_sc_set(struct ndr_push *ndr, ndr_flags_type ndr_flags, const struct fsrvp_state_sc_set *r)
     198             : {
     199          93 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     200          93 :         if (ndr_flags & NDR_SCALARS) {
     201          93 :                 NDR_CHECK(ndr_push_align(ndr, 4));
     202             :                 {
     203          93 :                         libndr_flags _flags_save_string = ndr->flags;
     204          93 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     205          93 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->id_str));
     206          93 :                         ndr->flags = _flags_save_string;
     207             :                 }
     208          93 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->state));
     209          93 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->context));
     210          93 :                 NDR_CHECK(ndr_push_int32(ndr, NDR_SCALARS, r->scs_count));
     211          93 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     212             :         }
     213          93 :         if (ndr_flags & NDR_BUFFERS) {
     214           3 :         }
     215          93 :         return NDR_ERR_SUCCESS;
     216             : }
     217             : 
     218           3 : _PUBLIC_ enum ndr_err_code ndr_pull_fsrvp_state_sc_set(struct ndr_pull *ndr, ndr_flags_type ndr_flags, struct fsrvp_state_sc_set *r)
     219             : {
     220           3 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     221           3 :         if (ndr_flags & NDR_SCALARS) {
     222           3 :                 NDR_CHECK(ndr_pull_align(ndr, 4));
     223             :                 {
     224           3 :                         libndr_flags _flags_save_string = ndr->flags;
     225           3 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     226           3 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->id_str));
     227           3 :                         ndr->flags = _flags_save_string;
     228             :                 }
     229           3 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->state));
     230           3 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->context));
     231           3 :                 NDR_CHECK(ndr_pull_int32(ndr, NDR_SCALARS, &r->scs_count));
     232           3 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     233             :         }
     234           3 :         if (ndr_flags & NDR_BUFFERS) {
     235           3 :         }
     236           3 :         return NDR_ERR_SUCCESS;
     237             : }
     238             : 
     239           0 : static void ndr_print_flags_fsrvp_state_sc_set(struct ndr_print *ndr, const char *name, ndr_flags_type unused, const struct fsrvp_state_sc_set *r)
     240             : {
     241           0 :         ndr_print_fsrvp_state_sc_set(ndr, name, r);
     242           0 : }
     243             : 
     244           0 : _PUBLIC_ void ndr_print_fsrvp_state_sc_set(struct ndr_print *ndr, const char *name, const struct fsrvp_state_sc_set *r)
     245             : {
     246           0 :         ndr_print_struct(ndr, name, "fsrvp_state_sc_set");
     247           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     248           0 :         ndr->depth++;
     249             :         {
     250           0 :                 libndr_flags _flags_save_string = ndr->flags;
     251           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     252           0 :                 ndr_print_string(ndr, "id_str", r->id_str);
     253           0 :                 ndr->flags = _flags_save_string;
     254             :         }
     255           0 :         ndr_print_int32(ndr, "state", r->state);
     256           0 :         ndr_print_int32(ndr, "context", r->context);
     257           0 :         ndr_print_int32(ndr, "scs_count", r->scs_count);
     258           0 :         ndr->depth--;
     259             : }
     260             : 
     261             : #ifndef SKIP_NDR_TABLE_fsrvp_state
     262             : static const struct ndr_interface_public_struct fsrvp_state_public_structs[] = {
     263             :         {
     264             :                 .name = "fsrvp_state_smap",
     265             :                 .struct_size = sizeof(struct fsrvp_state_smap ),
     266             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsrvp_state_smap,
     267             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsrvp_state_smap,
     268             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsrvp_state_smap,
     269             :         },
     270             :         {
     271             :                 .name = "fsrvp_state_sc",
     272             :                 .struct_size = sizeof(struct fsrvp_state_sc ),
     273             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsrvp_state_sc,
     274             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsrvp_state_sc,
     275             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsrvp_state_sc,
     276             :         },
     277             :         {
     278             :                 .name = "fsrvp_state_sc_set",
     279             :                 .struct_size = sizeof(struct fsrvp_state_sc_set ),
     280             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_fsrvp_state_sc_set,
     281             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_fsrvp_state_sc_set,
     282             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_fsrvp_state_sc_set,
     283             :         },
     284             :         { .name = NULL }
     285             : };
     286             : 
     287             : static const struct ndr_interface_call fsrvp_state_calls[] = {
     288             :         { .name = NULL }
     289             : };
     290             : 
     291             : static const char * const fsrvp_state_endpoint_strings[] = {
     292             :         "ncacn_np:[\\pipe\\fsrvp_state]", 
     293             : };
     294             : 
     295             : static const struct ndr_interface_string_array fsrvp_state_endpoints = {
     296             :         .count  = 1,
     297             :         .names  = fsrvp_state_endpoint_strings
     298             : };
     299             : 
     300             : static const char * const fsrvp_state_authservice_strings[] = {
     301             :         "host", 
     302             : };
     303             : 
     304             : static const struct ndr_interface_string_array fsrvp_state_authservices = {
     305             :         .count  = 1,
     306             :         .names  = fsrvp_state_authservice_strings
     307             : };
     308             : 
     309             : 
     310             : const struct ndr_interface_table ndr_table_fsrvp_state = {
     311             :         .name           = "fsrvp_state",
     312             :         .num_calls      = 0,
     313             :         .calls          = fsrvp_state_calls,
     314             :         .num_public_structs     = 3,
     315             :         .public_structs         = fsrvp_state_public_structs,
     316             :         .endpoints      = &fsrvp_state_endpoints,
     317             :         .authservices   = &fsrvp_state_authservices
     318             : };
     319             : 
     320             : #endif /* SKIP_NDR_TABLE_fsrvp_state */

Generated by: LCOV version 1.14