From fad25bd5b021873dd27a0e1e84a0150538549d2d Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 16 Jan 2020 19:13:36 +0100 Subject: [PATCH] 2020-01-16 --- docs/helpers_8hpp_source.html | 17 +++++++++-------- docs/index.html | 4 ++-- docs/mastodonpp_8hpp_source.html | 8 ++++---- docs/structmastodonpp_1_1answer__type.html | 2 ++ 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/docs/helpers_8hpp_source.html b/docs/helpers_8hpp_source.html index 94824e1..e263849 100644 --- a/docs/helpers_8hpp_source.html +++ b/docs/helpers_8hpp_source.html @@ -92,16 +92,17 @@ $(function() {
20 #include <string>
21 #include <string_view>
22 
-
23 namespace mastodonpp
-
24 {
-
25 
-
26 using std::string;
+
24 
+
25 namespace mastodonpp
+
26 {
27 
-
43 string unescape_html(string html);
-
44 
-
45 } // namespace mastodonpp
+
28 using std::string;
+
29 
+
45 string unescape_html(string html);
46 
-
47 #endif // MASTODONPP_HELPERS_HPP
+
47 } // namespace mastodonpp
+
48 
+
49 #endif // MASTODONPP_HELPERS_HPP
string unescape_html(string html)
Replaces HTML entities with UTF-8 characters.
Definition: helpers.cpp:40
C++ wrapper for the Mastodon API.
Definition: api.cpp:19
diff --git a/docs/index.html b/docs/index.html index a1e5732..4759948 100644 --- a/docs/index.html +++ b/docs/index.html @@ -81,7 +81,7 @@ Example
int main()
{
-
mastodonpp::Instance instance{"example.com", ""};
+
mastodonpp::Instance instance{"example.com", {}};
std::cout << "Maximum characters per post: "
<< instance.get_max_chars() << std::endl;
@@ -104,7 +104,7 @@ Exceptions

Any unrecoverable libcurl error will be thrown as a mastodonpp::CURLException. Network errors will not be thrown, but reported via the return value.

Thread safety

-

The first time you construct an Instance or Connection , curl_global_init(3) is called. When the last Instance or Connection is destroyed, curl_global_cleanup(3) is called. Both are not thread safe.

+

The first time you construct an Instance, curl_global_init(3) is called. When the last Instance is destroyed, curl_global_cleanup(3) is called. Both are not thread safe.

Do not make 2 requests with the same Connection at the same time. You can create as many Connections as you want from one Instance.

If you are using libcurl with OpenSSL before 1.1.0, please read libcurl-thread(3).

diff --git a/docs/mastodonpp_8hpp_source.html b/docs/mastodonpp_8hpp_source.html index f4b0a7f..42e944f 100644 --- a/docs/mastodonpp_8hpp_source.html +++ b/docs/mastodonpp_8hpp_source.html @@ -96,10 +96,10 @@ $(function() {
24 #include "instance.hpp"
25 #include "types.hpp"
26 
-
117 namespace mastodonpp
-
118 {} // namespace mastodonpp
-
119 
-
120 #endif // MASTODONPP_HPP
+
115 namespace mastodonpp
+
116 {} // namespace mastodonpp
+
117 
+
118 #endif // MASTODONPP_HPP
C++ wrapper for the Mastodon API.
Definition: api.cpp:19
diff --git a/docs/structmastodonpp_1_1answer__type.html b/docs/structmastodonpp_1_1answer__type.html index c58377c..97a5aa1 100644 --- a/docs/structmastodonpp_1_1answer__type.html +++ b/docs/structmastodonpp_1_1answer__type.html @@ -78,6 +78,8 @@ $(function() {

Return type for Requests. More...

+ +

#include <mastodonpp/types.hpp>

Public Member Functions