[gssdp] client: Add getter for mask
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] client: Add getter for mask
- Date: Tue, 16 Jun 2020 20:51:36 +0000 (UTC)
commit 44cb3b093ef5d1a929f88f64257356ed7bb4ed51
Author: Jens Georg <mail jensge org>
Date: Tue Jun 16 22:51:07 2020 +0200
client: Add getter for mask
libgssdp/gssdp-client.c | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
---
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));
@@ -1155,6 +1155,24 @@ gssdp_client_get_family (GSSDPClient *client)
return g_inet_address_get_family (priv->device.host_addr);
}
+/**
+ * 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]