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