加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
xdo_cmd.h 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
aldot 提交于 2021-10-24 07:49 . Topic silence warnings (#364)
#ifndef _XDO_CMD_H_
#define _XDO_CMD_H_
#define _GNU_SOURCE 1
#ifndef __USE_BSD
#define __USE_BSD /* for strdup on linux/glibc */
#endif /* __USE_BSD */
#include <getopt.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "xdo.h"
#include "xdotool.h"
#ifdef __cplusplus
extern "C" {
#endif
#define HELP_SEE_WINDOW_STACK \
"If no window is given, %1 is used. See WINDOW STACK in xdotool(1)\n"
#define HELP_CHAINING_ENDS \
"This command consumes all arguments after it, so you cannot chain\n" \
" additional commands after it.\n"
extern void consume_args(context_t *context, int argc);
extern void window_list(context_t *context, const char *window_arg,
Window **windowlist_ret, int *nwindows_ret,
const int add_to_list);
extern void window_save(context_t *context, Window window);
extern int is_command(char *cmd);
extern int window_get_arg(context_t *context, int min_arg, int window_arg_pos,
const char **window_arg);
extern int context_execute(context_t *);
extern void xdotool_debug(context_t *context, const char *format, ...);
extern void xdotool_output(context_t *context, const char *format, ...);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* _XDO_CMD_H_ */
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化