diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-12-12 08:13:54 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-12-12 08:13:54 +0800 |
commit | 6bc97bfc06e1ab3ca9041cae66c1524b7c14284a (patch) | |
tree | f94ecc0f4bd3d878a525e514780f192fd52b74fd /src/epiphany.defs | |
parent | c4d95ec8b49d437f3372390f1662c67bfd56b64b (diff) | |
download | gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.gz gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.bz2 gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.lz gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.xz gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.tar.zst gsoc2013-epiphany-6bc97bfc06e1ab3ca9041cae66c1524b7c14284a.zip |
Revert cookies stuff, didn't want to commit that.
svn path=/trunk/; revision=8633
Diffstat (limited to 'src/epiphany.defs')
-rw-r--r-- | src/epiphany.defs | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/epiphany.defs b/src/epiphany.defs index ea2263275..b96b50560 100644 --- a/src/epiphany.defs +++ b/src/epiphany.defs @@ -20,6 +20,12 @@ (gtype-id "EPHY_TYPE_COMMAND_MANAGER") ) +(define-interface CookieManager + (in-module "Ephy") + (c-name "EphyCookieManager") + (gtype-id "EPHY_TYPE_COOKIE_MANAGER") +) + (define-object Dialog (in-module "Ephy") (parent "GObject") @@ -469,6 +475,57 @@ +;; From ../../embed/ephy-cookie-manager.h + +(define-function ephy_cookie_get_type + (c-name "ephy_cookie_get_type") + (return-type "GType") +) + +(define-function ephy_cookie_new + (c-name "ephy_cookie_new") + (is-constructor-of "EphyCookie") + (return-type "EphyCookie*") +) + +(define-method copy + (of-object "EphyCookie") + (c-name "ephy_cookie_copy") + (return-type "EphyCookie*") +) + +(define-method free + (of-object "EphyCookie") + (c-name "ephy_cookie_free") + (return-type "none") +) + +(define-function ephy_cookie_manager_get_type + (c-name "ephy_cookie_manager_get_type") + (return-type "GType") +) + +(define-method list_cookies + (of-object "EphyCookieManager") + (c-name "ephy_cookie_manager_list_cookies") + (return-type "GList*") +) + +(define-method remove_cookie + (of-object "EphyCookieManager") + (c-name "ephy_cookie_manager_remove_cookie") + (return-type "none") + (parameters + '("const-EphyCookie*" "cookie") + ) +) + +(define-method clear + (of-object "EphyCookieManager") + (c-name "ephy_cookie_manager_clear") + (return-type "none") +) + ;; From ../../embed/ephy-embed-container.h (define-method set_active_child @@ -3463,6 +3520,22 @@ ;; Boxed types ... +(define-boxed Cookie + (in-module "Ephy") + (c-name "EphyCookie") + (gtype-id "EPHY_TYPE_COOKIE") + (fields + '("char*" "name") + '("char*" "value") + '("char*" "domain") + '("char*" "path") + '("gulong" "expires") + '("glong" "real_expires") + '("guint" "is_secure") + '("guint" "is_session") + ) +) + (define-boxed PasswordInfo (in-module "Ephy") (c-name "EphyPasswordInfo") |