version 1.15, 2016/10/16 19:15:02 |
version 1.16, 2016/10/16 19:36:37 |
|
|
const char *name; |
const char *name; |
struct cmd_find_state fs; |
struct cmd_find_state fs; |
struct hook *hook; |
struct hook *hook; |
struct cmdq_item *new_item, *loop; |
struct cmdq_item *new_item; |
|
|
name = notify_hooks[ne->type]; |
name = notify_hooks[ne->type]; |
if (name == NULL) |
if (name == NULL) |
|
|
log_debug("notify hook %s", name); |
log_debug("notify hook %s", name); |
|
|
new_item = cmdq_get_command(hook->cmdlist, &fs, NULL, CMDQ_NOHOOKS); |
new_item = cmdq_get_command(hook->cmdlist, &fs, NULL, CMDQ_NOHOOKS); |
|
cmdq_format(new_item, "hook", "%s", name); |
for (loop = new_item; loop != NULL; loop = loop->next) |
|
loop->hook = xstrdup(name); |
|
|
|
cmdq_insert_after(item, new_item); |
cmdq_insert_after(item, new_item); |
} |
} |
|
|