summaryrefslogtreecommitdiff
path: root/libsoup/hsts
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-10-27 16:42:58 -0500
committerPatrick Griffis <pgriffis@igalia.com>2020-10-27 17:04:47 -0500
commit8c8b20ba864217f2829ad27943ae94efa411fbcd (patch)
tree9c617abb42442c1fa9a0a342480487871816ed22 /libsoup/hsts
parent4bae534464f29f72273360ddbc249f3a7422add0 (diff)
downloadlibsoup-8c8b20ba864217f2829ad27943ae94efa411fbcd.tar.gz
Remove property aliasespgriffis/remove-property-aliases
This was an oddity of libsoup that no other GObject library does. The downsides are mostly that tooling doesn't expect it so its easy to not document them or not define them and developers don't expect them so they don't realize the defines are just property names or search codebases for one but miss the other. It just doesn't follow convention.
Diffstat (limited to 'libsoup/hsts')
-rw-r--r--libsoup/hsts/soup-hsts-enforcer-db.c4
-rw-r--r--libsoup/hsts/soup-hsts-enforcer-db.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/libsoup/hsts/soup-hsts-enforcer-db.c b/libsoup/hsts/soup-hsts-enforcer-db.c
index fd1a6997..d6024452 100644
--- a/libsoup/hsts/soup-hsts-enforcer-db.c
+++ b/libsoup/hsts/soup-hsts-enforcer-db.c
@@ -120,7 +120,7 @@ soup_hsts_enforcer_db_new (const char *filename)
g_return_val_if_fail (filename != NULL, NULL);
return g_object_new (SOUP_TYPE_HSTS_ENFORCER_DB,
- SOUP_HSTS_ENFORCER_DB_FILENAME, filename,
+ "filename", filename,
NULL);
}
@@ -332,7 +332,7 @@ soup_hsts_enforcer_db_class_init (SoupHSTSEnforcerDBClass *db_class)
**/
g_object_class_install_property (
object_class, PROP_FILENAME,
- g_param_spec_string (SOUP_HSTS_ENFORCER_DB_FILENAME,
+ g_param_spec_string ("filename",
"Filename",
"HSTS policy storage filename",
NULL,
diff --git a/libsoup/hsts/soup-hsts-enforcer-db.h b/libsoup/hsts/soup-hsts-enforcer-db.h
index 2ff3ba1f..8e83574e 100644
--- a/libsoup/hsts/soup-hsts-enforcer-db.h
+++ b/libsoup/hsts/soup-hsts-enforcer-db.h
@@ -14,8 +14,6 @@ G_BEGIN_DECLS
SOUP_AVAILABLE_IN_2_68
G_DECLARE_FINAL_TYPE (SoupHSTSEnforcerDB, soup_hsts_enforcer_db, SOUP, HSTS_ENFORCER_DB, SoupHSTSEnforcer)
-#define SOUP_HSTS_ENFORCER_DB_FILENAME "filename"
-
SOUP_AVAILABLE_IN_2_68
SoupHSTSEnforcer *soup_hsts_enforcer_db_new (const char *filename);