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 extern char *PROGRAM;
17 
18 #define HELP_SEE_WINDOW_STACK \
19  "If no window is given, %1 is used. See WINDOW STACK in xdotool(1)\n"
20 #define HELP_CHAINING_ENDS \
21  "This command consumes all arguments after it, so you cannot chain\n" \
22  " additional commands after it.\n"
23 
24 /* implementation is in xdotool.c */
25 extern void consume_args(context_t *context, int argc);
26 extern void window_list(context_t *context, const char *window_arg,
27  Window **windowlist_ret, int *nwindows_ret,
28  const int add_to_list);
29 
30 extern void window_save(context_t *context, Window window);
31 extern int is_command(char *cmd);
32 
33 extern int window_is_valid(context_t *context, const char *window_arg);
34 extern int window_get_arg(context_t *context, int min_arg, int window_arg_pos,
35  const char **window_arg);
36 
37 #endif /* _XDO_CMD_H_ */