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
hello3: Add mutebug
[src/app-framework-binder.git]
/
bindings
/
samples
/
hello3.c
diff --git
a/bindings/samples/hello3.c
b/bindings/samples/hello3.c
index
99a3582
..
b50ea46
100644
(file)
--- a/
bindings/samples/hello3.c
+++ b/
bindings/samples/hello3.c
@@
-539,6
+539,11
@@
static void mute(afb_req_t request)
{
}
{
}
+static void mutebug(afb_req_t request)
+{
+ afb_req_addref(request);
+}
+
void queue_cb(int signum, void *arg)
{
afb_req_t request = arg;
void queue_cb(int signum, void *arg)
{
afb_req_t request = arg;
@@
-741,6
+746,7
@@
static const struct afb_verb_v3 verbs[]= {
{ .verb="locale", .callback=locale},
{ .verb="api", .callback=api},
{ .verb="mute", .callback=mute},
{ .verb="locale", .callback=locale},
{ .verb="api", .callback=api},
{ .verb="mute", .callback=mute},
+ { .verb="mutebug", .callback=mutebug},
{ .verb="queue", .callback=queue},
{ .verb="settings", .callback=settings},
{ .verb=NULL}
{ .verb="queue", .callback=queue},
{ .verb="settings", .callback=settings},
{ .verb=NULL}