LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_notify.c (source / functions) Hit Total Coverage
Test: coverage report for abartlet/fix-coverage dd10fb34 Lines: 152 347 43.8 %
Date: 2021-09-23 10:06:22 Functions: 11 31 35.5 %

          Line data    Source code
       1             : /* parser auto-generated by pidl */
       2             : 
       3             : #include "includes.h"
       4             : #include "bin/default/librpc/gen_ndr/ndr_notify.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_file_id.h"
       7             : #include "librpc/gen_ndr/ndr_server_id.h"
       8         895 : _PUBLIC_ enum ndr_err_code ndr_push_notify_entry(struct ndr_push *ndr, int ndr_flags, const struct notify_entry *r)
       9             : {
      10         895 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      11         895 :         if (ndr_flags & NDR_SCALARS) {
      12         895 :                 NDR_CHECK(ndr_push_align(ndr, 8));
      13         895 :                 NDR_CHECK(ndr_push_server_id(ndr, NDR_SCALARS, &r->server));
      14         895 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->filter));
      15         895 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->subdir_filter));
      16         895 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->dir_fd));
      17         895 :                 NDR_CHECK(ndr_push_file_id(ndr, NDR_SCALARS, &r->dir_id));
      18             :                 {
      19         895 :                         uint32_t _flags_save_string = ndr->flags;
      20         895 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      21         895 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->path));
      22         895 :                         ndr->flags = _flags_save_string;
      23             :                 }
      24         895 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->path_len));
      25         895 :                 NDR_CHECK(ndr_push_pointer(ndr, NDR_SCALARS, r->private_data));
      26         895 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
      27             :         }
      28         895 :         if (ndr_flags & NDR_BUFFERS) {
      29             :         }
      30         895 :         return NDR_ERR_SUCCESS;
      31             : }
      32             : 
      33        1239 : _PUBLIC_ enum ndr_err_code ndr_pull_notify_entry(struct ndr_pull *ndr, int ndr_flags, struct notify_entry *r)
      34             : {
      35        1239 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
      36        1239 :         if (ndr_flags & NDR_SCALARS) {
      37        1239 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
      38        1239 :                 NDR_CHECK(ndr_pull_server_id(ndr, NDR_SCALARS, &r->server));
      39        1239 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->filter));
      40        1239 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->subdir_filter));
      41        1239 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->dir_fd));
      42        1239 :                 NDR_CHECK(ndr_pull_file_id(ndr, NDR_SCALARS, &r->dir_id));
      43             :                 {
      44        1239 :                         uint32_t _flags_save_string = ndr->flags;
      45        1239 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      46        1239 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->path));
      47        1239 :                         ndr->flags = _flags_save_string;
      48             :                 }
      49        1239 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->path_len));
      50        1239 :                 NDR_CHECK(ndr_pull_pointer(ndr, NDR_SCALARS, &r->private_data));
      51        1239 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
      52             :         }
      53        1239 :         if (ndr_flags & NDR_BUFFERS) {
      54             :         }
      55        1239 :         return NDR_ERR_SUCCESS;
      56             : }
      57             : 
      58           0 : static void ndr_print_flags_notify_entry(struct ndr_print *ndr, const char *name, int unused, const struct notify_entry *r)
      59             : {
      60           0 :         ndr_print_notify_entry(ndr, name, r);
      61           0 : }
      62             : 
      63           0 : _PUBLIC_ void ndr_print_notify_entry(struct ndr_print *ndr, const char *name, const struct notify_entry *r)
      64             : {
      65           0 :         ndr_print_struct(ndr, name, "notify_entry");
      66           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
      67           0 :         ndr->depth++;
      68           0 :         ndr_print_server_id(ndr, "server", &r->server);
      69           0 :         ndr_print_uint32(ndr, "filter", r->filter);
      70           0 :         ndr_print_uint32(ndr, "subdir_filter", r->subdir_filter);
      71           0 :         ndr_print_uint32(ndr, "dir_fd", r->dir_fd);
      72           0 :         ndr_print_file_id(ndr, "dir_id", &r->dir_id);
      73             :         {
      74           0 :                 uint32_t _flags_save_string = ndr->flags;
      75           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
      76           0 :                 ndr_print_string(ndr, "path", r->path);
      77           0 :                 ndr->flags = _flags_save_string;
      78             :         }
      79           0 :         ndr_print_uint32(ndr, "path_len", r->path_len);
      80           0 :         ndr_print_pointer(ndr, "private_data", r->private_data);
      81           0 :         ndr->depth--;
      82             : }
      83             : 
      84           0 : _PUBLIC_ enum ndr_err_code ndr_push_notify_entry_array(struct ndr_push *ndr, int ndr_flags, const struct notify_entry_array *r)
      85             : {
      86             :         uint32_t cntr_entries_0;
      87           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
      88           0 :         if (ndr_flags & NDR_SCALARS) {
      89           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
      90           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_entries));
      91           0 :                 for (cntr_entries_0 = 0; cntr_entries_0 < (r->num_entries); cntr_entries_0++) {
      92           0 :                         NDR_CHECK(ndr_push_notify_entry(ndr, NDR_SCALARS, &r->entries[cntr_entries_0]));
      93             :                 }
      94           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
      95             :         }
      96           0 :         if (ndr_flags & NDR_BUFFERS) {
      97             :         }
      98           0 :         return NDR_ERR_SUCCESS;
      99             : }
     100             : 
     101           0 : _PUBLIC_ enum ndr_err_code ndr_pull_notify_entry_array(struct ndr_pull *ndr, int ndr_flags, struct notify_entry_array *r)
     102             : {
     103           0 :         uint32_t size_entries_0 = 0;
     104             :         uint32_t cntr_entries_0;
     105           0 :         TALLOC_CTX *_mem_save_entries_0 = NULL;
     106           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     107           0 :         if (ndr_flags & NDR_SCALARS) {
     108           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     109           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_entries));
     110           0 :                 size_entries_0 = r->num_entries;
     111           0 :                 NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_0);
     112           0 :                 _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
     113           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
     114           0 :                 for (cntr_entries_0 = 0; cntr_entries_0 < (size_entries_0); cntr_entries_0++) {
     115           0 :                         NDR_CHECK(ndr_pull_notify_entry(ndr, NDR_SCALARS, &r->entries[cntr_entries_0]));
     116             :                 }
     117           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
     118           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     119             :         }
     120           0 :         if (ndr_flags & NDR_BUFFERS) {
     121             :         }
     122           0 :         return NDR_ERR_SUCCESS;
     123             : }
     124             : 
     125           0 : static void ndr_print_flags_notify_entry_array(struct ndr_print *ndr, const char *name, int unused, const struct notify_entry_array *r)
     126             : {
     127           0 :         ndr_print_notify_entry_array(ndr, name, r);
     128           0 : }
     129             : 
     130           0 : _PUBLIC_ void ndr_print_notify_entry_array(struct ndr_print *ndr, const char *name, const struct notify_entry_array *r)
     131             : {
     132             :         uint32_t cntr_entries_0;
     133           0 :         ndr_print_struct(ndr, name, "notify_entry_array");
     134           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     135           0 :         ndr->depth++;
     136           0 :         ndr_print_uint32(ndr, "num_entries", r->num_entries);
     137           0 :         ndr->print(ndr, "%s: ARRAY(%d)", "entries", (int)r->num_entries);
     138           0 :         ndr->depth++;
     139           0 :         for (cntr_entries_0 = 0; cntr_entries_0 < (r->num_entries); cntr_entries_0++) {
     140           0 :                 ndr_print_notify_entry(ndr, "entries", &r->entries[cntr_entries_0]);
     141             :         }
     142           0 :         ndr->depth--;
     143           0 :         ndr->depth--;
     144             : }
     145             : 
     146           0 : _PUBLIC_ enum ndr_err_code ndr_push_notify_db_entry(struct ndr_push *ndr, int ndr_flags, const struct notify_db_entry *r)
     147             : {
     148           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     149           0 :         if (ndr_flags & NDR_SCALARS) {
     150           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     151           0 :                 NDR_CHECK(ndr_push_server_id(ndr, NDR_SCALARS, &r->server));
     152           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->filter));
     153           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->subdir_filter));
     154           0 :                 NDR_CHECK(ndr_push_pointer(ndr, NDR_SCALARS, r->private_data));
     155           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     156             :         }
     157           0 :         if (ndr_flags & NDR_BUFFERS) {
     158             :         }
     159           0 :         return NDR_ERR_SUCCESS;
     160             : }
     161             : 
     162           0 : _PUBLIC_ enum ndr_err_code ndr_pull_notify_db_entry(struct ndr_pull *ndr, int ndr_flags, struct notify_db_entry *r)
     163             : {
     164           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     165           0 :         if (ndr_flags & NDR_SCALARS) {
     166           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     167           0 :                 NDR_CHECK(ndr_pull_server_id(ndr, NDR_SCALARS, &r->server));
     168           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->filter));
     169           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->subdir_filter));
     170           0 :                 NDR_CHECK(ndr_pull_pointer(ndr, NDR_SCALARS, &r->private_data));
     171           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     172             :         }
     173           0 :         if (ndr_flags & NDR_BUFFERS) {
     174             :         }
     175           0 :         return NDR_ERR_SUCCESS;
     176             : }
     177             : 
     178           0 : static void ndr_print_flags_notify_db_entry(struct ndr_print *ndr, const char *name, int unused, const struct notify_db_entry *r)
     179             : {
     180           0 :         ndr_print_notify_db_entry(ndr, name, r);
     181           0 : }
     182             : 
     183           0 : _PUBLIC_ void ndr_print_notify_db_entry(struct ndr_print *ndr, const char *name, const struct notify_db_entry *r)
     184             : {
     185           0 :         ndr_print_struct(ndr, name, "notify_db_entry");
     186           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     187           0 :         ndr->depth++;
     188           0 :         ndr_print_server_id(ndr, "server", &r->server);
     189           0 :         ndr_print_uint32(ndr, "filter", r->filter);
     190           0 :         ndr_print_uint32(ndr, "subdir_filter", r->subdir_filter);
     191           0 :         ndr_print_pointer(ndr, "private_data", r->private_data);
     192           0 :         ndr->depth--;
     193             : }
     194             : 
     195        4896 : static enum ndr_err_code ndr_push_notify_depth(struct ndr_push *ndr, int ndr_flags, const struct notify_depth *r)
     196             : {
     197             :         uint32_t cntr_entries_0;
     198        4896 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     199        4896 :         if (ndr_flags & NDR_SCALARS) {
     200        4896 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     201        4896 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->max_mask));
     202        4896 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->max_mask_subdir));
     203        4896 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_entries));
     204        5791 :                 for (cntr_entries_0 = 0; cntr_entries_0 < (r->num_entries); cntr_entries_0++) {
     205         895 :                         NDR_CHECK(ndr_push_notify_entry(ndr, NDR_SCALARS, &r->entries[cntr_entries_0]));
     206             :                 }
     207        4896 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     208             :         }
     209        4896 :         if (ndr_flags & NDR_BUFFERS) {
     210             :         }
     211        4896 :         return NDR_ERR_SUCCESS;
     212             : }
     213             : 
     214        7815 : static enum ndr_err_code ndr_pull_notify_depth(struct ndr_pull *ndr, int ndr_flags, struct notify_depth *r)
     215             : {
     216        7815 :         uint32_t size_entries_0 = 0;
     217             :         uint32_t cntr_entries_0;
     218        7815 :         TALLOC_CTX *_mem_save_entries_0 = NULL;
     219        7815 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     220        7815 :         if (ndr_flags & NDR_SCALARS) {
     221        7815 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     222        7815 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->max_mask));
     223        7815 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->max_mask_subdir));
     224        7815 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_entries));
     225        7815 :                 size_entries_0 = r->num_entries;
     226        7815 :                 NDR_PULL_ALLOC_N(ndr, r->entries, size_entries_0);
     227        7815 :                 _mem_save_entries_0 = NDR_PULL_GET_MEM_CTX(ndr);
     228        7815 :                 NDR_PULL_SET_MEM_CTX(ndr, r->entries, 0);
     229        9054 :                 for (cntr_entries_0 = 0; cntr_entries_0 < (size_entries_0); cntr_entries_0++) {
     230        1239 :                         NDR_CHECK(ndr_pull_notify_entry(ndr, NDR_SCALARS, &r->entries[cntr_entries_0]));
     231             :                 }
     232        7815 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_entries_0, 0);
     233        7815 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     234             :         }
     235        7815 :         if (ndr_flags & NDR_BUFFERS) {
     236             :         }
     237        7815 :         return NDR_ERR_SUCCESS;
     238             : }
     239             : 
     240           0 : _PUBLIC_ void ndr_print_notify_depth(struct ndr_print *ndr, const char *name, const struct notify_depth *r)
     241             : {
     242             :         uint32_t cntr_entries_0;
     243           0 :         ndr_print_struct(ndr, name, "notify_depth");
     244           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     245           0 :         ndr->depth++;
     246           0 :         ndr_print_uint32(ndr, "max_mask", r->max_mask);
     247           0 :         ndr_print_uint32(ndr, "max_mask_subdir", r->max_mask_subdir);
     248           0 :         ndr_print_uint32(ndr, "num_entries", r->num_entries);
     249           0 :         ndr->print(ndr, "%s: ARRAY(%d)", "entries", (int)r->num_entries);
     250           0 :         ndr->depth++;
     251           0 :         for (cntr_entries_0 = 0; cntr_entries_0 < (r->num_entries); cntr_entries_0++) {
     252           0 :                 ndr_print_notify_entry(ndr, "entries", &r->entries[cntr_entries_0]);
     253             :         }
     254           0 :         ndr->depth--;
     255           0 :         ndr->depth--;
     256             : }
     257             : 
     258         533 : _PUBLIC_ enum ndr_err_code ndr_push_notify_array(struct ndr_push *ndr, int ndr_flags, const struct notify_array *r)
     259             : {
     260             :         uint32_t cntr_depth_0;
     261         533 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     262         533 :         if (ndr_flags & NDR_SCALARS) {
     263         533 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     264         533 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_depths));
     265        5429 :                 for (cntr_depth_0 = 0; cntr_depth_0 < (r->num_depths); cntr_depth_0++) {
     266        4896 :                         NDR_CHECK(ndr_push_notify_depth(ndr, NDR_SCALARS, &r->depth[cntr_depth_0]));
     267             :                 }
     268         533 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     269             :         }
     270         533 :         if (ndr_flags & NDR_BUFFERS) {
     271             :         }
     272         533 :         return NDR_ERR_SUCCESS;
     273             : }
     274             : 
     275         857 : _PUBLIC_ enum ndr_err_code ndr_pull_notify_array(struct ndr_pull *ndr, int ndr_flags, struct notify_array *r)
     276             : {
     277         857 :         uint32_t size_depth_0 = 0;
     278             :         uint32_t cntr_depth_0;
     279         857 :         TALLOC_CTX *_mem_save_depth_0 = NULL;
     280         857 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     281         857 :         if (ndr_flags & NDR_SCALARS) {
     282         857 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     283         857 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_depths));
     284         857 :                 size_depth_0 = r->num_depths;
     285         857 :                 NDR_PULL_ALLOC_N(ndr, r->depth, size_depth_0);
     286         857 :                 _mem_save_depth_0 = NDR_PULL_GET_MEM_CTX(ndr);
     287         857 :                 NDR_PULL_SET_MEM_CTX(ndr, r->depth, 0);
     288        8672 :                 for (cntr_depth_0 = 0; cntr_depth_0 < (size_depth_0); cntr_depth_0++) {
     289        7815 :                         NDR_CHECK(ndr_pull_notify_depth(ndr, NDR_SCALARS, &r->depth[cntr_depth_0]));
     290             :                 }
     291         857 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_depth_0, 0);
     292         857 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     293             :         }
     294         857 :         if (ndr_flags & NDR_BUFFERS) {
     295             :         }
     296         857 :         return NDR_ERR_SUCCESS;
     297             : }
     298             : 
     299           0 : static void ndr_print_flags_notify_array(struct ndr_print *ndr, const char *name, int unused, const struct notify_array *r)
     300             : {
     301           0 :         ndr_print_notify_array(ndr, name, r);
     302           0 : }
     303             : 
     304           0 : _PUBLIC_ void ndr_print_notify_array(struct ndr_print *ndr, const char *name, const struct notify_array *r)
     305             : {
     306             :         uint32_t cntr_depth_0;
     307           0 :         ndr_print_struct(ndr, name, "notify_array");
     308           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     309           0 :         ndr->depth++;
     310           0 :         ndr_print_uint32(ndr, "num_depths", r->num_depths);
     311           0 :         ndr->print(ndr, "%s: ARRAY(%d)", "depth", (int)r->num_depths);
     312           0 :         ndr->depth++;
     313           0 :         for (cntr_depth_0 = 0; cntr_depth_0 < (r->num_depths); cntr_depth_0++) {
     314           0 :                 ndr_print_notify_depth(ndr, "depth", &r->depth[cntr_depth_0]);
     315             :         }
     316           0 :         ndr->depth--;
     317           0 :         ndr->depth--;
     318             : }
     319             : 
     320         429 : _PUBLIC_ enum ndr_err_code ndr_push_notify_event(struct ndr_push *ndr, int ndr_flags, const struct notify_event *r)
     321             : {
     322         429 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     323         429 :         if (ndr_flags & NDR_SCALARS) {
     324         429 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     325         429 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->action));
     326             :                 {
     327         429 :                         uint32_t _flags_save_string = ndr->flags;
     328         429 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     329         429 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->dir));
     330         429 :                         ndr->flags = _flags_save_string;
     331             :                 }
     332             :                 {
     333         429 :                         uint32_t _flags_save_string = ndr->flags;
     334         429 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     335         429 :                         NDR_CHECK(ndr_push_string(ndr, NDR_SCALARS, r->path));
     336         429 :                         ndr->flags = _flags_save_string;
     337             :                 }
     338         429 :                 NDR_CHECK(ndr_push_pointer(ndr, NDR_SCALARS, r->private_data));
     339         429 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     340             :         }
     341         429 :         if (ndr_flags & NDR_BUFFERS) {
     342             :         }
     343         429 :         return NDR_ERR_SUCCESS;
     344             : }
     345             : 
     346         431 : _PUBLIC_ enum ndr_err_code ndr_pull_notify_event(struct ndr_pull *ndr, int ndr_flags, struct notify_event *r)
     347             : {
     348         431 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     349         431 :         if (ndr_flags & NDR_SCALARS) {
     350         431 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     351         431 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->action));
     352             :                 {
     353         431 :                         uint32_t _flags_save_string = ndr->flags;
     354         431 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     355         431 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->dir));
     356         431 :                         ndr->flags = _flags_save_string;
     357             :                 }
     358             :                 {
     359         431 :                         uint32_t _flags_save_string = ndr->flags;
     360         431 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     361         431 :                         NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, &r->path));
     362         431 :                         ndr->flags = _flags_save_string;
     363             :                 }
     364         431 :                 NDR_CHECK(ndr_pull_pointer(ndr, NDR_SCALARS, &r->private_data));
     365         431 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     366             :         }
     367         431 :         if (ndr_flags & NDR_BUFFERS) {
     368             :         }
     369         431 :         return NDR_ERR_SUCCESS;
     370             : }
     371             : 
     372           0 : static void ndr_print_flags_notify_event(struct ndr_print *ndr, const char *name, int unused, const struct notify_event *r)
     373             : {
     374           0 :         ndr_print_notify_event(ndr, name, r);
     375           0 : }
     376             : 
     377           0 : _PUBLIC_ void ndr_print_notify_event(struct ndr_print *ndr, const char *name, const struct notify_event *r)
     378             : {
     379           0 :         ndr_print_struct(ndr, name, "notify_event");
     380           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     381           0 :         ndr->depth++;
     382           0 :         ndr_print_uint32(ndr, "action", r->action);
     383             :         {
     384           0 :                 uint32_t _flags_save_string = ndr->flags;
     385           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     386           0 :                 ndr_print_string(ndr, "dir", r->dir);
     387           0 :                 ndr->flags = _flags_save_string;
     388             :         }
     389             :         {
     390           0 :                 uint32_t _flags_save_string = ndr->flags;
     391           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM);
     392           0 :                 ndr_print_string(ndr, "path", r->path);
     393           0 :                 ndr->flags = _flags_save_string;
     394             :         }
     395           0 :         ndr_print_pointer(ndr, "private_data", r->private_data);
     396           0 :         ndr->depth--;
     397             : }
     398             : 
     399        2398 : static enum ndr_err_code ndr_push_FILE_NOTIFY_ACTION(struct ndr_push *ndr, int ndr_flags, enum FILE_NOTIFY_ACTION r)
     400             : {
     401        2398 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
     402        2398 :         return NDR_ERR_SUCCESS;
     403             : }
     404             : 
     405           0 : static enum ndr_err_code ndr_pull_FILE_NOTIFY_ACTION(struct ndr_pull *ndr, int ndr_flags, enum FILE_NOTIFY_ACTION *r)
     406             : {
     407             :         uint32_t v;
     408           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
     409           0 :         *r = v;
     410           0 :         return NDR_ERR_SUCCESS;
     411             : }
     412             : 
     413           0 : _PUBLIC_ void ndr_print_FILE_NOTIFY_ACTION(struct ndr_print *ndr, const char *name, enum FILE_NOTIFY_ACTION r)
     414             : {
     415           0 :         const char *val = NULL;
     416             : 
     417           0 :         switch (r) {
     418           0 :                 case FILE_ACTION_ADDED: val = "FILE_ACTION_ADDED"; break;
     419           0 :                 case FILE_ACTION_REMOVED: val = "FILE_ACTION_REMOVED"; break;
     420           0 :                 case FILE_ACTION_MODIFIED: val = "FILE_ACTION_MODIFIED"; break;
     421           0 :                 case FILE_ACTION_RENAMED_OLD_NAME: val = "FILE_ACTION_RENAMED_OLD_NAME"; break;
     422           0 :                 case FILE_ACTION_RENAMED_NEW_NAME: val = "FILE_ACTION_RENAMED_NEW_NAME"; break;
     423           0 :                 case FILE_ACTION_ADDED_STREAM: val = "FILE_ACTION_ADDED_STREAM"; break;
     424           0 :                 case FILE_ACTION_REMOVED_STREAM: val = "FILE_ACTION_REMOVED_STREAM"; break;
     425           0 :                 case FILE_ACTION_MODIFIED_STREAM: val = "FILE_ACTION_MODIFIED_STREAM"; break;
     426             :         }
     427           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     428           0 : }
     429             : 
     430        2398 : _PUBLIC_ enum ndr_err_code ndr_push_FILE_NOTIFY_INFORMATION(struct ndr_push *ndr, int ndr_flags, const struct FILE_NOTIFY_INFORMATION *r)
     431             : {
     432             :         {
     433        2398 :                 uint32_t _flags_save_STRUCT = ndr->flags;
     434        2398 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
     435        2398 :                 NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     436        2398 :                 if (ndr_flags & NDR_SCALARS) {
     437        2398 :                         NDR_CHECK(ndr_push_align(ndr, 4));
     438        2398 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->NextEntryOffset));
     439        2398 :                         NDR_CHECK(ndr_push_FILE_NOTIFY_ACTION(ndr, NDR_SCALARS, r->Action));
     440        2398 :                         NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, strlen_m(r->FileName1) * 2));
     441             :                         {
     442        2398 :                                 uint32_t _flags_save_uint16 = ndr->flags;
     443        2398 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NOTERM);
     444        2398 :                                 NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->FileName1, strlen_m(r->FileName1), sizeof(uint16_t), CH_UTF16));
     445        2398 :                                 ndr->flags = _flags_save_uint16;
     446             :                         }
     447        2398 :                         NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->_pad));
     448        2398 :                         NDR_CHECK(ndr_push_trailer_align(ndr, 4));
     449             :                 }
     450        2398 :                 if (ndr_flags & NDR_BUFFERS) {
     451             :                 }
     452        2398 :                 ndr->flags = _flags_save_STRUCT;
     453             :         }
     454        2398 :         return NDR_ERR_SUCCESS;
     455             : }
     456             : 
     457           0 : _PUBLIC_ enum ndr_err_code ndr_pull_FILE_NOTIFY_INFORMATION(struct ndr_pull *ndr, int ndr_flags, struct FILE_NOTIFY_INFORMATION *r)
     458             : {
     459           0 :         uint32_t size_FileName1_0 = 0;
     460             :         {
     461           0 :                 uint32_t _flags_save_STRUCT = ndr->flags;
     462           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
     463           0 :                 NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     464           0 :                 if (ndr_flags & NDR_SCALARS) {
     465           0 :                         NDR_CHECK(ndr_pull_align(ndr, 4));
     466           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->NextEntryOffset));
     467           0 :                         NDR_CHECK(ndr_pull_FILE_NOTIFY_ACTION(ndr, NDR_SCALARS, &r->Action));
     468           0 :                         NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->FileNameLength));
     469             :                         {
     470           0 :                                 uint32_t _flags_save_uint16 = ndr->flags;
     471           0 :                                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NOTERM);
     472           0 :                                 size_FileName1_0 = strlen_m(r->FileName1);
     473           0 :                                 NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->FileName1, size_FileName1_0, sizeof(uint16_t), CH_UTF16));
     474           0 :                                 ndr->flags = _flags_save_uint16;
     475             :                         }
     476           0 :                         NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->_pad));
     477           0 :                         NDR_CHECK(ndr_pull_trailer_align(ndr, 4));
     478             :                 }
     479           0 :                 if (ndr_flags & NDR_BUFFERS) {
     480             :                 }
     481           0 :                 ndr->flags = _flags_save_STRUCT;
     482             :         }
     483           0 :         return NDR_ERR_SUCCESS;
     484             : }
     485             : 
     486           0 : static void ndr_print_flags_FILE_NOTIFY_INFORMATION(struct ndr_print *ndr, const char *name, int unused, const struct FILE_NOTIFY_INFORMATION *r)
     487             : {
     488           0 :         ndr_print_FILE_NOTIFY_INFORMATION(ndr, name, r);
     489           0 : }
     490             : 
     491           0 : _PUBLIC_ void ndr_print_FILE_NOTIFY_INFORMATION(struct ndr_print *ndr, const char *name, const struct FILE_NOTIFY_INFORMATION *r)
     492             : {
     493           0 :         ndr_print_struct(ndr, name, "FILE_NOTIFY_INFORMATION");
     494           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     495             :         {
     496           0 :                 uint32_t _flags_save_STRUCT = ndr->flags;
     497           0 :                 ndr_set_flags(&ndr->flags, LIBNDR_FLAG_ALIGN4);
     498           0 :                 ndr->depth++;
     499           0 :                 ndr_print_uint32(ndr, "NextEntryOffset", r->NextEntryOffset);
     500           0 :                 ndr_print_FILE_NOTIFY_ACTION(ndr, "Action", r->Action);
     501           0 :                 ndr_print_uint32(ndr, "FileNameLength", (ndr->flags & LIBNDR_PRINT_SET_VALUES)?strlen_m(r->FileName1) * 2:r->FileNameLength);
     502             :                 {
     503           0 :                         uint32_t _flags_save_uint16 = ndr->flags;
     504           0 :                         ndr_set_flags(&ndr->flags, LIBNDR_FLAG_STR_NOTERM);
     505           0 :                         ndr_print_string(ndr, "FileName1", r->FileName1);
     506           0 :                         ndr->flags = _flags_save_uint16;
     507             :                 }
     508           0 :                 ndr_print_DATA_BLOB(ndr, "_pad", r->_pad);
     509           0 :                 ndr->depth--;
     510           0 :                 ndr->flags = _flags_save_STRUCT;
     511             :         }
     512             : }
     513             : 
     514        1080 : _PUBLIC_ size_t ndr_size_FILE_NOTIFY_INFORMATION(const struct FILE_NOTIFY_INFORMATION *r, int flags)
     515             : {
     516        1080 :         flags |= LIBNDR_FLAG_ALIGN4;
     517        1080 :         return ndr_size_struct(r, flags, (ndr_push_flags_fn_t)ndr_push_FILE_NOTIFY_INFORMATION);
     518             : }
     519             : 
     520             : #ifndef SKIP_NDR_TABLE_notify
     521             : static const struct ndr_interface_public_struct notify_public_structs[] = {
     522             :         {
     523             :                 .name = "notify_entry",
     524             :                 .struct_size = sizeof(struct notify_entry ),
     525             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_notify_entry,
     526             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_notify_entry,
     527             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_notify_entry,
     528             :         },
     529             :         {
     530             :                 .name = "notify_entry_array",
     531             :                 .struct_size = sizeof(struct notify_entry_array ),
     532             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_notify_entry_array,
     533             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_notify_entry_array,
     534             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_notify_entry_array,
     535             :         },
     536             :         {
     537             :                 .name = "notify_db_entry",
     538             :                 .struct_size = sizeof(struct notify_db_entry ),
     539             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_notify_db_entry,
     540             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_notify_db_entry,
     541             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_notify_db_entry,
     542             :         },
     543             :         {
     544             :                 .name = "notify_array",
     545             :                 .struct_size = sizeof(struct notify_array ),
     546             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_notify_array,
     547             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_notify_array,
     548             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_notify_array,
     549             :         },
     550             :         {
     551             :                 .name = "notify_event",
     552             :                 .struct_size = sizeof(struct notify_event ),
     553             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_notify_event,
     554             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_notify_event,
     555             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_notify_event,
     556             :         },
     557             :         {
     558             :                 .name = "FILE_NOTIFY_INFORMATION",
     559             :                 .struct_size = sizeof(struct FILE_NOTIFY_INFORMATION ),
     560             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_FILE_NOTIFY_INFORMATION,
     561             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_FILE_NOTIFY_INFORMATION,
     562             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_FILE_NOTIFY_INFORMATION,
     563             :         },
     564             :         { .name = NULL }
     565             : };
     566             : 
     567             : static const struct ndr_interface_call notify_calls[] = {
     568             :         { .name = NULL }
     569             : };
     570             : 
     571             : static const char * const notify_endpoint_strings[] = {
     572             :         "ncacn_np:[\\pipe\\notify]", 
     573             : };
     574             : 
     575             : static const struct ndr_interface_string_array notify_endpoints = {
     576             :         .count  = 1,
     577             :         .names  = notify_endpoint_strings
     578             : };
     579             : 
     580             : static const char * const notify_authservice_strings[] = {
     581             :         "host", 
     582             : };
     583             : 
     584             : static const struct ndr_interface_string_array notify_authservices = {
     585             :         .count  = 1,
     586             :         .names  = notify_authservice_strings
     587             : };
     588             : 
     589             : 
     590             : const struct ndr_interface_table ndr_table_notify = {
     591             :         .name           = "notify",
     592             :         .num_calls      = 0,
     593             :         .calls          = notify_calls,
     594             :         .num_public_structs     = 6,
     595             :         .public_structs         = notify_public_structs,
     596             :         .endpoints      = &notify_endpoints,
     597             :         .authservices   = &notify_authservices
     598             : };
     599             : 
     600             : #endif /* SKIP_NDR_TABLE_notify */

Generated by: LCOV version 1.13