* mu-config: reindent, remove --xquery

This commit is contained in:
Dirk-Jan C. Binnema 2011-05-22 13:44:12 +03:00
parent 48d52daf0b
commit b711e2b051
2 changed files with 6 additions and 6 deletions

View File

@ -263,7 +263,7 @@ parse_cmd (MuConfig *opts, int *argcp, char ***argvp)
int i; int i;
typedef struct { typedef struct {
const gchar* _name; const gchar* _name;
MuConfigCmd _cmd; MuConfigCmd _cmd;
} Cmd; } Cmd;
Cmd cmd_map[] = { Cmd cmd_map[] = {
@ -287,7 +287,7 @@ parse_cmd (MuConfig *opts, int *argcp, char ***argvp)
* etc.)*/ * etc.)*/
return TRUE; return TRUE;
opts->cmd = MU_CONFIG_CMD_UNKNOWN; opts->cmd = MU_CONFIG_CMD_UNKNOWN;
opts->cmdstr = (*argvp)[1]; opts->cmdstr = (*argvp)[1];
for (i = 0; i != G_N_ELEMENTS(cmd_map); ++i) for (i = 0; i != G_N_ELEMENTS(cmd_map); ++i)

View File

@ -39,7 +39,7 @@ G_BEGIN_DECLS
/* output formats for 'mu cfind' */ /* output formats for 'mu cfind' */
#define MU_CONFIG_FORMAT_MUTT_ALIAS "mutt-alias" /* mutt alias style */ #define MU_CONFIG_FORMAT_MUTT_ALIAS "mutt-alias" /* mutt alias style */
#define MU_CONFIG_FORMAT_MUTT_AB "mutt-ab" /* mutt ext addr book */ #define MU_CONFIG_FORMAT_MUTT_AB "mutt-ab" /* mutt ext abook */
#define MU_CONFIG_FORMAT_WL "wl" /* Wanderlust abook */ #define MU_CONFIG_FORMAT_WL "wl" /* Wanderlust abook */
#define MU_CONFIG_FORMAT_CSV "csv" /* comma-sep'd values */ #define MU_CONFIG_FORMAT_CSV "csv" /* comma-sep'd values */
#define MU_CONFIG_FORMAT_ORG_CONTACT "org-contact" /* org-contact */ #define MU_CONFIG_FORMAT_ORG_CONTACT "org-contact" /* org-contact */
@ -68,7 +68,7 @@ struct _MuConfig {
MuConfigCmd cmd; /* the command, or MuConfigCmd cmd; /* the command, or
* MU_CONFIG_CMD_NONE */ * MU_CONFIG_CMD_NONE */
const char *cmdstr; /* cmd string, for user const char *cmdstr; /* cmd string, for user
* info */ * info */
/* general options */ /* general options */
gboolean quiet; /* don't give any output */ gboolean quiet; /* don't give any output */
@ -97,7 +97,7 @@ struct _MuConfig {
unsigned summary_len; /* max # of lines of msg in summary */ unsigned summary_len; /* max # of lines of msg in summary */
char *bookmark; /* use bookmark */ char *bookmark; /* use bookmark */
char *formatstr; /* output type char *formatstr; /* output type
* (plain*,links,xml,json,sexp) */ * (plain,links,xml,json,sexp) */
/* output to a maildir with symlinks */ /* output to a maildir with symlinks */
char *linksdir; /* maildir to output symlinks */ char *linksdir; /* maildir to output symlinks */
@ -111,7 +111,7 @@ struct _MuConfig {
* to save / open */ * to save / open */
char *targetdir; /* where to save the attachments */ char *targetdir; /* where to save the attachments */
gboolean overwrite; /* should we overwrite same-named files */ gboolean overwrite; /* should we overwrite same-named files */
gboolean play; /* after saving, try to play gboolean play; /* after saving, try to 'play'
* (open) the attmnt using xdgopen */ * (open) the attmnt using xdgopen */
}; };
typedef struct _MuConfig MuConfig; typedef struct _MuConfig MuConfig;