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.

43 lines
1.8 KiB

  1. /* grilo-net-0.3.vapi generated by vapigen-0.30, 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, out unowned string content, out size_t length) throws GLib.Error;
  11. [CCode (finish_name = "grl_net_wc_request_finish")]
  12. public async bool request_with_headers_async (string uri, GLib.Cancellable? cancellable, ..., out unowned string content, out size_t length) throws GLib.Error;
  13. [CCode (finish_name = "grl_net_wc_request_finish")]
  14. public async bool request_with_headers_hash_async (string uri, GLib.HashTable<string,string>? headers, GLib.Cancellable? cancellable, out unowned string content, out size_t length) throws GLib.Error;
  15. public void set_cache (bool use_cache);
  16. public void set_cache_size (uint cache_size);
  17. public void set_log_level (uint log_level);
  18. public void set_throttling (uint throttling);
  19. [NoAccessorMethod]
  20. public bool cache { get; set construct; }
  21. [NoAccessorMethod]
  22. public uint cache_size { get; set construct; }
  23. [NoAccessorMethod]
  24. public uint loglevel { get; set; }
  25. [NoAccessorMethod]
  26. public uint throttling { get; set; }
  27. [NoAccessorMethod]
  28. public string user_agent { owned get; set construct; }
  29. }
  30. [CCode (cheader_filename = "net/grl-net.h", cprefix = "GRL_NET_WC_ERROR_", has_type_id = false)]
  31. public enum WcError {
  32. UNAVAILABLE,
  33. PROTOCOL_ERROR,
  34. AUTHENTICATION_REQUIRED,
  35. NOT_FOUND,
  36. CONFLICT,
  37. FORBIDDEN,
  38. NETWORK_ERROR,
  39. PROXY_ERROR,
  40. CANCELLED
  41. }
  42. }