<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/src/main.c, branch fg/dhcp_hostname_bgo775622</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>main: fix compiler warning about uninitialized auto variable in _init_nm_debug()</title>
<updated>2016-11-25T19:17:58+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-11-25T19:16:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=8aead609b336b70bd779bb679cc993310a301990'/>
<id>8aead609b336b70bd779bb679cc993310a301990</id>
<content type='text'>
Fixes: c7d2e1f3bc97f7061e3d0e8d20027513919adb26
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: c7d2e1f3bc97f7061e3d0e8d20027513919adb26
</pre>
</div>
</content>
</entry>
<entry>
<title>config: drop nm_config_get_debug() and access config directly</title>
<updated>2016-11-25T17:02:38+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-11-25T14:34:40+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=c7d2e1f3bc97f7061e3d0e8d20027513919adb26'/>
<id>c7d2e1f3bc97f7061e3d0e8d20027513919adb26</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>config: drop nm_config_get_auth_polkit() and access value directly</title>
<updated>2016-11-25T17:02:38+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-11-25T13:39:59+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=ff4cb2a1fcc711e0f31e7ab8f16dbebbf3616e36'/>
<id>ff4cb2a1fcc711e0f31e7ab8f16dbebbf3616e36</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>build: don't add subdirectories to include search path but require qualified include</title>
<updated>2016-11-21T13:26:37+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-11-20T23:43:52+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=44ecb41593bc627d8f4529e74de4a549cf24a695'/>
<id>44ecb41593bc627d8f4529e74de4a549cf24a695</id>
<content type='text'>
Keep the include paths clean and separate. We use directories to group source
files together. That makes sense (I guess), but then we should use this
grouping also when including files. Thus require to #include files with their
path relative to "src/".

Also, we build various artifacts from the "src/" tree. Instead of having
individual CFLAGS for each artifact in Makefile.am, the CFLAGS should be
unified. Previously, the CFLAGS for each artifact differ and are inconsistent
in which paths they add to the search path. Fix the inconsistency by just
don't add the paths at all.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Keep the include paths clean and separate. We use directories to group source
files together. That makes sense (I guess), but then we should use this
grouping also when including files. Thus require to #include files with their
path relative to "src/".

Also, we build various artifacts from the "src/" tree. Instead of having
individual CFLAGS for each artifact in Makefile.am, the CFLAGS should be
unified. Previously, the CFLAGS for each artifact differ and are inconsistent
in which paths they add to the search path. Fix the inconsistency by just
don't add the paths at all.
</pre>
</div>
</content>
</entry>
<entry>
<title>build: rename "src/dhcp-manager" to "src/dhcp"</title>
<updated>2016-11-21T13:07:47+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-11-20T23:26:17+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=e053996881eec4d1b415655f6bb642c52bc61ba9'/>
<id>e053996881eec4d1b415655f6bb642c52bc61ba9</id>
<content type='text'>
The dhcp directory does not only contain the manager
instance, but various files related to DHCP.

Rename.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The dhcp directory does not only contain the manager
instance, but various files related to DHCP.

Rename.
</pre>
</div>
</content>
</entry>
<entry>
<title>build: don't add systemd path the include search path</title>
<updated>2016-09-27T12:13:21+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-09-27T11:35:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=e3a072f3c0d8046a9c1d01c8518c532b71f7bd7a'/>
<id>e3a072f3c0d8046a9c1d01c8518c532b71f7bd7a</id>
<content type='text'>
Our internal copy of systemd should not be in the search path.
Instead, let users only
  #include "systemd/nm-sd.h"
which then includes everything from systemd that we need.

We want to avoid to accidentally include anything from our
systemd-copy. Any user of that should only include "nm-sd.h",
which then includes everything that is needed further.

For example, "src/devices/wwan/nm-modem-manager.c" has
  #include &lt;systemd/nm-daemon.h&gt;
which in turn includes
  #include "_sd-common.h"
This works all correctly before, because #include "" will first
look in the directory where sd-daemon.h is. However, our mixing of
external systemd library and internal copy is rather dangerous.
Try to avoid it further by keeping the include paths clean.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Our internal copy of systemd should not be in the search path.
Instead, let users only
  #include "systemd/nm-sd.h"
which then includes everything from systemd that we need.

We want to avoid to accidentally include anything from our
systemd-copy. Any user of that should only include "nm-sd.h",
which then includes everything that is needed further.

For example, "src/devices/wwan/nm-modem-manager.c" has
  #include &lt;systemd/nm-daemon.h&gt;
which in turn includes
  #include "_sd-common.h"
This works all correctly before, because #include "" will first
look in the directory where sd-daemon.h is. However, our mixing of
external systemd library and internal copy is rather dangerous.
Try to avoid it further by keeping the include paths clean.
</pre>
</div>
</content>
</entry>
<entry>
<title>config: store and load device runtime state to file</title>
<updated>2016-09-26T11:12:02+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-09-23T15:36:21+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=93396b8d526e99ac26a6e9c9d9b783333fc9b88e'/>
<id>93396b8d526e99ac26a6e9c9d9b783333fc9b88e</id>
<content type='text'>
The data is still unused, the actual fields might change.

Note that the actual state we store is subject to change,
according to which data we need. The file format is non stable,
as the files don't survive reboot. So there is no backward
compatibility to maintain and the format can be changed later.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The data is still unused, the actual fields might change.

Note that the actual state we store is subject to change,
according to which data we need. The file format is non stable,
as the files don't survive reboot. So there is no backward
compatibility to maintain and the format can be changed later.
</pre>
</div>
</content>
</entry>
<entry>
<title>config: refactor change-flags to be a cause/reason which triggered the change</title>
<updated>2016-06-01T17:06:34+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-05-30T12:53:27+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=eb6140a7729db3eee2c95ddbbe65b12a31f29c43'/>
<id>eb6140a7729db3eee2c95ddbbe65b12a31f29c43</id>
<content type='text'>
For the most part, this patch just renames some change-flags, but
doesn't change much about them. The new name should better express
what they are.

A config-change signal can be emitted for different reasons:
when we receive a signal (SIGHUP, SIGUSR1, SIGUSR2) or for internal
reasons like resetting of no-auto-default or setting internal
values.

Depending on the reason, we want to perform different actions.
For example:
 - we reload the configuration from disk on SIGHUP, but not for
   SIGUSR1.
 - For SIGUSR1 and SIGHUP, we want to update-dns, but not for SIGUSR2.

Another part of the change-flags encodes which part of the configuration
actually changed. Often, these parts can only change when re-reading
from disk (e.g. a SIGUSR1 will not change any configuration inside
NMConfig).

Later, we will have more causes, and accordingly more fine-grained
effects of what should be done on reload.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For the most part, this patch just renames some change-flags, but
doesn't change much about them. The new name should better express
what they are.

A config-change signal can be emitted for different reasons:
when we receive a signal (SIGHUP, SIGUSR1, SIGUSR2) or for internal
reasons like resetting of no-auto-default or setting internal
values.

Depending on the reason, we want to perform different actions.
For example:
 - we reload the configuration from disk on SIGHUP, but not for
   SIGUSR1.
 - For SIGUSR1 and SIGHUP, we want to update-dns, but not for SIGUSR2.

Another part of the change-flags encodes which part of the configuration
actually changed. Often, these parts can only change when re-reading
from disk (e.g. a SIGUSR1 will not change any configuration inside
NMConfig).

Later, we will have more causes, and accordingly more fine-grained
effects of what should be done on reload.
</pre>
</div>
</content>
</entry>
<entry>
<title>build: cleanup includes of &lt;gmodule.h&gt;</title>
<updated>2016-04-30T01:42:16+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-04-30T01:26:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=c5ac69174464521e8d20d8e5e1e8ec1cefe41773'/>
<id>c5ac69174464521e8d20d8e5e1e8ec1cefe41773</id>
<content type='text'>
&lt;gmodule.h&gt; is implicitly included by &lt;gio/gio.h&gt; which is available
everywhere. For that reason, we would not have to include this header
at all. However, it is recommended to explicitly include &lt;gmodule.h&gt;
where needed.

So, include it where needed -- if &lt;gio/gio.h&gt; wouldn't be there --
and drop it from where it is not needed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
&lt;gmodule.h&gt; is implicitly included by &lt;gio/gio.h&gt; which is available
everywhere. For that reason, we would not have to include this header
at all. However, it is recommended to explicitly include &lt;gmodule.h&gt;
where needed.

So, include it where needed -- if &lt;gio/gio.h&gt; wouldn't be there --
and drop it from where it is not needed.
</pre>
</div>
</content>
</entry>
<entry>
<title>core: rename nm_config_run_state* to nm_config_state*</title>
<updated>2016-04-07T16:52:12+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2016-04-07T16:42:24+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=d0836be0ebb3faa1aaf8f4ac0ec7b52fed011cc2'/>
<id>d0836be0ebb3faa1aaf8f4ac0ec7b52fed011cc2</id>
<content type='text'>
After all, this state is stored persistently to /var/lib/NetworkManager,
and not to volatile storage in /var/run. Hence the name is better.
It's also shorter, so rename it.

The commit is mostly trivial, including update of code comments
and logging messages.

Fixes: 1b43c880ba43260fe551b0ac923826f16737484f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After all, this state is stored persistently to /var/lib/NetworkManager,
and not to volatile storage in /var/run. Hence the name is better.
It's also shorter, so rename it.

The commit is mostly trivial, including update of code comments
and logging messages.

Fixes: 1b43c880ba43260fe551b0ac923826f16737484f
</pre>
</div>
</content>
</entry>
</feed>
