libxdo
 All Data Structures Files Functions Variables Typedefs
xdo_cmd.h
1 
2 #ifndef _XDO_CMD_H_
3 #define _XDO_CMD_H_
4 
5 #define _GNU_SOURCE 1
6 #ifndef __USE_BSD
7 #define __USE_BSD /* for strdup on linux/glibc */
8 #endif /* __USE_BSD */
9 
10 #include <getopt.h>
11 #include <stdlib.h>
12 #include <stdio.h>
13 #include "xdo.h"
14 #include "xdotool.h"
15 
16 #define HELP_SEE_WINDOW_STACK \
17  "If no window is given, %1 is used. See WINDOW STACK in xdotool(1)\n"
18 #define HELP_CHAINING_ENDS \
19  "This command consumes all arguments after it, so you cannot chain\n" \
20  " additional commands after it.\n"
21 
22 extern void consume_args(context_t *context, int argc);
23 extern void window_list(context_t *context, const char *window_arg,
24  Window **windowlist_ret, int *nwindows_ret,
25  const int add_to_list);
26 
27 extern void window_save(context_t *context, Window window);
28 extern int is_command(char *cmd);
29 
30 extern int window_is_valid(context_t *context, const char *window_arg);
31 extern int window_get_arg(context_t *context, int min_arg, int window_arg_pos,
32  const char **window_arg);
33 
34 extern void xdotool_debug(context_t *context, const char *format, ...);
35 extern void xdotool_output(context_t *context, const char *format, ...);
36 
37 #endif /* _XDO_CMD_H_ */
Definition: xdotool.h:23