Permalink
Browse files

Net::Curl exports all stuff that examples/simple.p6 needs to run :)

  • Loading branch information...
1 parent c59f4b0 commit 3e0630dffb9056cf5297419573618106a83eb35f @azawawi committed Nov 17, 2012
Showing with 14 additions and 7 deletions.
  1. +14 −7 lib/Net/Curl.pm6
View
@@ -7,24 +7,31 @@ use NativeCall;
constant LIB = 'libcurl.so';
-constant CURLOPT_URL = 10002;
-constant CURLE_OK = 0;
+constant CURLOPT_URL is export = 10002;
+constant CURLE_OK is export = 0;
sub curl_easy_init()
returns OpaquePointer
- is native(LIB) { ... };
+ is native(LIB)
+ is export { ... };
sub curl_easy_cleanup(OpaquePointer)
- is native(LIB) { ... };
+ is native(LIB)
+ is export { ... };
sub curl_easy_setopt(OpaquePointer, int, Str)
- is native(LIB) { ... };
+ is native(LIB)
+ is export { ... };
sub curl_easy_perform(OpaquePointer)
- returns int is native(LIB) { ... };
+ returns int
+ is native(LIB)
+ is export { ... };
sub curl_easy_strerror(int)
- returns Str is native(LIB) { ... };
+ returns Str
+ is native(LIB)
+ is export { ... };

0 comments on commit 3e0630d

Please sign in to comment.