]> git.deb.at Git - pkg/abook.git/blobdiff - options.c
New index_format option.
[pkg/abook.git] / options.c
index 81f8d2c42306c716a1870473dee6ed6762d5d17c..66a982bc3cafa849c712beb0b7be381981e17196 100644 (file)
--- a/options.c
+++ b/options.c
@@ -54,7 +54,7 @@ static struct option abook_vars[] = {
        { "extra_column", OT_STR, STR_EXTRA_COLUMN, UL "phone" },
        { "extra_alternative", OT_STR, STR_EXTRA_ALTERNATIVE, UL "-1" },
        { "extrapos", OT_INT, INT_EXTRAPOS, 65 },
-
+       { "index_format", OT_STR, STR_INDEX_FORMAT, UL " {name:22} {email:40} {phone:12|workphone|mobile}" },
        { "mutt_command", OT_STR, STR_MUTT_COMMAND, UL "mutt" },
        { "mutt_return_all_emails", OT_BOOL, BOOL_MUTT_RETURN_ALL_EMAILS,
                TRUE },
@@ -317,7 +317,7 @@ opt_set_set_option(char *p, struct option *opt)
        return NULL;
 }
 
-static char *
+static const char *
 opt_set_option(char *var, char *p)
 {
        int i;
@@ -386,7 +386,7 @@ opt_parse_customfield(buffer *b)
 /*
  * syntax: view <tab name> = <field1> [ , <field2>, ... ]
  */
-static char *
+static const char *
 opt_parse_view(buffer *b)
 {
        char *err, *view;
@@ -416,7 +416,7 @@ opt_parse_view(buffer *b)
 /*
  * syntax: field <identifier> = <human readable name> [ , <type> ]
  */
-static char *
+static const char *
 opt_parse_field(buffer *b)
 {
        char *err, *field, *name;