LCOV - code coverage report
Current view: top level - bin/default/librpc/gen_ndr - ndr_messaging.c (source / functions) Hit Total Coverage
Test: coverage report for abartlet/fix-coverage dd10fb34 Lines: 0 228 0.0 %
Date: 2021-09-23 10:06:22 Functions: 0 11 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_messaging.h"
       5             : 
       6             : #include "librpc/gen_ndr/ndr_server_id.h"
       7           0 : _PUBLIC_ enum ndr_err_code ndr_push_messaging_type(struct ndr_push *ndr, int ndr_flags, enum messaging_type r)
       8             : {
       9           0 :         NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
      10           0 :         return NDR_ERR_SUCCESS;
      11             : }
      12             : 
      13           0 : _PUBLIC_ enum ndr_err_code ndr_pull_messaging_type(struct ndr_pull *ndr, int ndr_flags, enum messaging_type *r)
      14             : {
      15             :         uint32_t v;
      16           0 :         NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
      17           0 :         *r = v;
      18           0 :         return NDR_ERR_SUCCESS;
      19             : }
      20             : 
      21           0 : _PUBLIC_ void ndr_print_messaging_type(struct ndr_print *ndr, const char *name, enum messaging_type r)
      22             : {
      23           0 :         const char *val = NULL;
      24             : 
      25           0 :         switch (r) {
      26           0 :                 case MSG_DEBUG: val = "MSG_DEBUG"; break;
      27           0 :                 case MSG_PING: val = "MSG_PING"; break;
      28           0 :                 case MSG_PONG: val = "MSG_PONG"; break;
      29           0 :                 case MSG_PROFILE: val = "MSG_PROFILE"; break;
      30           0 :                 case MSG_REQ_DEBUGLEVEL: val = "MSG_REQ_DEBUGLEVEL"; break;
      31           0 :                 case MSG_DEBUGLEVEL: val = "MSG_DEBUGLEVEL"; break;
      32           0 :                 case MSG_REQ_PROFILELEVEL: val = "MSG_REQ_PROFILELEVEL"; break;
      33           0 :                 case MSG_PROFILELEVEL: val = "MSG_PROFILELEVEL"; break;
      34           0 :                 case MSG_REQ_POOL_USAGE: val = "MSG_REQ_POOL_USAGE"; break;
      35           0 :                 case MSG_POOL_USAGE: val = "MSG_POOL_USAGE"; break;
      36           0 :                 case MSG_REQ_DMALLOC_MARK: val = "MSG_REQ_DMALLOC_MARK"; break;
      37           0 :                 case MSG_REQ_DMALLOC_LOG_CHANGED: val = "MSG_REQ_DMALLOC_LOG_CHANGED"; break;
      38           0 :                 case MSG_SHUTDOWN: val = "MSG_SHUTDOWN"; break;
      39           0 :                 case ID_CACHE_DELETE: val = "ID_CACHE_DELETE"; break;
      40           0 :                 case ID_CACHE_KILL: val = "ID_CACHE_KILL"; break;
      41           0 :                 case MSG_SMB_CONF_UPDATED: val = "MSG_SMB_CONF_UPDATED"; break;
      42           0 :                 case MSG_PREFORK_CHILD_EVENT: val = "MSG_PREFORK_CHILD_EVENT"; break;
      43           0 :                 case MSG_PREFORK_PARENT_EVENT: val = "MSG_PREFORK_PARENT_EVENT"; break;
      44           0 :                 case MSG_REQ_RINGBUF_LOG: val = "MSG_REQ_RINGBUF_LOG"; break;
      45           0 :                 case MSG_RINGBUF_LOG: val = "MSG_RINGBUF_LOG"; break;
      46           0 :                 case MSG_DAEMON_READY_FD: val = "MSG_DAEMON_READY_FD"; break;
      47           0 :                 case MSG_FORCE_ELECTION: val = "MSG_FORCE_ELECTION"; break;
      48           0 :                 case MSG_WINS_NEW_ENTRY: val = "MSG_WINS_NEW_ENTRY"; break;
      49           0 :                 case MSG_SEND_PACKET: val = "MSG_SEND_PACKET"; break;
      50           0 :                 case MSG_PRINTER_NOTIFY2: val = "MSG_PRINTER_NOTIFY2"; break;
      51           0 :                 case MSG_PRINTER_DRVUPGRADE: val = "MSG_PRINTER_DRVUPGRADE"; break;
      52           0 :                 case MSG_PRINTERDATA_INIT_RESET: val = "MSG_PRINTERDATA_INIT_RESET"; break;
      53           0 :                 case MSG_PRINTER_UPDATE: val = "MSG_PRINTER_UPDATE"; break;
      54           0 :                 case MSG_PRINTER_MOD: val = "MSG_PRINTER_MOD"; break;
      55           0 :                 case MSG_PRINTER_PCAP: val = "MSG_PRINTER_PCAP"; break;
      56           0 :                 case MSG_SMB_FORCE_TDIS: val = "MSG_SMB_FORCE_TDIS"; break;
      57           0 :                 case MSG_SMB_BREAK_REQUEST: val = "MSG_SMB_BREAK_REQUEST"; break;
      58           0 :                 case MSG_SMB_KERNEL_BREAK: val = "MSG_SMB_KERNEL_BREAK"; break;
      59           0 :                 case MSG_SMB_FILE_RENAME: val = "MSG_SMB_FILE_RENAME"; break;
      60           0 :                 case MSG_SMB_INJECT_FAULT: val = "MSG_SMB_INJECT_FAULT"; break;
      61           0 :                 case MSG_SMB_BLOCKING_LOCK_CANCEL: val = "MSG_SMB_BLOCKING_LOCK_CANCEL"; break;
      62           0 :                 case MSG_SMB_NOTIFY: val = "MSG_SMB_NOTIFY"; break;
      63           0 :                 case MSG_SMB_STAT_CACHE_DELETE: val = "MSG_SMB_STAT_CACHE_DELETE"; break;
      64           0 :                 case MSG_PVFS_NOTIFY: val = "MSG_PVFS_NOTIFY"; break;
      65           0 :                 case MSG_SMB_CLOSE_FILE: val = "MSG_SMB_CLOSE_FILE"; break;
      66           0 :                 case MSG_SMB_NOTIFY_CLEANUP: val = "MSG_SMB_NOTIFY_CLEANUP"; break;
      67           0 :                 case MSG_SMB_SCAVENGER: val = "MSG_SMB_SCAVENGER"; break;
      68           0 :                 case MSG_SMB_KILL_CLIENT_IP: val = "MSG_SMB_KILL_CLIENT_IP"; break;
      69           0 :                 case MSG_SMB_TELL_NUM_CHILDREN: val = "MSG_SMB_TELL_NUM_CHILDREN"; break;
      70           0 :                 case MSG_SMB_NUM_CHILDREN: val = "MSG_SMB_NUM_CHILDREN"; break;
      71           0 :                 case MSG_SMB_NOTIFY_CANCEL_DELETED: val = "MSG_SMB_NOTIFY_CANCEL_DELETED"; break;
      72           0 :                 case MSG_SMB_NOTIFY_REC_CHANGE: val = "MSG_SMB_NOTIFY_REC_CHANGE"; break;
      73           0 :                 case MSG_SMB_NOTIFY_TRIGGER: val = "MSG_SMB_NOTIFY_TRIGGER"; break;
      74           0 :                 case MSG_SMB_NOTIFY_GET_DB: val = "MSG_SMB_NOTIFY_GET_DB"; break;
      75           0 :                 case MSG_SMB_NOTIFY_DB: val = "MSG_SMB_NOTIFY_DB"; break;
      76           0 :                 case MSG_SMB_NOTIFY_REC_CHANGES: val = "MSG_SMB_NOTIFY_REC_CHANGES"; break;
      77           0 :                 case MSG_SMB_NOTIFY_STARTED: val = "MSG_SMB_NOTIFY_STARTED"; break;
      78           0 :                 case MSG_SMB_SLEEP: val = "MSG_SMB_SLEEP"; break;
      79           0 :                 case MSG_SMB_FORCE_TDIS_DENIED: val = "MSG_SMB_FORCE_TDIS_DENIED"; break;
      80           0 :                 case MSG_WINBIND_FINISHED: val = "MSG_WINBIND_FINISHED"; break;
      81           0 :                 case MSG_WINBIND_FORGET_STATE: val = "MSG_WINBIND_FORGET_STATE"; break;
      82           0 :                 case MSG_WINBIND_ONLINE: val = "MSG_WINBIND_ONLINE"; break;
      83           0 :                 case MSG_WINBIND_OFFLINE: val = "MSG_WINBIND_OFFLINE"; break;
      84           0 :                 case MSG_WINBIND_ONLINESTATUS: val = "MSG_WINBIND_ONLINESTATUS"; break;
      85           0 :                 case MSG_WINBIND_VALIDATE_CACHE: val = "MSG_WINBIND_VALIDATE_CACHE"; break;
      86           0 :                 case MSG_WINBIND_DUMP_DOMAIN_LIST: val = "MSG_WINBIND_DUMP_DOMAIN_LIST"; break;
      87           0 :                 case MSG_WINBIND_IP_DROPPED: val = "MSG_WINBIND_IP_DROPPED"; break;
      88           0 :                 case MSG_WINBIND_DOMAIN_ONLINE: val = "MSG_WINBIND_DOMAIN_ONLINE"; break;
      89           0 :                 case MSG_WINBIND_DOMAIN_OFFLINE: val = "MSG_WINBIND_DOMAIN_OFFLINE"; break;
      90           0 :                 case MSG_WINBIND_RELOAD_TRUSTED_DOMAINS: val = "MSG_WINBIND_RELOAD_TRUSTED_DOMAINS"; break;
      91           0 :                 case MSG_WINBIND_DISCONNECT_DC: val = "MSG_WINBIND_DISCONNECT_DC"; break;
      92           0 :                 case MSG_SMBXSRV_SESSION_CLOSE: val = "MSG_SMBXSRV_SESSION_CLOSE"; break;
      93           0 :                 case MSG_SMBXSRV_CONNECTION_PASS: val = "MSG_SMBXSRV_CONNECTION_PASS"; break;
      94           0 :                 case MSG_SMBXSRV_CONNECTION_PASSED: val = "MSG_SMBXSRV_CONNECTION_PASSED"; break;
      95           0 :                 case MSG_BRL_RETRY: val = "MSG_BRL_RETRY"; break;
      96           0 :                 case MSG_PVFS_RETRY_OPEN: val = "MSG_PVFS_RETRY_OPEN"; break;
      97           0 :                 case MSG_IRPC: val = "MSG_IRPC"; break;
      98           0 :                 case MSG_NTVFS_OPLOCK_BREAK: val = "MSG_NTVFS_OPLOCK_BREAK"; break;
      99           0 :                 case MSG_DREPL_ALLOCATE_RID: val = "MSG_DREPL_ALLOCATE_RID"; break;
     100           0 :                 case MSG_AUTH_LOG: val = "MSG_AUTH_LOG"; break;
     101           0 :                 case MSG_DSDB_LOG: val = "MSG_DSDB_LOG"; break;
     102           0 :                 case MSG_DSDB_PWD_LOG: val = "MSG_DSDB_PWD_LOG"; break;
     103           0 :                 case MSG_GROUP_LOG: val = "MSG_GROUP_LOG"; break;
     104           0 :                 case MSG_DBWRAP_MODIFIED: val = "MSG_DBWRAP_MODIFIED"; break;
     105           0 :                 case MSG_TMP_BASE: val = "MSG_TMP_BASE"; break;
     106             :         }
     107           0 :         ndr_print_enum(ndr, name, "ENUM", val, r);
     108           0 : }
     109             : 
     110           0 : _PUBLIC_ enum ndr_err_code ndr_push_messaging_rec(struct ndr_push *ndr, int ndr_flags, const struct messaging_rec *r)
     111             : {
     112             :         uint32_t cntr_fds_0;
     113           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     114           0 :         if (ndr_flags & NDR_SCALARS) {
     115           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     116             :                 /* [skip] 'r->prev' */
     117             :                 /* [skip] 'r->next' */
     118           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->msg_version));
     119           0 :                 NDR_CHECK(ndr_push_messaging_type(ndr, NDR_SCALARS, r->msg_type));
     120           0 :                 NDR_CHECK(ndr_push_server_id(ndr, NDR_SCALARS, &r->dest));
     121           0 :                 NDR_CHECK(ndr_push_server_id(ndr, NDR_SCALARS, &r->src));
     122           0 :                 NDR_CHECK(ndr_push_DATA_BLOB(ndr, NDR_SCALARS, r->buf));
     123           0 :                 NDR_CHECK(ndr_push_uint8(ndr, NDR_SCALARS, r->num_fds));
     124           0 :                 for (cntr_fds_0 = 0; cntr_fds_0 < (r->num_fds); cntr_fds_0++) {
     125           0 :                         NDR_CHECK(ndr_push_dlong(ndr, NDR_SCALARS, r->fds[cntr_fds_0]));
     126             :                 }
     127           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     128             :         }
     129           0 :         if (ndr_flags & NDR_BUFFERS) {
     130             :                 /* [skip] 'r->prev' */
     131             :                 /* [skip] 'r->next' */
     132             :         }
     133           0 :         return NDR_ERR_SUCCESS;
     134             : }
     135             : 
     136           0 : _PUBLIC_ enum ndr_err_code ndr_pull_messaging_rec(struct ndr_pull *ndr, int ndr_flags, struct messaging_rec *r)
     137             : {
     138           0 :         uint32_t size_fds_0 = 0;
     139             :         uint32_t cntr_fds_0;
     140           0 :         TALLOC_CTX *_mem_save_fds_0 = NULL;
     141           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     142           0 :         if (ndr_flags & NDR_SCALARS) {
     143           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     144             :                 /* [skip] 'r->prev' */
     145           0 :                 NDR_ZERO_STRUCT(r->prev);
     146             :                 /* [skip] 'r->next' */
     147           0 :                 NDR_ZERO_STRUCT(r->next);
     148           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->msg_version));
     149           0 :                 NDR_CHECK(ndr_pull_messaging_type(ndr, NDR_SCALARS, &r->msg_type));
     150           0 :                 NDR_CHECK(ndr_pull_server_id(ndr, NDR_SCALARS, &r->dest));
     151           0 :                 NDR_CHECK(ndr_pull_server_id(ndr, NDR_SCALARS, &r->src));
     152           0 :                 NDR_CHECK(ndr_pull_DATA_BLOB(ndr, NDR_SCALARS, &r->buf));
     153           0 :                 NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, &r->num_fds));
     154           0 :                 size_fds_0 = r->num_fds;
     155           0 :                 NDR_PULL_ALLOC_N(ndr, r->fds, size_fds_0);
     156           0 :                 _mem_save_fds_0 = NDR_PULL_GET_MEM_CTX(ndr);
     157           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->fds, 0);
     158           0 :                 for (cntr_fds_0 = 0; cntr_fds_0 < (size_fds_0); cntr_fds_0++) {
     159           0 :                         NDR_CHECK(ndr_pull_dlong(ndr, NDR_SCALARS, &r->fds[cntr_fds_0]));
     160             :                 }
     161           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_fds_0, 0);
     162           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     163             :         }
     164           0 :         if (ndr_flags & NDR_BUFFERS) {
     165             :                 /* [skip] 'r->prev' */
     166           0 :                 NDR_ZERO_STRUCT(r->prev);
     167             :                 /* [skip] 'r->next' */
     168           0 :                 NDR_ZERO_STRUCT(r->next);
     169             :         }
     170           0 :         return NDR_ERR_SUCCESS;
     171             : }
     172             : 
     173           0 : static void ndr_print_flags_messaging_rec(struct ndr_print *ndr, const char *name, int unused, const struct messaging_rec *r)
     174             : {
     175           0 :         ndr_print_messaging_rec(ndr, name, r);
     176           0 : }
     177             : 
     178           0 : _PUBLIC_ void ndr_print_messaging_rec(struct ndr_print *ndr, const char *name, const struct messaging_rec *r)
     179             : {
     180             :         uint32_t cntr_fds_0;
     181           0 :         ndr_print_struct(ndr, name, "messaging_rec");
     182           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     183           0 :         ndr->depth++;
     184           0 :         ndr_print_ptr(ndr, "prev", r->prev);
     185           0 :         ndr->depth++;
     186           0 :         if (r->prev) {
     187           0 :                 ndr_print_messaging_rec(ndr, "prev", r->prev);
     188             :         }
     189           0 :         ndr->depth--;
     190           0 :         ndr_print_ptr(ndr, "next", r->next);
     191           0 :         ndr->depth++;
     192           0 :         if (r->next) {
     193           0 :                 ndr_print_messaging_rec(ndr, "next", r->next);
     194             :         }
     195           0 :         ndr->depth--;
     196           0 :         ndr_print_uint32(ndr, "msg_version", r->msg_version);
     197           0 :         ndr_print_messaging_type(ndr, "msg_type", r->msg_type);
     198           0 :         ndr_print_server_id(ndr, "dest", &r->dest);
     199           0 :         ndr_print_server_id(ndr, "src", &r->src);
     200           0 :         ndr_print_DATA_BLOB(ndr, "buf", r->buf);
     201           0 :         ndr_print_uint8(ndr, "num_fds", r->num_fds);
     202           0 :         ndr->print(ndr, "%s: ARRAY(%d)", "fds", (int)r->num_fds);
     203           0 :         ndr->depth++;
     204           0 :         for (cntr_fds_0 = 0; cntr_fds_0 < (r->num_fds); cntr_fds_0++) {
     205           0 :                 ndr_print_dlong(ndr, "fds", r->fds[cntr_fds_0]);
     206             :         }
     207           0 :         ndr->depth--;
     208           0 :         ndr->depth--;
     209             : }
     210             : 
     211           0 : _PUBLIC_ enum ndr_err_code ndr_push_messaging_reclog(struct ndr_push *ndr, int ndr_flags, const struct messaging_reclog *r)
     212             : {
     213             :         uint32_t cntr_recs_0;
     214           0 :         NDR_PUSH_CHECK_FLAGS(ndr, ndr_flags);
     215           0 :         if (ndr_flags & NDR_SCALARS) {
     216           0 :                 NDR_CHECK(ndr_push_align(ndr, 8));
     217           0 :                 NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->rec_index));
     218           0 :                 NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_recs));
     219           0 :                 for (cntr_recs_0 = 0; cntr_recs_0 < (r->num_recs); cntr_recs_0++) {
     220           0 :                         NDR_CHECK(ndr_push_unique_ptr(ndr, r->recs[cntr_recs_0]));
     221             :                 }
     222           0 :                 NDR_CHECK(ndr_push_trailer_align(ndr, 8));
     223             :         }
     224           0 :         if (ndr_flags & NDR_BUFFERS) {
     225           0 :                 for (cntr_recs_0 = 0; cntr_recs_0 < (r->num_recs); cntr_recs_0++) {
     226           0 :                         if (r->recs[cntr_recs_0]) {
     227           0 :                                 NDR_CHECK(ndr_push_messaging_rec(ndr, NDR_SCALARS|NDR_BUFFERS, r->recs[cntr_recs_0]));
     228             :                         }
     229             :                 }
     230             :         }
     231           0 :         return NDR_ERR_SUCCESS;
     232             : }
     233             : 
     234           0 : _PUBLIC_ enum ndr_err_code ndr_pull_messaging_reclog(struct ndr_pull *ndr, int ndr_flags, struct messaging_reclog *r)
     235             : {
     236             :         uint32_t _ptr_recs;
     237           0 :         uint32_t size_recs_0 = 0;
     238             :         uint32_t cntr_recs_0;
     239           0 :         TALLOC_CTX *_mem_save_recs_0 = NULL;
     240           0 :         TALLOC_CTX *_mem_save_recs_1 = NULL;
     241           0 :         NDR_PULL_CHECK_FLAGS(ndr, ndr_flags);
     242           0 :         if (ndr_flags & NDR_SCALARS) {
     243           0 :                 NDR_CHECK(ndr_pull_align(ndr, 8));
     244           0 :                 NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->rec_index));
     245           0 :                 NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_recs));
     246           0 :                 size_recs_0 = r->num_recs;
     247           0 :                 NDR_PULL_ALLOC_N(ndr, r->recs, size_recs_0);
     248           0 :                 _mem_save_recs_0 = NDR_PULL_GET_MEM_CTX(ndr);
     249           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->recs, 0);
     250           0 :                 for (cntr_recs_0 = 0; cntr_recs_0 < (size_recs_0); cntr_recs_0++) {
     251           0 :                         NDR_CHECK(ndr_pull_generic_ptr(ndr, &_ptr_recs));
     252           0 :                         if (_ptr_recs) {
     253           0 :                                 NDR_PULL_ALLOC(ndr, r->recs[cntr_recs_0]);
     254             :                         } else {
     255           0 :                                 r->recs[cntr_recs_0] = NULL;
     256             :                         }
     257             :                 }
     258           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_recs_0, 0);
     259           0 :                 NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
     260             :         }
     261           0 :         if (ndr_flags & NDR_BUFFERS) {
     262           0 :                 size_recs_0 = r->num_recs;
     263           0 :                 _mem_save_recs_0 = NDR_PULL_GET_MEM_CTX(ndr);
     264           0 :                 NDR_PULL_SET_MEM_CTX(ndr, r->recs, 0);
     265           0 :                 for (cntr_recs_0 = 0; cntr_recs_0 < (size_recs_0); cntr_recs_0++) {
     266           0 :                         if (r->recs[cntr_recs_0]) {
     267           0 :                                 _mem_save_recs_1 = NDR_PULL_GET_MEM_CTX(ndr);
     268           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, r->recs[cntr_recs_0], 0);
     269           0 :                                 NDR_CHECK(ndr_pull_messaging_rec(ndr, NDR_SCALARS|NDR_BUFFERS, r->recs[cntr_recs_0]));
     270           0 :                                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_recs_1, 0);
     271             :                         }
     272             :                 }
     273           0 :                 NDR_PULL_SET_MEM_CTX(ndr, _mem_save_recs_0, 0);
     274           0 :                 for (cntr_recs_0 = 0; cntr_recs_0 < (size_recs_0); cntr_recs_0++) {
     275             :                 }
     276             :         }
     277           0 :         return NDR_ERR_SUCCESS;
     278             : }
     279             : 
     280           0 : static void ndr_print_flags_messaging_reclog(struct ndr_print *ndr, const char *name, int unused, const struct messaging_reclog *r)
     281             : {
     282           0 :         ndr_print_messaging_reclog(ndr, name, r);
     283           0 : }
     284             : 
     285           0 : _PUBLIC_ void ndr_print_messaging_reclog(struct ndr_print *ndr, const char *name, const struct messaging_reclog *r)
     286             : {
     287             :         uint32_t cntr_recs_0;
     288           0 :         ndr_print_struct(ndr, name, "messaging_reclog");
     289           0 :         if (r == NULL) { ndr_print_null(ndr); return; }
     290           0 :         ndr->depth++;
     291           0 :         ndr_print_hyper(ndr, "rec_index", r->rec_index);
     292           0 :         ndr_print_uint32(ndr, "num_recs", r->num_recs);
     293           0 :         ndr->print(ndr, "%s: ARRAY(%d)", "recs", (int)r->num_recs);
     294           0 :         ndr->depth++;
     295           0 :         for (cntr_recs_0 = 0; cntr_recs_0 < (r->num_recs); cntr_recs_0++) {
     296           0 :                 ndr_print_ptr(ndr, "recs", r->recs[cntr_recs_0]);
     297           0 :                 ndr->depth++;
     298           0 :                 if (r->recs[cntr_recs_0]) {
     299           0 :                         ndr_print_messaging_rec(ndr, "recs", r->recs[cntr_recs_0]);
     300             :                 }
     301           0 :                 ndr->depth--;
     302             :         }
     303           0 :         ndr->depth--;
     304           0 :         ndr->depth--;
     305             : }
     306             : 
     307             : #ifndef SKIP_NDR_TABLE_messaging
     308             : static const struct ndr_interface_public_struct messaging_public_structs[] = {
     309             :         {
     310             :                 .name = "messaging_rec",
     311             :                 .struct_size = sizeof(struct messaging_rec ),
     312             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_messaging_rec,
     313             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_messaging_rec,
     314             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_messaging_rec,
     315             :         },
     316             :         {
     317             :                 .name = "messaging_reclog",
     318             :                 .struct_size = sizeof(struct messaging_reclog ),
     319             :                 .ndr_push = (ndr_push_flags_fn_t) ndr_push_messaging_reclog,
     320             :                 .ndr_pull = (ndr_pull_flags_fn_t) ndr_pull_messaging_reclog,
     321             :                 .ndr_print = (ndr_print_function_t) ndr_print_flags_messaging_reclog,
     322             :         },
     323             :         { .name = NULL }
     324             : };
     325             : 
     326             : static const struct ndr_interface_call messaging_calls[] = {
     327             :         { .name = NULL }
     328             : };
     329             : 
     330             : static const char * const messaging_endpoint_strings[] = {
     331             :         "ncacn_np:[\\pipe\\messaging]", 
     332             : };
     333             : 
     334             : static const struct ndr_interface_string_array messaging_endpoints = {
     335             :         .count  = 1,
     336             :         .names  = messaging_endpoint_strings
     337             : };
     338             : 
     339             : static const char * const messaging_authservice_strings[] = {
     340             :         "host", 
     341             : };
     342             : 
     343             : static const struct ndr_interface_string_array messaging_authservices = {
     344             :         .count  = 1,
     345             :         .names  = messaging_authservice_strings
     346             : };
     347             : 
     348             : 
     349             : const struct ndr_interface_table ndr_table_messaging = {
     350             :         .name           = "messaging",
     351             :         .num_calls      = 0,
     352             :         .calls          = messaging_calls,
     353             :         .num_public_structs     = 2,
     354             :         .public_structs         = messaging_public_structs,
     355             :         .endpoints      = &messaging_endpoints,
     356             :         .authservices   = &messaging_authservices
     357             : };
     358             : 
     359             : #endif /* SKIP_NDR_TABLE_messaging */

Generated by: LCOV version 1.13