aboutsummaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
Diffstat (limited to 'action.h')
-rw-r--r--action.h45
1 files changed, 22 insertions, 23 deletions
diff --git a/action.h b/action.h
index 944f434..13e9a58 100644
--- a/action.h
+++ b/action.h
@@ -1,8 +1,8 @@
/*
- * (C)opyright MMVII Robert Manea <rob dot manea at gmail dot com>
- * See LICENSE file for license details.
- *
- */
+* (C)opyright MMVII Robert Manea <rob dot manea at gmail dot com>
+* See LICENSE file for license details.
+*
+*/
#define MAXEVENTS 32
#define MAXACTIONS 256
@@ -13,36 +13,36 @@ typedef struct AS As;
typedef struct EV Ev;
enum ev_id {
- /* internal events, should not be used by the user */
- exposetitle, exposeslave,
- /* startup, exit */
- onstart, onexit,
- /* mouse buttons */
- button1, button2, button3, button4, button5,
- /* entering/leaving windows */
- entertitle, leavetitle, enterslave, leaveslave,
- /* external signals */
- sigusr1, sigusr2
+ /* internal events, should not be used by the user */
+ exposetitle, exposeslave,
+ /* startup, exit */
+ onstart, onexit,
+ /* mouse buttons */
+ button1, button2, button3, button4, button5,
+ /* entering/leaving windows */
+ entertitle, leavetitle, enterslave, leaveslave,
+ /* external signals */
+ sigusr1, sigusr2
};
struct event_lookup {
- char *name;
- int id;
+ char *name;
+ int id;
};
struct action_lookup {
- char *name;
- int (*handler)(char **);
+ char *name;
+ int (*handler)(char **);
};
struct AS {
- char *options[MAXOPTIONS];
- int (*handler)(char **);
+ char *options[MAXOPTIONS];
+ int (*handler)(char **);
};
struct EV {
- int isset;
- As *action[MAXACTIONS];
+ int isset;
+ As *action[MAXACTIONS];
};
extern Ev ev_table[MAXEVENTS];
@@ -75,4 +75,3 @@ int a_raise(char **);
int a_lower(char **);
int a_scrollhome(char **);
-