summaryrefslogtreecommitdiff
path: root/src/actions.h
blob: e0b2cb8f5d08552643c5dcae204a2bc518ccf0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* Prototypes of all actions that can be performed with keystrokes.
 * Copyright (C) 2000, 2001 Shawn Betts
 *
 * This file is part of ratpoison.
 *
 * ratpoison is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * ratpoison is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this software; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307 USA
 */

#ifndef _RATPOISON_ACTIONS_H
#define _RATPOISON_ACTIONS_H 1

#define MAX_COMMAND_LENGTH 100
#define MAX_ARGS_LENGTH 100

typedef struct user_command user_command;

enum argtype { arg_VOID, arg_STRING, arg_NUMBER };

struct
user_command
{
  char *name;
  void (*func)(void *);
  int argtype;
};

void spawn(void *data);
void command (char *data);

void cmd_newwm(void *which);
void cmd_generate (void *data);
void cmd_abort (void *data);
void cmd_exec (void *data);
void cmd_colon (void *data);
void cmd_kill (void *data);
void cmd_delete (void *data);
void cmd_rename (void *data);
void cmd_select (void *data);
void cmd_last (void *data);
void cmd_next (void *data);
void cmd_next_frame (void *data);
void cmd_prev (void *data);
void cmd_prev_frame (void *data);
void cmd_windows (void *data);
void cmd_other (void *data);
void cmd_clock (void *data);
void cmd_version (void *data);
void cmd_unimplemented (void *data);
void cmd_bind (void* data);
void cmd_source (void* data);
void cmd_maximize (void *data);
void cmd_escape (void *data);
void cmd_echo (void *data);
void cmd_h_split (void *data);
void cmd_v_split (void *data);
void cmd_only (void *data);
void cmd_remove (void *data);
void cmd_banish (void *data);
void cmd_curframe (void *data);
void cmd_help (void *data);
void cmd_quit(void *data);

/* void cmd_xterm (void *data); */

void initialize_default_keybindings (void);
rp_action* find_keybinding (int keysym, int state);

#endif /* ! _RATPOISON_ACTIONS_H */