src/lib/message.c
bool is_message_type_set(JCR *jcr, int type)
{
   MSGS *msgs = NULL;
   if (jcr) {
       msgs = jcr->jcr_msgs;
   }
   if (!msgs) {
      msgs = daemon_msgs;            /* if no jcr, we use daemon handler */
   }
   if (msgs && (type != M_ABORT && type != M_ERROR_TERM) &&
       !bit_is_set(type, msgs->send_msg)) {
      return false;                 /* no destination */
   }
   return true;
}
/* Check in the msgs resource if a given type is defined */
Check in the msgs resource if a given type is defined
Check in the msgs resource if a given type is defined
bool is_message_type_set(JCR *jcr, int type)
{
   MSGS *msgs = NULL;
   if (jcr) {
       msgs = jcr->jcr_msgs;
   }
   if (!msgs) {
      msgs = daemon_msgs;            
   }
   if (msgs && (type != M_ABORT && type != M_ERROR_TERM) &&
       !bit_is_set(type, msgs->send_msg)) {
      return false;                 
   }
   return true;
}
bool is_message_type_set ( JCR * jcr , int type ) { MSGS * msgs = NULL ; if ( jcr ) { msgs = jcr -> jcr_msgs ; } if ( ! msgs ) { msgs = daemon_msgs ; } if ( msgs && ( type != M_ABORT && type != M_ERROR_TERM ) && ! bit_is_set ( type , msgs -> send_msg ) ) { return false ; } return true ; }
Check in the msgs resource if a given type is defined
Check in the msgs resource if a given type is defined
/* if no jcr, we use daemon handler */ /* no destination */