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 extern char *PROGRAM;
00017
00018 #define HELP_SEE_WINDOW_STACK \
00019 "If no window is given, %1 is used. See WINDOW STACK in xdotool(1)\n"
00020 #define HELP_CHAINING_ENDS \
00021 "This command consumes all arguments after it, so you cannot chain\n" \
00022 " additional commands after it.\n"
00023
00024
00025 extern void consume_args(context_t *context, int argc);
00026 extern void window_list(context_t *context, const char *window_arg,
00027 Window **windowlist_ret, int *nwindows_ret,
00028 const int add_to_list);
00029
00030 extern void window_save(context_t *context, Window window);
00031 extern int is_command(char *cmd);
00032
00033 extern int window_is_valid(context_t *context, const char *window_arg);
00034 extern int window_get_arg(context_t *context, int min_arg, int window_arg_pos,
00035 const char **window_arg);
00036
00037 #endif