summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2014-01-20 21:34:32 +0000
committerokan <okan>2014-01-20 21:34:32 +0000
commitd91571c567fc74c422d766fd2613c9ae23ccbc36 (patch)
treed5aa253fdcbb4860caee0dd4b7af7f11017dbcfa /calmwm.h
parent7263fb4c8457631a921c20a93bb339dfe638bb34 (diff)
downloadcwm-d91571c567fc74c422d766fd2613c9ae23ccbc36.tar.gz
cwm-d91571c567fc74c422d766fd2613c9ae23ccbc36.tar.xz
cwm-d91571c567fc74c422d766fd2613c9ae23ccbc36.zip
constify and rename some confusing variables around cmdq.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/calmwm.h b/calmwm.h
index f575a78..ed64cb6 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -267,9 +267,9 @@ TAILQ_HEAD(mousebinding_q, mousebinding);
 
 struct cmd {
 	TAILQ_ENTRY(cmd)	entry;
-	char			image[MAXPATHLEN];
-#define CMD_MAXLABELLEN		256
-	char			label[CMD_MAXLABELLEN];
+#define CMD_MAXNAMELEN		256
+	char			name[CMD_MAXNAMELEN];
+	char			path[MAXPATHLEN];
 };
 TAILQ_HEAD(cmd_q, cmd);
 
@@ -514,19 +514,20 @@ void			 menuq_clear(struct menu_q *);
 int			 parse_config(const char *, struct conf *);
 
 void			 conf_atoms(void);
-void			 conf_autogroup(struct conf *, int, char *);
+void			 conf_autogroup(struct conf *, int, const char *);
 int			 conf_bind_kbd(struct conf *, const char *,
     			     const char *);
 int			 conf_bind_mouse(struct conf *, const char *,
     			     const char *);
 void			 conf_clear(struct conf *);
 void			 conf_client(struct client_ctx *);
-void			 conf_cmd_add(struct conf *, char *, char *);
+void			 conf_cmd_add(struct conf *, const char *,
+			     const char *);
 void			 conf_cursor(struct conf *);
 void			 conf_grab_kbd(Window);
 void			 conf_grab_mouse(Window);
 void			 conf_init(struct conf *);
-void			 conf_ignore(struct conf *, char *);
+void			 conf_ignore(struct conf *, const char *);
 void			 conf_screen(struct screen_ctx *);
 
 void			 xev_loop(void);