]> icculus.org git repositories - dana/openbox.git/blob - openbox/actions/breakchroot.c
ANSI function declarations, ie () -> (void)
[dana/openbox.git] / openbox / actions / breakchroot.c
1 #include "openbox/actions.h"
2 #include "openbox/keyboard.h"
3
4 static gboolean run_func(ObActionsData *data, gpointer options);
5
6 void action_breakchroot_startup(void)
7 {
8     actions_register("BreakChroot",
9                      NULL, NULL,
10                      run_func,
11                      NULL, NULL);
12 }
13
14 /* Always return FALSE because its not interactive */
15 static gboolean run_func(ObActionsData *data, gpointer options)
16 {
17     /* break out of one chroot */
18     keyboard_reset_chains(1);
19
20     return FALSE;
21 }