aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
-rw-r--r--actions.c8
-rw-r--r--gluten.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/actions.c b/actions.c
index b1d3791..946d9fc 100644
--- a/actions.c
+++ b/actions.c
@@ -193,6 +193,14 @@ int do_actions(struct action actions[], unsigned int n_actions, int pid,
if (send_target(&resp, notifyfd) == -1)
return -1;
break;
+ case A_RETURN:
+ resp.id = id;
+ resp.flags = 0;
+ resp.error = 0;
+ resp.val = actions[i].ret.value;
+ if (send_target(&resp, notifyfd) == -1)
+ return -1;
+ break;
default:
fprintf(stderr, "unknow action %d \n", actions[i].type);
}
diff --git a/gluten.h b/gluten.h
index b20cab6..85254e9 100644
--- a/gluten.h
+++ b/gluten.h
@@ -49,6 +49,7 @@ enum action_type {
A_CONT,
A_INJECT,
A_INJECT_A,
+ A_RETURN,
};
struct act_call {