octopus client: return trigger id to caller in oct_trigger_existing_and_watch()
authorSimon Gerber <simon.gerber@inf.ethz.ch>
Wed, 21 Sep 2016 16:42:25 +0000 (18:42 +0200)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Wed, 21 Sep 2016 16:42:25 +0000 (18:42 +0200)
Signed-off-by: Simon Gerber <simon.gerber@inf.ethz.ch>

lib/octopus/client/trigger.c

index 695837b..ee9ba42 100644 (file)
@@ -150,6 +150,11 @@ errval_t oct_trigger_existing_and_watch(const char* query,
         break;
     }
 
+    // Return trigger id to caller, if requested
+    if (tid) {
+        *tid = reply.tid;
+    }
+
 out:
     oct_free_names(names, len);