add new context arg to libwebsockets_serve_http_file
authorAndy Green <andy.green@linaro.org>
Wed, 16 Jan 2013 03:45:38 +0000 (11:45 +0800)
committerAndy Green <andy.green@linaro.org>
Wed, 16 Jan 2013 03:45:38 +0000 (11:45 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/parsers.c
libwebsockets-api-doc.html

index 4da1cff..3d2139c 100644 (file)
@@ -1979,6 +1979,7 @@ send_raw:
 
 /**
  * libwebsockets_serve_http_file() - Send a file back to the client using http
+ * @context:           libwebsockets context
  * @wsi:               Websocket instance (available from user callback)
  * @file:              The file to issue over http
  * @content_type:      The http content type, eg, text/html
index ed43e09..927573a 100644 (file)
@@ -417,6 +417,8 @@ packet while not burdening the user code with any protocol knowledge.
 <i>const char *</i> <b>content_type</b>)
 <h3>Arguments</h3>
 <dl>
+<dt><b>context</b>
+<dd>libwebsockets context
 <dt><b>wsi</b>
 <dd>Websocket instance (available from user callback)
 <dt><b>file</b>