From 3c114610491c71e4b5294aaaf9e12a897094d9d6 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 16 Jan 2013 11:45:38 +0800 Subject: [PATCH] add new context arg to libwebsockets_serve_http_file Signed-off-by: Andy Green --- lib/parsers.c | 1 + libwebsockets-api-doc.html | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/parsers.c b/lib/parsers.c index 4da1cff..3d2139c 100644 --- a/lib/parsers.c +++ b/lib/parsers.c @@ -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 diff --git a/libwebsockets-api-doc.html b/libwebsockets-api-doc.html index ed43e09..927573a 100644 --- a/libwebsockets-api-doc.html +++ b/libwebsockets-api-doc.html @@ -417,6 +417,8 @@ packet while not burdening the user code with any protocol knowledge. const char * content_type)

Arguments

+
context +
libwebsockets context
wsi
Websocket instance (available from user callback)
file -- 2.7.4