diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-18 00:04:30 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-18 00:04:30 +0000 |
commit | 01123bae075d6d472eaf3806556ce08ca6d6a3cd (patch) | |
tree | 82794eebafa9e00b243408c62015c383edd6cabf /action.h | |
parent | de052af0fd05e0257e48f9e0633a2a934e4bff3d (diff) | |
download | dzen-01123bae075d6d472eaf3806556ce08ca6d6a3cd.tar.gz dzen-01123bae075d6d472eaf3806556ce08ca6d6a3cd.zip |
code cleanups, thanks 'mauke'
git-svn-id: http://dzen.googlecode.com/svn/trunk@106 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'action.h')
-rw-r--r-- | action.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -10,7 +10,7 @@ /* Event, Action data structures */ typedef struct AS As; typedef struct _ev_list ev_list; -typedef int (* handlerf)(char **); +typedef int handlerf(char **); enum ev_id { /* startup, exit */ @@ -34,12 +34,12 @@ struct _ev_list { }; struct event_lookup { - char *name; + const char *name; long id; }; struct action_lookup { - char *name; + const char *name; int (*handler)(char **); }; @@ -51,8 +51,8 @@ struct AS { /* utility functions */ void do_action(long); -int get_ev_id(char *); -handlerf get_action_handler(char *); +int get_ev_id(const char *); +handlerf *get_action_handler(const char *); void fill_ev_table(char *); void free_event_list(void); int find_event(long); |