]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/bat_conf.h
dhb Implement dir_cmd in medialist remove dosql from console
[bacula/bacula] / bacula / src / qt-console / bat_conf.h
index 209734aff8ec9ce4ffff84d986a2c9b3869f7e7e..5a583d465fe1570d03ae36ca8b476ef149860144 100644 (file)
@@ -33,8 +33,8 @@
    Switzerland, email:ftf@fsfeurope.org.
 */
 
-#ifndef __CONSOLE_CONF_H_
-#define __CONSOLE_CONF_H_
+#ifndef _BAT_CONF_H_
+#define _BAT_CONF_H_
 
 /*
  * Resource codes -- they must be sequential for indexing
@@ -74,8 +74,13 @@ struct DIRRES {
    char *tls_keyfile;                 /* TLS Client Key File */
 
    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
+
+   /* Methods */
+   char *name() const;
 };
 
+inline char *DIRRES::name() const { return hdr.name; }
+
 struct CONFONTRES {
    RES   hdr;
    char *fontface;                    /* Console Font specification */
@@ -108,4 +113,4 @@ union u_res {
 
 typedef union u_res URES;
 
-#endif
+#endif /* _BAT_CONF_H_ */