]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/message.h
- Add Version, ConfigDir, and WorkingDir as Python attributes
[bacula/bacula] / bacula / src / lib / message.h
index cf323dded37f58ed6d04d1f9ae7516cdea9f9b8c..677efbb9c2cf9039076abd937064dd1a05f173af 100644 (file)
 #undef  M_TERM
 #undef  M_RESTORED
 #undef  M_SECURITY
+#undef  M_ALERT
 
 /*
- * Most of these message levels are more or less obvious. 
+ * Most of these message levels are more or less obvious.
  * They have evolved somewhat during the development of Bacula,
  * and here are some of the details of where I am trying to
  * head (in the process of changing the code) as of 15 June 2002.
@@ -56,7 +57,7 @@
  *  M_FATAL       Bacula detected a fatal Job error. The Job will be killed,
  *                  but Bacula continues running.
  *  M_ERROR       Bacula detected a Job error. The Job will continue running
- *                  but the termination status will be error. 
+ *                  but the termination status will be error.
  *  M_WARNING     Job warning message.
  *  M_INFO        Job information message.
  *
@@ -65,6 +66,8 @@
  *  M_SECURITY    For security viloations. This is equivalent to FATAL.
  *                (note, this is currently being implemented in 1.33).
  *
+ *  M_ALERT       For Tape Alert messages.
+ *
  */
 
 enum {
@@ -82,10 +85,11 @@ enum {
    M_ERROR_TERM,                      /* Error termination request (no dump) */
    M_TERM,                            /* Terminating daemon normally */
    M_RESTORED,                        /* ls -l of restored files */
-   M_SECURITY                         /* security violation */
+   M_SECURITY,                        /* security violation */
+   M_ALERT                            /* tape alert messages */
 };
 
-#define M_MAX      M_SECURITY         /* keep this updated ! */
+#define M_MAX      M_ALERT            /* keep this updated ! */
 
 /* Define message destination structure */
 /* *** FIXME **** where should be extended to handle multiple values */
@@ -116,14 +120,14 @@ typedef struct s_dest {
 struct MQUEUE_ITEM {
    dlink link;
    int type;
-   int level;
+   time_t mtime;
    char msg[1];
 };
 
 
 void d_msg(const char *file, int line, int level, const char *fmt,...);
 void e_msg(const char *file, int line, int type, int level, const char *fmt,...);
-void Jmsg(JCR *jcr, int type, int level, const char *fmt,...);
+void Jmsg(JCR *jcr, int type, time_t mtime, const char *fmt,...);
 
 extern int debug_level;
 extern int verbose;