You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.1 KiB

  1. /* grilo-net-0.3.vapi generated by vapigen-0.34, do not modify. */
  2. [CCode (cprefix = "GrlNet", gir_namespace = "GrlNet", gir_version = "0.3", lower_case_cprefix = "grl_net_")]
  3. namespace GrlNet {
  4. [CCode (cheader_filename = "net/grl-net.h", type_id = "grl_net_wc_get_type ()")]
  5. public class Wc : GLib.Object {
  6. [CCode (has_construct_function = false)]
  7. public Wc ();
  8. public static GLib.Quark error_quark ();
  9. public void flush_delayed_requests ();
  10. public async bool request_async (string uri, GLib.Cancellable? cancellable, [CCode (array_length_cname = "length", array_length_pos = 2.1, array_length_type = "gsize")] out uint8[] content) throws GLib.Error;
  11. [CCode (finish_name = "grl_net_wc_request_finish")]
  12. [Version (since = "0.2.2")]
  13. public async bool request_with_headers_async (string uri, GLib.Cancellable? cancellable, ..., [CCode (array_length_cname = "length", array_length_pos = 2.1, array_length_type = "gsize")] out uint8[] content) throws GLib.Error;
  14. [CCode (finish_name = "grl_net_wc_request_finish")]
  15. [Version (since = "0.2.2")]
  16. public async bool request_with_headers_hash_async (string uri, GLib.HashTable<string,string>? headers, GLib.Cancellable? cancellable, [CCode (array_length_cname = "length", array_length_pos = 2.1, array_length_type = "gsize")] out uint8[] content) throws GLib.Error;
  17. [Version (since = "0.1.12")]
  18. public void set_cache (bool use_cache);
  19. [Version (since = "0.1.12")]
  20. public void set_cache_size (uint cache_size);
  21. public void set_log_level (uint log_level);
  22. public void set_throttling (uint throttling);
  23. [NoAccessorMethod]
  24. public bool cache { get; set construct; }
  25. [NoAccessorMethod]
  26. public uint cache_size { get; set construct; }
  27. [NoAccessorMethod]
  28. public uint loglevel { get; set; }
  29. [NoAccessorMethod]
  30. public uint throttling { get; set; }
  31. [NoAccessorMethod]
  32. public string user_agent { owned get; set construct; }
  33. }
  34. [CCode (cheader_filename = "net/grl-net.h", cprefix = "GRL_NET_WC_ERROR_", has_type_id = false)]
  35. public enum WcError {
  36. UNAVAILABLE,
  37. PROTOCOL_ERROR,
  38. AUTHENTICATION_REQUIRED,
  39. NOT_FOUND,
  40. CONFLICT,
  41. FORBIDDEN,
  42. NETWORK_ERROR,
  43. PROXY_ERROR,
  44. CANCELLED
  45. }
  46. }