summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortastytea2020-01-24 02:18:24 +0100
committertastytea2020-01-24 02:18:54 +0100
commitc9ea49ed914f908d459941fc8e34580fa9da1877 (patch)
tree7b4569a665510f6f460d43c1aacbe4c538bf7cc7
parent9523de87888c2a2fd6ff978a9e59d5e8f5c2175e (diff)
downloadmastodonpp-c9ea49ed914f908d459941fc8e34580fa9da1877.tar
mastodonpp-c9ea49ed914f908d459941fc8e34580fa9da1877.tar.gz
mastodonpp-c9ea49ed914f908d459941fc8e34580fa9da1877.zip
Enhance documentation for Instance and Connection.
-rw-r--r--include/connection.hpp3
-rw-r--r--include/instance.hpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/include/connection.hpp b/include/connection.hpp
index 957483a..1d3a273 100644
--- a/include/connection.hpp
+++ b/include/connection.hpp
@@ -68,6 +68,9 @@ struct event_type
/*!
* @brief Represents a connection to an instance. Used for requests.
*
+ * Do not make 2 requests with the same Connection at the same time. You can
+ * create as many Connection%s as you want from one Instance.
+ *
* @since 0.1.0
*
* @headerfile connection.hpp mastodonpp/connection.hpp
diff --git a/include/instance.hpp b/include/instance.hpp
index 030ca2a..ca1cfe5 100644
--- a/include/instance.hpp
+++ b/include/instance.hpp
@@ -38,6 +38,10 @@ using std::vector;
/*!
* @brief Holds the access data of an instance.
*
+ * Instance%s are needed to initialize Connection%s. All properties you set
+ * here (with set_proxy(), set_useragent() and so on) are copied to every
+ * Connection you initialize afterwards.
+ *
* @since 0.1.0
*
* @headerfile instance.hpp mastodonpp/instance.hpp