summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-01-25 21:18:05 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-01-25 21:18:05 +0800
commitb34168b57020b13ba030de63273784692b3b555a (patch)
treeb7847143c16d76bdb237d9ae119b0f910b12538f
parent9bf720a3502862e12199654902bb2f480920479b (diff)
Writes/reads to/from a cookie file
-rw-r--r--interchange.cxx5
-rw-r--r--interchange.hxx6
2 files changed, 8 insertions, 3 deletions
diff --git a/interchange.cxx b/interchange.cxx
index 5a574e0..5b39309 100644
--- a/interchange.cxx
+++ b/interchange.cxx
@@ -5,10 +5,11 @@ namespace QInterchange {
static Interchange* interchange;
- Interchange::Interchange(char const* sampleURL, char const* image_Dir, char const* certificate)
+ Interchange::Interchange(char const* sampleURL, char const* image_Dir,
+ char const* cookie, char const* certificate)
{
interchange = this;
- interchange_init(sampleURL, image_Dir, certificate);
+ interchange_init(sampleURL, image_Dir, cookie, certificate);
}
Interchange::~Interchange()
diff --git a/interchange.hxx b/interchange.hxx
index 37b7f5f..361334d 100644
--- a/interchange.hxx
+++ b/interchange.hxx
@@ -17,9 +17,13 @@ namespace QInterchange {
* \brief Constructor.
* \param sampleURL The value of the SAMPLEURL setting in products/variable.txt.
* \param image_Dir The value of the IMAGE_DIR setting in products/variable.txt.
+ * \param certificate Path to the cookie file.
* \param certificate Path to the CA certificate file.
*/
- Interchange(char const* sampleURL, char const* image_Dir, char const* certificate = nullptr);
+ Interchange(char const* sampleURL,
+ char const* image_Dir,
+ char const* cookie = nullptr,
+ char const* certificate = nullptr);
/*!
* \brief Destructor.
*/