diff options
author | Jens Georg <mail@jensge.org> | 2020-06-16 22:51:07 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2020-06-16 22:51:07 +0200 |
commit | 44cb3b093ef5d1a929f88f64257356ed7bb4ed51 (patch) | |
tree | 212ec3feda55ad04abe5ff8951500b397080fec8 | |
parent | 94e709a23dbde90ceeccf9b3ec1d549a4b2090ae (diff) | |
download | gssdp-44cb3b093ef5d1a929f88f64257356ed7bb4ed51.tar.gz |
client: Add getter for mask
-rw-r--r-- | libgssdp/gssdp-client.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c index c4503be..5724f04 100644 --- a/libgssdp/gssdp-client.c +++ b/libgssdp/gssdp-client.c @@ -562,7 +562,7 @@ gssdp_client_class_init (GSSDPClientClass *klass) "The IP netmask of the associated" "network interface", G_TYPE_INET_ADDRESS_MASK, - G_PARAM_WRITABLE | + G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); @@ -1156,6 +1156,24 @@ gssdp_client_get_family (GSSDPClient *client) } /** + * gssdp_client_get_address_mask: + * @client: A #GSSDPClient + * + * Since: 1.2.3 + * + * Returns: (transfer full): Address mask of this client + */ +GInetAddressMask * +gssdp_client_get_address_mask (GSSDPClient *client) +{ + g_return_val_if_fail (GSSDP_IS_CLIENT (client), NULL); + + GSSDPClientPrivate *priv = gssdp_client_get_instance_private (client); + + return g_object_ref (priv->device.host_mask); +} + +/** * gssdp_client_get_uda_version: * @client: A #GSSDPClient * |