From a4e0b98c301697cf3a4664b31bee1dafd11511a9 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 4 Jun 2007 17:50:01 +0200 Subject: [PATCH] Minor enhancements of STATUS command. --- submit/PROTOCOL | 11 +++++++++++ submit/commands.c | 2 ++ 2 files changed, 13 insertions(+) diff --git a/submit/PROTOCOL b/submit/PROTOCOL index 37953b8..30ae7a7 100644 --- a/submit/PROTOCOL +++ b/submit/PROTOCOL @@ -43,6 +43,17 @@ Submit reply after data: (only status) +Status request: + + !STATUS + +Status reply: + + task status objects defined below with the following added: + (T + Aallowed_extension + ) + Task status objects ~~~~~~~~~~~~~~~~~~~ diff --git a/submit/commands.c b/submit/commands.c index 93f5b83..595db77 100644 --- a/submit/commands.c +++ b/submit/commands.c @@ -108,6 +108,8 @@ cmd_status(struct conn *c) struct odes *to = task_status_find_task(c, t, 1); struct odes *tr = obj_add_son(c->reply, 'T' + OBJ_ATTR_SON); copy_attrs(tr, to); + CLIST_FOR_EACH(simp_node *, x, *t->extensions) + obj_add_attr(tr, 'A', x->s); CLIST_FOR_EACH(simp_node *, p, t->parts) { struct odes *po = task_status_find_part(to, p->s, 1); -- 2.39.5