summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2014-12-15 09:58:34 +0100
committerMurray Cumming <murrayc@murrayc.com>2014-12-15 10:03:24 +0100
commit6c30f7c589b54daceea6c83f53a5403d3ef09cfd (patch)
tree32597eadb0447fe8bac6817e05ee943d0ab88e96
parentfe0e25c8f1af8c3553c14608a672a3447361e18a (diff)
downloadglibmm-6c30f7c589b54daceea6c83f53a5403d3ef09cfd.tar.gz
Regenerate .defs.
-rw-r--r--gio/src/gio_enums.defs19
-rw-r--r--gio/src/gio_methods.defs47
-rw-r--r--gio/src/gio_signals.defs29
-rw-r--r--tools/extra_defs_gen/generate_defs_gio.cc1
4 files changed, 96 insertions, 0 deletions
diff --git a/gio/src/gio_enums.defs b/gio/src/gio_enums.defs
index 141c1b62..0e68617e 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 1f43a3ad..1170f1e0 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 114a01f1..232072fc 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 213f52e8..7fb58f26 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)