libcurl.nut 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. class EasyCurl {
  2. const_CURLAUTH_NONE = 0;
  3. const_CURLAUTH_BASIC = 0;
  4. const_CURLAUTH_DIGEST = 0;
  5. const_CURLAUTH_NEGOTIATE = 0;
  6. /* Deprecated since the advent of CURLAUTH_NEGOTIATE */
  7. const_CURLAUTH_GSSNEGOTIATE = 0;
  8. const_CURLAUTH_NTLM = 0;
  9. const_CURLAUTH_DIGEST_IE = 0;
  10. const_CURLAUTH_NTLM_WB = 0;
  11. const_CURLAUTH_ONLY = 0;
  12. const_CURLAUTH_ANY = 0;
  13. const_CURLAUTH_ANYSAFE = 0;
  14. const_CURLSSH_AUTH_ANY = 0;
  15. const_CURLSSH_AUTH_NONE = 0;
  16. const_CURLSSH_AUTH_PUBLICKEY = 0;
  17. const_CURLSSH_AUTH_PASSWORD = 0;
  18. const_CURLSSH_AUTH_HOST = 0;
  19. const_CURLSSH_AUTH_KEYBOARD = 0;
  20. const_CURLSSH_AUTH_AGENT = 0;
  21. const_CURLSSH_AUTH_DEFAULT = 0;
  22. const_CURLGSSAPI_DELEGATION_NONE = 0;
  23. const_CURLGSSAPI_DELEGATION_POLICY_FLAG = 0;
  24. const_CURLGSSAPI_DELEGATION_FLAG = 0;
  25. const_CURLHEADER_UNIFIED = 0;
  26. const_CURLHEADER_SEPARATE = 0;
  27. /* CURLPROTO_ defines are for the CURLOPT_*PROTOCOLS options */
  28. const_CURLPROTO_HTTP = 0;
  29. const_CURLPROTO_HTTPS = 0;
  30. const_CURLPROTO_FTP = 0;
  31. const_CURLPROTO_FTPS = 0;
  32. const_CURLPROTO_SCP = 0;
  33. const_CURLPROTO_SFTP = 0;
  34. const_CURLPROTO_TELNET = 0;
  35. const_CURLPROTO_LDAP = 0;
  36. const_CURLPROTO_LDAPS = 0;
  37. const_CURLPROTO_DICT = 0;
  38. const_CURLPROTO_FILE = 0;
  39. const_CURLPROTO_TFTP = 0;
  40. const_CURLPROTO_IMAP = 0;
  41. const_CURLPROTO_IMAPS = 0;
  42. const_CURLPROTO_POP3 = 0;
  43. const_CURLPROTO_POP3S = 0;
  44. const_CURLPROTO_SMTP = 0;
  45. const_CURLPROTO_SMTPS = 0;
  46. const_CURLPROTO_RTSP = 0;
  47. const_CURLPROTO_RTMP = 0;
  48. const_CURLPROTO_RTMPT = 0;
  49. const_CURLPROTO_RTMPE = 0;
  50. const_CURLPROTO_RTMPTE = 0;
  51. const_CURLPROTO_RTMPS = 0;
  52. const_CURLPROTO_RTMPTS = 0;
  53. const_CURLPROTO_GOPHER = 0;
  54. const_CURLPROTO_SMB = 0;
  55. const_CURLPROTO_SMBS = 0;
  56. const_CURLPROTO_ALL = 0;
  57. constructor()
  58. {
  59. }
  60. destructor()
  61. {
  62. }
  63. </ cfunc = "CURL *curl_easy_init(void)" />
  64. function easy_init() {}
  65. </ cfunc = "CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...)" />
  66. function easy_setopt(option, ...) {}
  67. </ cfunc = "CURLcode curl_easy_perform(CURL *curl)" />
  68. function perform () {}
  69. </ cfunc = "void curl_easy_cleanup(CURL *curl)" />
  70. function cleanup () {}
  71. </ cfunc = "CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...)" />
  72. function easy_getinfo (info, ...) {}
  73. </ cfunc = "CURL* curl_easy_duphandle(CURL *curl)" />
  74. function easy_duphandle () {}
  75. </ cfunc = "void curl_easy_reset(CURL *curl)" />
  76. function easy_reset () : msg {}
  77. </ cfunc = "CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, size_t *n)" />
  78. function easy_recv () {}
  79. </ cfunc = "CURLcode curl_easy_send(CURL *curl, const void *buffer, size_t buflen, size_t *n)" />
  80. function easy_send (buffer) : int {}
  81. }
  82. dofile("generate-cpp-class-wrapper.nut");
  83. generateCppClassWrapper(EasyCurl, "EasyCurl");