summaryrefslogtreecommitdiffstats
path: root/lib/Utils/abrt_xmlrpc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Utils/abrt_xmlrpc.cpp')
-rw-r--r--lib/Utils/abrt_xmlrpc.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Utils/abrt_xmlrpc.cpp b/lib/Utils/abrt_xmlrpc.cpp
index 7205316c..ae1d098e 100644
--- a/lib/Utils/abrt_xmlrpc.cpp
+++ b/lib/Utils/abrt_xmlrpc.cpp
@@ -5,6 +5,16 @@
#include "abrt_xmlrpc.h"
#include "ABRTException.h"
+CURL* xcurl_easy_init()
+{
+ CURL* curl = curl_easy_init();
+ if (!curl)
+ {
+ error_msg_and_die("Can't create curl handle");
+ }
+ return curl;
+}
+
void throw_if_xml_fault_occurred(xmlrpc_env *env)
{
if (env->fault_occurred)