[glibmm] Regenerate .defs.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Regenerate .defs.
- Date: Mon, 15 Dec 2014 09:04:11 +0000 (UTC)
commit 6c30f7c589b54daceea6c83f53a5403d3ef09cfd
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Dec 15 09:58:34 2014 +0100
Regenerate .defs.
gio/src/gio_enums.defs | 19 +++++++++++
gio/src/gio_methods.defs | 47 +++++++++++++++++++++++++++++
gio/src/gio_signals.defs | 29 ++++++++++++++++++
tools/extra_defs_gen/generate_defs_gio.cc | 1 +
4 files changed, 96 insertions(+), 0 deletions(-)
---
diff --git a/gio/src/gio_enums.defs b/gio/src/gio_enums.defs
index 141c1b6..0e68617 100644
--- a/gio/src/gio_enums.defs
+++ b/gio/src/gio_enums.defs
@@ -1573,6 +1573,25 @@
)
)
+;; Original typedef:
+;; typedef enum {
+;; G_NETWORK_CONNECTIVITY_LOCAL = 1,
+;; G_NETWORK_CONNECTIVITY_LIMITED = 2,
+;; G_NETWORK_CONNECTIVITY_PORTAL = 3,
+;; G_NETWORK_CONNECTIVITY_FULL = 4
+;; } GNetworkConnectivity;
+
+(define-enum-extended NetworkConnectivity
+ (in-module "G")
+ (c-name "GNetworkConnectivity")
+ (values
+ '("local" "G_NETWORK_CONNECTIVITY_LOCAL" "1")
+ '("limited" "G_NETWORK_CONNECTIVITY_LIMITED" "2")
+ '("portal" "G_NETWORK_CONNECTIVITY_PORTAL" "3")
+ '("full" "G_NETWORK_CONNECTIVITY_FULL" "4")
+ )
+)
+
;; From gsettings.h
;; Original typedef:
diff --git a/gio/src/gio_methods.defs b/gio/src/gio_methods.defs
index 1f43a3a..1170f1e 100644
--- a/gio/src/gio_methods.defs
+++ b/gio/src/gio_methods.defs
@@ -370,6 +370,13 @@
(gtype-id "G_TYPE_NETWORK_MONITOR_NETLINK")
)
+(define-object MonitorNM
+ (in-module "GNetwork")
+ (parent "GNetworkMonitorNetlink")
+ (c-name "GNetworkMonitorNM")
+ (gtype-id "G_TYPE_NETWORK_MONITOR_NM")
+)
+
(define-object Service
(in-module "GNetwork")
(parent "GObject")
@@ -1705,6 +1712,18 @@
)
)
+(define-enum Connectivity
+ (in-module "GNetwork")
+ (c-name "GNetworkConnectivity")
+ (gtype-id "G_TYPE_NETWORK_CONNECTIVITY")
+ (values
+ '("local" "G_NETWORK_CONNECTIVITY_LOCAL")
+ '("limited" "G_NETWORK_CONNECTIVITY_LIMITED")
+ '("portal" "G_NETWORK_CONNECTIVITY_PORTAL")
+ '("full" "G_NETWORK_CONNECTIVITY_FULL")
+ )
+)
+
(define-flags BindFlags
(in-module "GSettings")
(c-name "GSettingsBindFlags")
@@ -10420,6 +10439,11 @@
(return-type "GType")
)
+(define-function g_network_connectivity_get_type
+ (c-name "g_network_connectivity_get_type")
+ (return-type "GType")
+)
+
(define-function g_settings_bind_flags_get_type
(c-name "g_settings_bind_flags_get_type")
(return-type "GType")
@@ -12056,6 +12080,12 @@
(return-type "gboolean")
)
+(define-method get_connectivity
+ (of-object "GNetworkMonitor")
+ (c-name "g_network_monitor_get_connectivity")
+ (return-type "GNetworkConnectivity")
+)
+
(define-method can_reach
(of-object "GNetworkMonitor")
(c-name "g_network_monitor_can_reach")
@@ -12095,6 +12125,10 @@
+;; From gnetworkmonitornm.h
+
+
+
;; From gnetworkservice.h
(define-function g_network_service_get_type
@@ -15886,6 +15920,19 @@
)
)
+(define-method send_messages
+ (of-object "GSocket")
+ (c-name "g_socket_send_messages")
+ (return-type "gint")
+ (parameters
+ '("GOutputMessage*" "messages")
+ '("guint" "num_messages")
+ '("gint" "flags")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
(define-method close
(of-object "GSocket")
(c-name "g_socket_close")
diff --git a/gio/src/gio_signals.defs b/gio/src/gio_signals.defs
index 114a01f..232072f 100644
--- a/gio/src/gio_signals.defs
+++ b/gio/src/gio_signals.defs
@@ -1586,6 +1586,35 @@
(construct-only #t)
)
+;; From GNetworkMonitor
+
+(define-signal network-changed
+ (of-object "GNetworkMonitor")
+ (return-type "void")
+ (when "last")
+ (parameters
+ '("gboolean" "p0")
+ )
+)
+
+(define-property connectivity
+ (of-object "GNetworkMonitor")
+ (prop-type "GParamEnum")
+ (docs "Level of network connectivity")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+)
+
+(define-property network-available
+ (of-object "GNetworkMonitor")
+ (prop-type "GParamBoolean")
+ (docs "Whether the network is available")
+ (readable #t)
+ (writable #f)
+ (construct-only #f)
+)
+
;; From GNetworkService
(define-property service
diff --git a/tools/extra_defs_gen/generate_defs_gio.cc b/tools/extra_defs_gen/generate_defs_gio.cc
index 213f52e..7fb58f2 100644
--- a/tools/extra_defs_gen/generate_defs_gio.cc
+++ b/tools/extra_defs_gen/generate_defs_gio.cc
@@ -114,6 +114,7 @@ int main(int, char**)
<< get_defs(G_TYPE_SRV_TARGET)
<< get_defs(G_TYPE_RESOLVER)
<< get_defs(G_TYPE_NETWORK_ADDRESS)
+ << get_defs(G_TYPE_NETWORK_MONITOR)
<< get_defs(G_TYPE_NETWORK_SERVICE)
<< get_defs(G_TYPE_SETTINGS)
<< get_defs(G_TYPE_SIMPLE_PERMISSION)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]