summary refs log tree commit diff stats
path: root/examples/curlex.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2010-02-28 23:04:18 +0100
committerAndreas Rumpf <rumpf_a@web.de>2010-02-28 23:04:18 +0100
commitb559285b78bfa76533d25e77f3f61cab2427bb03 (patch)
treef418f489f307f825a934cea878921f65c0114561 /examples/curlex.nim
parentddb718548278290a1c25c1bbfba82bc5581457a7 (diff)
downloadNim-b559285b78bfa76533d25e77f3f61cab2427bb03.tar.gz
examples/lib use the new wrappers
Diffstat (limited to 'examples/curlex.nim')
-rwxr-xr-xexamples/curlex.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/curlex.nim b/examples/curlex.nim
index 7f666f775..1d0f18ddd 100755
--- a/examples/curlex.nim
+++ b/examples/curlex.nim
@@ -1,10 +1,10 @@
 import 
   libcurl
 
-var hCurl = curl_easy_init()
+var hCurl = easy_init()
 if hCurl != nil: 
-  discard curl_easy_setopt(hCurl, CURLOPT_VERBOSE, True)
-  discard curl_easy_setopt(hCurl, CURLOPT_URL, "http://force7.de/nimrod")
-  discard curl_easy_perform(hCurl)
-  curl_easy_cleanup(hCurl)
+  discard easy_setopt(hCurl, OPT_VERBOSE, True)
+  discard easy_setopt(hCurl, OPT_URL, "http://force7.de/nimrod")
+  discard easy_perform(hCurl)
+  easy_cleanup(hCurl)