From ab7b063485ec35b2161b9f6931ed113e313d25f5 Mon Sep 17 00:00:00 2001 From: Lammert Bies Date: Mon, 26 Dec 2016 19:27:24 +0100 Subject: [PATCH] Fixed httplib_cry documentation --- doc/APIReference.md | 2 +- doc/api/httplib_cry.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/APIReference.md b/doc/APIReference.md index 067f1b53..1fcca4eb 100644 --- a/doc/APIReference.md +++ b/doc/APIReference.md @@ -24,7 +24,7 @@ LibHTTP is often used as HTTP and HTTPS library inside a larger application. A ### System Functions * [`httplib_check_feature( feature );`](api/httplib_check_feature.md) -* [`httplib_cry( conn, fmt, ... );`](api/httplib_cry.md) +* [`httplib_cry( ctx, conn, fmt, ... );`](api/httplib_cry.md) * [`httplib_get_context( conn );`](api/httplib_get_context.md) * [`httplib_get_builtin_mime_type( file_name );`](api/httplib_get_builtin_mime_type.md) * [`httplib_get_option( ctx, name );`](api/httplib_get_option.md) diff --git a/doc/api/httplib_cry.md b/doc/api/httplib_cry.md index 1c507b79..af7b9079 100644 --- a/doc/api/httplib_cry.md +++ b/doc/api/httplib_cry.md @@ -1,12 +1,13 @@ # LibHTTP API Reference -### `httplib_cry( conn, fmt, ... );` +### `httplib_cry( ctx, conn, fmt, ... );` ### Parameters | Parameter | Type | Description | | :--- | :--- | :--- | -|**`conn`**|`const struct httplib_connection *`|The connection on which a problem occured| +|**`ctx`**|`const struct httplib_context *`|The context where the problem occured| +|**`conn`**|`const struct httplib_connection *`|The connection on which a problem occured, or NULL for a connection independent error| |**`fmt`**|`const char *`|Format string without a line return| |**`...`**|*various*|Parameters depending on the format string|