Commit a01b63b3 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Added doc about the required members for spdylay_session_callbacks when

it is passed to spdylay_session_{client,server}_new().
parent 07b02404
...@@ -984,6 +984,11 @@ typedef struct { ...@@ -984,6 +984,11 @@ typedef struct {
* |callbacks|. |user_data| is an arbitrary user supplied data, which * |callbacks|. |user_data| is an arbitrary user supplied data, which
* will be passed to the callback functions. * will be passed to the callback functions.
* *
* Some of the members of |callbacks| can be ``NULL``, but
* :member:`spdylay_session_callbacks.send_callback` and
* :member:`spdylay_session_callbacks.recv_callback` are must be
* specified.
*
* This function returns 0 if it succeeds, or one of the following * This function returns 0 if it succeeds, or one of the following
* negative error codes: * negative error codes:
* *
...@@ -1008,6 +1013,11 @@ int spdylay_session_client_new(spdylay_session **session_ptr, ...@@ -1008,6 +1013,11 @@ int spdylay_session_client_new(spdylay_session **session_ptr,
* |callbacks|. |user_data| is an arbitrary user supplied data, which * |callbacks|. |user_data| is an arbitrary user supplied data, which
* will be passed to the callback functions. * will be passed to the callback functions.
* *
* Some of the members of |callbacks| can be ``NULL``, but
* :member:`spdylay_session_callbacks.send_callback` and
* :member:`spdylay_session_callbacks.recv_callback` are must be
* specified.
*
* This function returns 0 if it succeeds, or one of the following * This function returns 0 if it succeeds, or one of the following
* negative error codes: * negative error codes:
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment