<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/examples, branch th/cli-strsplit</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>examples: add python/gi example nm-connection-update-stable-id.py</title>
<updated>2017-12-05T18:57:24+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-11-30T13:50:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8388f4ea1df8ae6f348154673dc4d409115006b7'/>
<id>8388f4ea1df8ae6f348154673dc4d409115006b7</id>
<content type='text'>
The example script touches the stable-id of a connection.
It does so blocking autoconnect, and was originally written
to test that functionality.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The example script touches the stable-id of a connection.
It does so blocking autoconnect, and was originally written
to test that functionality.
</pre>
</div>
</content>
</entry>
<entry>
<title>python: make dbus, gi examples, and debug-helper.py python3 ready</title>
<updated>2017-12-04T10:21:40+00:00</updated>
<author>
<name>Yifan J</name>
<email>yfjiang@suse.com</email>
</author>
<published>2017-12-02T04:44:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=797d9c4403cf170870e9d7d9b0ea22317c850b35'/>
<id>797d9c4403cf170870e9d7d9b0ea22317c850b35</id>
<content type='text'>
https://bugzilla.gnome.org/show_bug.cgi?id=791121
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.gnome.org/show_bug.cgi?id=791121
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: add checkpoint example using python gobject-introspection</title>
<updated>2017-11-09T09:12:30+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2017-11-07T14:19:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=77d3b1555e83116d849c0ad9bca5ae8322e6c936'/>
<id>77d3b1555e83116d849c0ad9bca5ae8322e6c936</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: add python example using VPN import code</title>
<updated>2017-11-06T17:37:05+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-11-06T17:32:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=f4458dd1573903b5ec5f61267a616cc67e62635d'/>
<id>f4458dd1573903b5ec5f61267a616cc67e62635d</id>
<content type='text'>
Show how to load and use the VPN plugins from python.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Show how to load and use the VPN plugins from python.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples/js: add a javascript example</title>
<updated>2017-11-06T10:47:05+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2017-11-03T14:37:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=d529641756b5443ba86141ab13ed14952b02bdbf'/>
<id>d529641756b5443ba86141ab13ed14952b02bdbf</id>
<content type='text'>
Converted from python/gi/get_ip.py.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Converted from python/gi/get_ip.py.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: linker requires that library dependencies follow use</title>
<updated>2017-09-21T11:14:56+00:00</updated>
<author>
<name>Lucas Rangit Magasweran</name>
<email>lucas.magasweran@ieee.org</email>
</author>
<published>2017-09-20T21:13:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=843ea77e93af230ba113adae2ed92fe80db83717'/>
<id>843ea77e93af230ba113adae2ed92fe80db83717</id>
<content type='text'>
On modern distributions, ld runs with the '--as-needed' option
enabled by default, meaning library dependencies must come after
files that require them. Also, this allows indirect linking so the
build commands can be simplified.

The alternative is to add the '-Wl,--no-as-needed' gcc option or
use the top-level Makefile.

Tested on:
 * Ubuntu 16.04.3 with gcc Ubuntu 5.4.1-8ubuntu1
 * Fedora 24 with gcc Red Hat 6.1.1-3

Signed-off-by: Lucas Magasweran &lt;lucas.magasweran@ieee.org&gt;

https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00022.html
https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00023.html
https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00025.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On modern distributions, ld runs with the '--as-needed' option
enabled by default, meaning library dependencies must come after
files that require them. Also, this allows indirect linking so the
build commands can be simplified.

The alternative is to add the '-Wl,--no-as-needed' gcc option or
use the top-level Makefile.

Tested on:
 * Ubuntu 16.04.3 with gcc Ubuntu 5.4.1-8ubuntu1
 * Fedora 24 with gcc Red Hat 6.1.1-3

Signed-off-by: Lucas Magasweran &lt;lucas.magasweran@ieee.org&gt;

https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00022.html
https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00023.html
https://mail.gnome.org/archives/networkmanager-list/2017-September/msg00025.html
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: add setting-user-data.py</title>
<updated>2017-05-06T12:53:09+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-05-04T07:58:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=adcbcb15e578adc45ab8b948bd2cdbf62854476f'/>
<id>adcbcb15e578adc45ab8b948bd2cdbf62854476f</id>
<content type='text'>
Add an example python script to show and set setting's
user-data. This is useful, as nmcli still doesn't support
user data.

(cherry picked from commit 447c766f526ec8bc4f5aa109a5e261cf060d1042)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add an example python script to show and set setting's
user-data. This is useful, as nmcli still doesn't support
user data.

(cherry picked from commit 447c766f526ec8bc4f5aa109a5e261cf060d1042)
</pre>
</div>
</content>
</entry>
<entry>
<title>build: declare build dependencies requiring "nm-core-enum-types.h"</title>
<updated>2017-03-29T09:26:27+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-03-28T20:37:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=6198c2a5a4c74c35e621cd2d70d5fb6b7b90c133'/>
<id>6198c2a5a4c74c35e621cd2d70d5fb6b7b90c133</id>
<content type='text'>
	cat &lt;&lt;-EOF &gt; /tmp/glib-mkenums
	#!/bin/bash
	sleep 15 &amp;&amp; /usr/bin/glib-mkenums "\$@"
	EOF

	chmod +x /tmp/glib-mkenums

	(export PATH="/tmp:$PATH" &amp;&amp;
	 git clean -fdx &amp;&amp;
	 ./autogen.sh &amp;&amp;
	 make -j20 all-am)

(cherry picked from commit 68ab166f3894834af9473d42f5dab72e0ed15394)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	cat &lt;&lt;-EOF &gt; /tmp/glib-mkenums
	#!/bin/bash
	sleep 15 &amp;&amp; /usr/bin/glib-mkenums "\$@"
	EOF

	chmod +x /tmp/glib-mkenums

	(export PATH="/tmp:$PATH" &amp;&amp;
	 git clean -fdx &amp;&amp;
	 ./autogen.sh &amp;&amp;
	 make -j20 all-am)

(cherry picked from commit 68ab166f3894834af9473d42f5dab72e0ed15394)
</pre>
</div>
</content>
</entry>
<entry>
<title>device: add spec "driver:" to match devices</title>
<updated>2017-03-17T16:40:00+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-03-17T15:18:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=b869d9cc0dda4fe5300f5ec5b5a090199ecd4e3e'/>
<id>b869d9cc0dda4fe5300f5ec5b5a090199ecd4e3e</id>
<content type='text'>
Changing the MAC address of devices is known to fail with
certain drivers. Add a device-spec to allow disabling it
for for such devices.

Related: https://bugzilla.gnome.org/show_bug.cgi?id=777523
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Changing the MAC address of devices is known to fail with
certain drivers. Add a device-spec to allow disabling it
for for such devices.

Related: https://bugzilla.gnome.org/show_bug.cgi?id=777523
</pre>
</div>
</content>
</entry>
<entry>
<title>include: use double-quotes to include our own headers</title>
<updated>2017-03-09T13:12:35+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2017-03-09T12:02:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=831286df3001e6b76b7baeb10a7723841ab8b35e'/>
<id>831286df3001e6b76b7baeb10a7723841ab8b35e</id>
<content type='text'>
In practice, this should only matter when there are multiple
header files with the same name. That is something we try
to avoid already, by giving headers a distinct name.

When building NetworkManager itself, we clearly want to use
double-quotes for including our own headers.
But we also want to do that in our public headers. For example:

  ./a.c
    #include &lt;stdio.h&gt;
    #include &lt;nm-1.h&gt;
    void main() {
        printf ("INCLUDED %s/nm-2.h\n", SYMB);
    }

  ./1/nm-1.h
    #include &lt;nm-2.h&gt;

  ./1/nm-2.h
    #define SYMB "1"

  ./2/nm-2.h
    #define SYMB "2"

$ cc -I./2 -I./1 ./a.c
$ ./a.out
INCLUDED 2/nm-2.h

Exceptions to this are
  - headers in "shared/nm-utils" that include &lt;NetworkManager.h&gt;. These
    headers are copied into projects and hence used like headers owned by
    those projects.
  - examples/C
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In practice, this should only matter when there are multiple
header files with the same name. That is something we try
to avoid already, by giving headers a distinct name.

When building NetworkManager itself, we clearly want to use
double-quotes for including our own headers.
But we also want to do that in our public headers. For example:

  ./a.c
    #include &lt;stdio.h&gt;
    #include &lt;nm-1.h&gt;
    void main() {
        printf ("INCLUDED %s/nm-2.h\n", SYMB);
    }

  ./1/nm-1.h
    #include &lt;nm-2.h&gt;

  ./1/nm-2.h
    #define SYMB "1"

  ./2/nm-2.h
    #define SYMB "2"

$ cc -I./2 -I./1 ./a.c
$ ./a.out
INCLUDED 2/nm-2.h

Exceptions to this are
  - headers in "shared/nm-utils" that include &lt;NetworkManager.h&gt;. These
    headers are copied into projects and hence used like headers owned by
    those projects.
  - examples/C
</pre>
</div>
</content>
</entry>
</feed>
