<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/examples, branch jk/nmcli-agent-command</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>test,examples: fix scripts to avoid 'has_key' for Python 3</title>
<updated>2014-10-31T15:39:00+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2014-10-31T15:34:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=0923769285ba6e5f665a3c9b5f01b17d1be34d5b'/>
<id>0923769285ba6e5f665a3c9b5f01b17d1be34d5b</id>
<content type='text'>
'has_key' on Dictionaries is removed from Python3 in favor of 'in'.

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
'has_key' on Dictionaries is removed from Python3 in favor of 'in'.

Signed-off-by: Thomas Haller &lt;thaller@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm: change GSList to GPtrArray in libnm methods</title>
<updated>2014-10-28T21:17:17+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2014-10-22T16:32:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=6ae422485004485afd0a64f00e75c17fa5084b2e'/>
<id>6ae422485004485afd0a64f00e75c17fa5084b2e</id>
<content type='text'>
libnm mostly used GPtrArrays in its APIs, except that arrays of
connections were usually GSLists. Fix this and make them GPtrArrays
too (and rename nm_client_list_connections() to
nm_client_get_connections() to match everything else).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libnm mostly used GPtrArrays in its APIs, except that arrays of
connections were usually GSLists. Fix this and make them GPtrArrays
too (and rename nm_client_list_connections() to
nm_client_get_connections() to match everything else).
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm: merge NMRemoteSettings into NMClient</title>
<updated>2014-10-10T16:40:19+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2014-09-29T14:58:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=6f3d1f95262abbf5101d6f88ecfa292d575e0d4f'/>
<id>6f3d1f95262abbf5101d6f88ecfa292d575e0d4f</id>
<content type='text'>
Make NMRemoteSettings internal and have NMClient wrap all of its APIs,
just like it does with NMManager.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make NMRemoteSettings internal and have NMClient wrap all of its APIs,
just like it does with NMManager.
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm: make sync/async APIs more GLib-like</title>
<updated>2014-09-25T13:29:20+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2014-09-11T20:27:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=2237ea3ddbe602446ac87a8a055a6d719c4a0f6c'/>
<id>2237ea3ddbe602446ac87a8a055a6d719c4a0f6c</id>
<content type='text'>
Make synchronous APIs take GCancellables, and make asynchronous APIs
use GAsyncReadyCallbacks and have names ending in "_async", with
"_finish" functions to retrieve the results.

Also, make nm_client_activate_connection_finish(),
nm_client_add_and_activate_finish(), and
nm_remote_settings_add_connection_finish() be (transfer full) rather
than (transfer none), because the refcounting semantics become
slightly confusing in some edge cases otherwise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make synchronous APIs take GCancellables, and make asynchronous APIs
use GAsyncReadyCallbacks and have names ending in "_async", with
"_finish" functions to retrieve the results.

Also, make nm_client_activate_connection_finish(),
nm_client_add_and_activate_finish(), and
nm_remote_settings_add_connection_finish() be (transfer full) rather
than (transfer none), because the refcounting semantics become
slightly confusing in some edge cases otherwise.
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm: merge saved and unsaved connection methods</title>
<updated>2014-09-25T13:29:20+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2014-09-11T20:12:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=6ca10677d67c129d43b82e5563e20c4c5f2e5727'/>
<id>6ca10677d67c129d43b82e5563e20c4c5f2e5727</id>
<content type='text'>
Merge nm_remote_settings_add_connection() and
nm_remote_settings_add_connection_unsaved(), and likewise
nm_remote_connection_commit_changes() and
nm_remote_connection_commit_changes_unsaved(), by adding a boolean
flag to each saying whether to save to disk.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Merge nm_remote_settings_add_connection() and
nm_remote_settings_add_connection_unsaved(), and likewise
nm_remote_connection_commit_changes() and
nm_remote_connection_commit_changes_unsaved(), by adding a boolean
flag to each saying whether to save to disk.
</pre>
</div>
</content>
</entry>
<entry>
<title>tui,examples: accept null SSID gracefully</title>
<updated>2014-09-19T13:07:16+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2014-09-19T08:24:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=4359e556e41febb2dcf9e86ad72bcdef42fa879e'/>
<id>4359e556e41febb2dcf9e86ad72bcdef42fa879e</id>
<content type='text'>
Signed-off-by: Jiří Klimeš &lt;jklimes@redhat.com&gt;

https://bugzilla.gnome.org/show_bug.cgi?id=736802
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jiří Klimeš &lt;jklimes@redhat.com&gt;

https://bugzilla.gnome.org/show_bug.cgi?id=736802
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm: port to GDBus</title>
<updated>2014-09-18T15:51:09+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2014-09-10T17:51:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=6793a32a8c5445103ba3680bb5e4c31727096099'/>
<id>6793a32a8c5445103ba3680bb5e4c31727096099</id>
<content type='text'>
Port libnm-core/libnm to GDBus.

The NetworkManager daemon continues to use dbus-glib; the
previously-added connection hash/variant conversion methods are now
moved to NetworkManagerUtils (along with a few other utilities that
are now only needed by the daemon code).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Port libnm-core/libnm to GDBus.

The NetworkManager daemon continues to use dbus-glib; the
previously-added connection hash/variant conversion methods are now
moved to NetworkManagerUtils (along with a few other utilities that
are now only needed by the daemon code).
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: fix python GI examples to work after libnm changes</title>
<updated>2014-09-05T11:48:56+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2014-09-05T11:48:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=85909d080f74c85f91f418909def3997fc4e898f'/>
<id>85909d080f74c85f91f418909def3997fc4e898f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: port dbus-glib-based examples to gdbus</title>
<updated>2014-09-04T22:19:22+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2014-08-20T14:08:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=9e5ddb58305c3f0b3041606e2a790b3cc75c92c4'/>
<id>9e5ddb58305c3f0b3041606e2a790b3cc75c92c4</id>
<content type='text'>
Port the dbus-glib-based examples to GDBus.

Also, don't use libnm in them at all; there's not much point in
examples that use the D-Bus API directly if they're just going to fall
back to libnm for the hard stuff... (And also, this avoids the problem
that GDBus uses GVariant, while the libnm-core APIs currently still
use GHashTables.)

Also fix up some comment grammar and copyright style, and add emacs
modelines where missing.

Also rename the existing GDBus-based examples to have names ending in
"-gdbus", not "-GDBus", since there's no reason to gratuitously
capitalize here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Port the dbus-glib-based examples to GDBus.

Also, don't use libnm in them at all; there's not much point in
examples that use the D-Bus API directly if they're just going to fall
back to libnm for the hard stuff... (And also, this avoids the problem
that GDBus uses GVariant, while the libnm-core APIs currently still
use GHashTables.)

Also fix up some comment grammar and copyright style, and add emacs
modelines where missing.

Also rename the existing GDBus-based examples to have names ending in
"-gdbus", not "-GDBus", since there's no reason to gratuitously
capitalize here.
</pre>
</div>
</content>
</entry>
<entry>
<title>libnm: change empty-GPtrArray-return semantics</title>
<updated>2014-09-04T13:21:05+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2014-08-25T14:33:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=3e5b3833aa4964f6d2224560f3ad8c7ffa1e8027'/>
<id>3e5b3833aa4964f6d2224560f3ad8c7ffa1e8027</id>
<content type='text'>
libnm functions that return GPtrArrays of objects had a rule that if
the array was empty, they would return NULL rather than a 0-length
array. As it turns out, this is just a nuisance to clients, since in
most places the code for the non-empty case would end up doing the
right thing for the empty case as well (and where it doesn't, we can
check "array-&gt;len == 0" just as easily as "array == NULL"). So just
return the 0-length array instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
libnm functions that return GPtrArrays of objects had a rule that if
the array was empty, they would return NULL rather than a 0-length
array. As it turns out, this is just a nuisance to clients, since in
most places the code for the non-empty case would end up doing the
right thing for the empty case as well (and where it doesn't, we can
check "array-&gt;len == 0" just as easily as "array == NULL"). So just
return the 0-length array instead.
</pre>
</div>
</content>
</entry>
</feed>
