Update documentation for afb_req_get_uid
authorJosé Bollo <jose.bollo@iot.bzh>
Wed, 11 Oct 2017 08:26:07 +0000 (10:26 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 11 Oct 2017 08:26:07 +0000 (10:26 +0200)
Change-Id: I984824b8ffc22783c1e6b63ee03ba23d5b7e2954
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
docs/afb-binding-references.md

index 185f3ef..0e30ffe 100644 (file)
@@ -716,8 +716,15 @@ int afb_req_has_permission(struct afb_req req, const char *permission);
  *
  * The returned value if not NULL must be freed by the caller
  */
-inline char *afb_req_get_application_id(struct afb_req req);
+char *afb_req_get_application_id(struct afb_req req);
 
+/*
+ * Get the user identifier (UID) of the client application for the
+ * request 'req'.
+ *
+ * Returns -1 when the application can not be identified.
+ */
+int afb_req_get_uid(struct afb_req req);
 ```
 
 ## Logging macros