00001
00002 #ifndef _XDO_CMD_H_
00003 #define _XDO_CMD_H_
00004
00005 #define _GNU_SOURCE 1
00006 #ifndef __USE_BSD
00007 #define __USE_BSD
00008 #endif
00009
00010 #include <getopt.h>
00011 #include <stdlib.h>
00012 #include <stdio.h>
00013 #include "xdo.h"
00014 #include "xdotool.h"
00015
00016 #define HELP_SEE_WINDOW_STACK \
00017 "If no window is given, %1 is used. See WINDOW STACK in xdotool(1)\n"
00018 #define HELP_CHAINING_ENDS \
00019 "This command consumes all arguments after it, so you cannot chain\n" \
00020 " additional commands after it.\n"
00021
00022 extern void consume_args(context_t *context, int argc);
00023 extern void window_list(context_t *context, const char *window_arg,
00024 Window **windowlist_ret, int *nwindows_ret,
00025 const int add_to_list);
00026
00027 extern void window_save(context_t *context, Window window);
00028 extern int is_command(char *cmd);
00029
00030 extern int window_is_valid(context_t *context, const char *window_arg);
00031 extern int window_get_arg(context_t *context, int min_arg, int window_arg_pos,
00032 const char **window_arg);
00033
00034 extern void xdotool_debug(context_t *context, const char *format, ...);
00035 extern void xdotool_output(context_t *context, const char *format, ...);
00036
00037 #endif