diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-12-13 05:44:35 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-12-13 05:44:35 +0800 |
commit | a24d8402cd926c267682ede6f4325d8da0c4479d (patch) | |
tree | 9465fa6e65660158388323c570221d6ae19cc89e /embed/ephy-permission-manager.h | |
parent | ac58742bbf40beaa31967cc8a75b4b3504e52f65 (diff) | |
download | gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.tar.gz gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.tar.zst gsoc2013-epiphany-a24d8402cd926c267682ede6f4325d8da0c4479d.zip |
Fix permission return types.
2003-12-12 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-permission-manager.c: (ephy_permission_info_new),
(ephy_permission_info_copy), (ephy_permission_manager_add):
* embed/ephy-permission-manager.h:
* embed/mozilla/EphySingle.cpp:
* embed/mozilla/mozilla-embed-single.cpp:
Fix permission return types.
Diffstat (limited to 'embed/ephy-permission-manager.h')
-rw-r--r-- | embed/ephy-permission-manager.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/embed/ephy-permission-manager.h b/embed/ephy-permission-manager.h index 644797925..d049f3fd4 100644 --- a/embed/ephy-permission-manager.h +++ b/embed/ephy-permission-manager.h @@ -46,11 +46,18 @@ typedef enum EPT_POPUP } EphyPermissionType; +typedef enum +{ + EPHY_PERMISSION_ALLOWED, + EPHY_PERMISSION_DENIED, + EPHY_PERMISSION_DEFAULT +} EphyPermission; + typedef struct { char *host; EphyPermissionType type; - gboolean allowed; + EphyPermission permission; } EphyPermissionInfo; struct EphyPermissionManagerIFace @@ -70,12 +77,12 @@ struct EphyPermissionManagerIFace void (* add) (EphyPermissionManager *manager, const char *host, EphyPermissionType type, - gboolean allow); + EphyPermission permission); void (* remove) (EphyPermissionManager *manager, const char *host, EphyPermissionType type); void (* clear) (EphyPermissionManager *manager); - gboolean (* test) (EphyPermissionManager *manager, + EphyPermission (* test) (EphyPermissionManager *manager, const char *host, EphyPermissionType type); GList * (* list) (EphyPermissionManager *manager, @@ -88,7 +95,7 @@ GType ephy_permission_info_get_type (void); EphyPermissionInfo *ephy_permission_info_new (const char *host, EphyPermissionType type, - gboolean allowed); + EphyPermission permission); EphyPermissionInfo *ephy_permission_info_copy (const EphyPermissionInfo *info); @@ -101,7 +108,7 @@ GType ephy_permission_manager_get_type (void); void ephy_permission_manager_add (EphyPermissionManager *manager, const char *host, EphyPermissionType type, - gboolean allow); + EphyPermission permission); void ephy_permission_manager_remove (EphyPermissionManager *manager, const char *host, @@ -109,7 +116,7 @@ void ephy_permission_manager_remove (EphyPermissionManager *manager, void ephy_permission_manager_clear (EphyPermissionManager *manager); -gboolean ephy_permission_manager_test (EphyPermissionManager *manager, +EphyPermission ephy_permission_manager_test (EphyPermissionManager *manager, const char *host, EphyPermissionType type); |