Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-proto-ws: Serialize incoming message
[src/app-framework-binder.git]
/
src
/
afb-stub-ws.c
diff --git
a/src/afb-stub-ws.c
b/src/afb-stub-ws.c
index
a41a9b0
..
7ec2d63
100644
(file)
--- a/
src/afb-stub-ws.c
+++ b/
src/afb-stub-ws.c
@@
-235,6
+235,7
@@
static struct client_event *client_event_search(struct afb_stub_ws *stubws, uint
while (ev != NULL && (ev->id != eventid || 0 != strcmp(afb_evt_event_x2_fullname(ev->event), name)))
ev = ev->next;
while (ev != NULL && (ev->id != eventid || 0 != strcmp(afb_evt_event_x2_fullname(ev->event), name)))
ev = ev->next;
+ DEBUG("searching event %s[%d]: %s", name, eventid, ev ? "found" : "not found");
return ev;
}
return ev;
}
@@
-645,9
+646,9
@@
static void on_hangup(void *closure)
}
}
}
}
-static int enqueue_processing(void (*callback)(int signum, void* arg), void *arg)
+static int enqueue_processing(
struct afb_proto_ws *proto,
void (*callback)(int signum, void* arg), void *arg)
{
{
- return jobs_queue(
NULL
, 0, callback, arg);
+ return jobs_queue(
proto
, 0, callback, arg);
}
/*****************************************************/
}
/*****************************************************/