mastorss/src/rss2mastodon.hpp

20 lines
568 B
C++
Raw Normal View History

#ifndef RSS2MASTODON_HPP
#define RSS2MASTODON_HPP
2018-01-26 02:33:58 +01:00
#include <cstdint>
#include <string>
#include <vector>
#include <boost/property_tree/ptree.hpp>
namespace pt = boost::property_tree;
using std::string;
2018-01-26 03:35:52 +01:00
void read_config(pt::ptree &config, const string &profile, string &instance, string &access_token, string &feedurl);
2018-01-26 02:33:58 +01:00
std::vector<string> parse_website(const string &profile, const string &xml);
// http.cpp
2018-02-10 10:01:17 +01:00
const std::uint16_t http_get(const string &feedurl,
2018-01-26 02:33:58 +01:00
string &answer, const string &useragent = "");
#endif // RSS2MASTODON_HPP