Add matrix_http_api_new() to the documentation
This commit is contained in:
parent
6c5f932dd8
commit
2215f7c5b3
@ -53,6 +53,7 @@ matrix_api_get_type
|
|||||||
|
|
||||||
<SECTION>
|
<SECTION>
|
||||||
<FILE>matrix-http-api</FILE>
|
<FILE>matrix-http-api</FILE>
|
||||||
|
matrix_http_api_new
|
||||||
matrix_http_api_get_validate_certificate
|
matrix_http_api_get_validate_certificate
|
||||||
matrix_http_api_set_validate_certificate
|
matrix_http_api_set_validate_certificate
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
|
@ -255,6 +255,15 @@ matrix_http_api_init(MatrixHTTPAPI *api)
|
|||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* matrix_http_api_new:
|
||||||
|
* @base_url: the URL to use as the API endpoint
|
||||||
|
* @token: (allow-none): an authorization token to use. If %NULL,
|
||||||
|
* requests that need authentication will fail
|
||||||
|
*
|
||||||
|
* Create a new #MatrixHTTPAPI object with the specified base URL, and
|
||||||
|
* an optional authorization token
|
||||||
|
*/
|
||||||
MatrixHTTPAPI *
|
MatrixHTTPAPI *
|
||||||
matrix_http_api_new(const gchar *base_url, const gchar *token)
|
matrix_http_api_new(const gchar *base_url, const gchar *token)
|
||||||
{
|
{
|
||||||
|
@ -49,6 +49,7 @@ void matrix_http_api_set_validate_certificate(MatrixHTTPAPI *api,
|
|||||||
gboolean validate_certificate);
|
gboolean validate_certificate);
|
||||||
gboolean matrix_http_api_get_validate_certificate(MatrixHTTPAPI *api);
|
gboolean matrix_http_api_get_validate_certificate(MatrixHTTPAPI *api);
|
||||||
|
|
||||||
|
MatrixHTTPAPI *matrix_http_api_new(const gchar *base_url, const gchar *token);
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __MATRIX_HTTP_API_H__ */
|
#endif /* __MATRIX_HTTP_API_H__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user