export-libwebsocket_service_fd-api.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
index 586d603..83505c8 100644
--- a/lib/libwebsockets.c
+++ b/lib/libwebsockets.c
@@ -133,7 +133,19 @@
 	free(wsi);
 }
 
-static int
+
+/**
+ * libwebsocket_service_fd() - Service polled socket with something waiting
+ * @this:	Websocket context
+ * @pollfd:	The pollfd entry describing the socket fd and which events
+ * 		happened.
+ *
+ *	This function closes any active connections and then frees the
+ *	context.  After calling this, any further use of the context is
+ *	undefined.
+ */
+
+int
 libwebsocket_service_fd(struct libwebsocket_context *this,
 							  struct pollfd *pollfd)
 {