]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/var.h
kes If doing a mount, look for a slot, and if specified pass it to
[bacula/bacula] / bacula / src / lib / var.h
index 5bba30f3a883d1e4e6d8d2f83834f4087801dfce..e79c84b70522068655cb127fbcf55b73bc487990 100644 (file)
  * Modified for use with Bacula by Kern Sibbald, June 2003
  */
 /*
-   Copyright (C) 2000-2003 Kern Sibbald and John Walker
+   Copyright (C) 2003-2006 Kern Sibbald
 
    This program is free software; you can redistribute it and/or
-   modify it under the terms of the GNU General Public License as
-   published by the Free Software Foundation; either version 2 of
-   the License, or (at your option) any later version.
+   modify it under the terms of the GNU General Public License
+   version 2 as amended with additional clauses defined in the
+   file LICENSE in the main source directory.
 
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-   General Public License for more details.
-
-   You should have received a copy of the GNU General Public
-   License along with this program; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
-   MA 02111-1307, USA.
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
+   the file LICENSE for additional details.
 
  */
 
@@ -110,7 +105,7 @@ typedef struct {
     char  index_open;   /* default: '[' */
     char  index_close;  /* default: ']' */
     char  index_mark;   /* default: '#' */
-    char *name_chars;   /* default: "a-zA-Z0-9_" */
+    const char *name_chars;   /* default: "a-zA-Z0-9_" */
 } var_syntax_t;
 
 typedef var_rc_t (*var_cb_value_t)(
@@ -135,6 +130,6 @@ var_rc_t  var_unescape  (var_t  *var, const char *src_ptr, int src_len, char  *d
 var_rc_t  var_expand    (var_t  *var, const char *src_ptr, int src_len, char **dst_ptr, int *dst_len, int force_expand);
 var_rc_t  var_formatv   (var_t  *var, char **dst_ptr, int force_expand, const char *fmt, va_list ap);
 var_rc_t  var_format    (var_t  *var, char **dst_ptr, int force_expand, const char *fmt, ...);
-char     *var_strerror  (var_t  *var, var_rc_t rc);            
+const char *var_strerror  (var_t  *var, var_rc_t rc);
 
 #endif /* __VAR_H__ */