eliminate-accessor-apis.patch
authorAndy Green <andy@warmcat.com>
Thu, 11 Nov 2010 12:29:23 +0000 (12:29 +0000)
committerAndy Green <andy@warmcat.com>
Thu, 11 Nov 2010 12:29:23 +0000 (12:29 +0000)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/libwebsockets.h
lib/parsers.c

index f443d8f..02c2397 100644 (file)
@@ -79,11 +79,6 @@ extern int libwebsocket_create_server(int port,
 extern int
 libwebsocket_write(struct libwebsocket *, unsigned char *buf, size_t len,
                                     enum libwebsocket_write_protocol protocol);
-extern const char *
-libwebsocket_get_uri(struct libwebsocket *wsi);
-
-extern const char *
-libwebsocket_get_protocol(struct libwebsocket *wsi);
 
 extern int
 libwebsockets_serve_http_file(struct libwebsocket *wsi, const char * file,
index c3696a7..430507e 100644 (file)
@@ -33,36 +33,6 @@ const struct lws_tokens lws_tokens[WSI_TOKEN_COUNT] = {
        { "\x0d\x0a", 2 },
 };
 
-/**
- * libwebsocket_get_uri() - Return the URI path being requested
- * @wsi:       Websocket instance
- * 
- *     The user code can find out the local path being opened from this
- *     call, it's valid on HTTP or established websocket connections.
- *     If the client opened the connection with "http://127.0.0.1/xyz/abc.d"
- *     then this call will return a pointer to "/xyz/abc.d"
- */
-
-const char * libwebsocket_get_uri(struct libwebsocket *wsi)
-{
-       return wsi->utf8_token[WSI_TOKEN_GET_URI].token;
-}
-
-/**
- * libwebsocket_get_protocol() - Return the list of protocols being requested
- * @wsi:       Websocket instance
- * 
- *     The user code can find out which protocols the client is asking to
- *     work with by calling this.  It may return NULL if there was no
- *     protocol header specified.
- */
-
-const char * libwebsocket_get_protocol(struct libwebsocket *wsi)
-{
-       return wsi->utf8_token[WSI_TOKEN_PROTOCOL].token;
-}
-
-
 int libwebsocket_parse(struct libwebsocket *wsi, unsigned char c)
 {
        int n;