Imported Upstream version 1.0.0
[platform/upstream/nghttp2.git] / doc / nghttp2_option_new.rst
1
2 nghttp2_option_new
3 ==================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: int nghttp2_option_new(nghttp2_option **option_ptr)
11
12     
13     Initializes *\*option_ptr* with default values.
14     
15     When the application finished using this object, it can use
16     `nghttp2_option_del()` to free its memory.
17     
18     This function returns 0 if it succeeds, or one of the following
19     negative error codes:
20     
21     :macro:`NGHTTP2_ERR_NOMEM`
22         Out of memory.