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
|
/**
* vimb - a webkit based vim like browser.
*
* Copyright (C) 2012-2018 Daniel Carl
*
* This program 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 3 of the License, or
* (at your option) any later version.
*
* This program 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 program. If not, see http://www.gnu.org/licenses/.
*/
#ifndef _COMMAND_H
#define _COMMAND_H
#include <gtk/gtk.h>
#include "main.h"
enum {
COMMAND_YANK_ARG,
COMMAND_YANK_URI,
COMMAND_YANK_SELECTION
};
enum {
COMMAND_SAVE_CURRENT,
COMMAND_SAVE_URI
};
#ifdef FEATURE_QUEUE
enum {
COMMAND_QUEUE_PUSH,
COMMAND_QUEUE_UNSHIFT,
COMMAND_QUEUE_POP,
COMMAND_QUEUE_CLEAR
};
#endif
typedef void (*PostEditFunc)(const char *, Client *, gpointer);
gboolean command_search(Client *c, const Arg *arg, bool commit);
gboolean command_yank(Client *c, const Arg *arg, char buf);
gboolean command_save(Client *c, const Arg *arg);
#ifdef FEATURE_QUEUE
gboolean command_queue(Client *c, const Arg *arg);
#endif
gboolean command_spawn_editor(Client *c, const Arg *arg, PostEditFunc posteditfunc, gpointer data);
#endif /* end of include guard: _COMMAND_H */
|