httpseverywhere.vapi 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /* httpseverywhere.vapi generated by valac 0.26.1, do not modify. */
  2. namespace HTTPSEverywhere {
  3. [CCode (cheader_filename = "httpseverywhere.h")]
  4. public class Ruleset : GLib.Object {
  5. public Ruleset ();
  6. public void add_exclusion (string exclusion);
  7. public void add_rule (string from, string to);
  8. public void add_target (string host);
  9. public Ruleset.from_xml (Xml.Node* root) throws HTTPSEverywhere.RulesetError;
  10. public string rewrite (string url);
  11. public Gee.ArrayList<HTTPSEverywhere.Target> targets { get; }
  12. }
  13. [CCode (cheader_filename = "httpseverywhere.h")]
  14. public class Target : GLib.Object {
  15. public Target (string host);
  16. public bool matches (string url);
  17. public string host { get; set; }
  18. }
  19. [CCode (cheader_filename = "httpseverywhere.h")]
  20. public errordomain RulesetError {
  21. PARSE_ERROR
  22. }
  23. [CCode (cheader_filename = "httpseverywhere.h")]
  24. public static bool has_https (string url);
  25. [CCode (cheader_filename = "httpseverywhere.h")]
  26. public static void init ();
  27. [CCode (cheader_filename = "httpseverywhere.h")]
  28. public static string rewrite (owned string url);
  29. }