<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/cli/src/nmcli.c, branch th/NMStringTable</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>nmcli: fix some leaks found by valgrind</title>
<updated>2013-10-24T02:22:35+00:00</updated>
<author>
<name>Dan Winship</name>
<email>danw@gnome.org</email>
</author>
<published>2013-10-03T14:08:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=0221971da5f0833edbd62090d5b44631c7e558a3'/>
<id>0221971da5f0833edbd62090d5b44631c7e558a3</id>
<content type='text'>
https://bugzilla.gnome.org/show_bug.cgi?id=709369
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugzilla.gnome.org/show_bug.cgi?id=709369
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: reset terminal using libreadline when quitting on signal (bgo #706118)</title>
<updated>2013-09-10T09:45:21+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-09-10T08:03:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=555e5b401c237198218e457e29bec11e059f6aff'/>
<id>555e5b401c237198218e457e29bec11e059f6aff</id>
<content type='text'>
readline() makes changes to terminal and when it doesn't receive unix signals,
it has no chance to perform cleanups on exit. So we have to call its cleanup
functions manually on exit.

https://bugzilla.gnome.org/show_bug.cgi?id=706118
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
readline() makes changes to terminal and when it doesn't receive unix signals,
it has no chance to perform cleanups on exit. So we have to call its cleanup
functions manually on exit.

https://bugzilla.gnome.org/show_bug.cgi?id=706118
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: handle POSIX signals in a dedicated thread</title>
<updated>2013-09-10T09:41:00+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-09-09T16:18:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=663014ed62f73dfa189cd9d9de56c4215ceea47f'/>
<id>663014ed62f73dfa189cd9d9de56c4215ceea47f</id>
<content type='text'>
For a multihreaded application the safest way to handle unix signals is using
a dedicated thread that processes the signals by sigwait() function. All other
threads have these signals (processed by the thread) blocked.

A few useful links:
http://pubs.opengroup.org/onlinepubs/007904975/functions/sigwait.html
http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.genprogc%2Fdoc%2Fgenprogc%2Fsignal_mgmt.htm
http://www.linuxjournal.com/article/2121?page=0,2
http://www.redwoodsoft.com/~dru/unixbook/book.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch12lev1sec8.html
https://www.securecoding.cert.org/confluence/display/seccode/CON37-C.+Do+not+call+signal%28%29+in+a+multithreaded+program
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For a multihreaded application the safest way to handle unix signals is using
a dedicated thread that processes the signals by sigwait() function. All other
threads have these signals (processed by the thread) blocked.

A few useful links:
http://pubs.opengroup.org/onlinepubs/007904975/functions/sigwait.html
http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.genprogc%2Fdoc%2Fgenprogc%2Fsignal_mgmt.htm
http://www.linuxjournal.com/article/2121?page=0,2
http://www.redwoodsoft.com/~dru/unixbook/book.chinaunix.net/special/ebook/addisonWesley/APUE2/0201433079/ch12lev1sec8.html
https://www.securecoding.cert.org/confluence/display/seccode/CON37-C.+Do+not+call+signal%28%29+in+a+multithreaded+program
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: confirm connection saving when autoconnect=yes (rh #953296)</title>
<updated>2013-07-30T12:04:52+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-07-23T12:25:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=18817877ade38f58ca429d126df15d49e5e5de76'/>
<id>18817877ade38f58ca429d126df15d49e5e5de76</id>
<content type='text'>
Ask for confirmation in these cases:
* autoconnect=yes and connection has not been saved yet
* autoconnect=yes, but saved connection had autoconnect=no

The confirmation can be switched off with
nmcli&gt; nmcli save-confirmation no
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ask for confirmation in these cases:
* autoconnect=yes and connection has not been saved yet
* autoconnect=yes, but saved connection had autoconnect=no

The confirmation can be switched off with
nmcli&gt; nmcli save-confirmation no
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: add 'nmcli' command for nmcli connection editor configuration</title>
<updated>2013-07-22T11:37:16+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-04-05T21:42:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=ca1c0cdaf4071b4505681f5923d05ccd22882999'/>
<id>ca1c0cdaf4071b4505681f5923d05ccd22882999</id>
<content type='text'>
- show/hide status line:  nmcli&gt; nmcli status-line yes | no
- editor prompt color:    nmcli&gt; nmcli prompt-color &lt;0-8&gt;  (0 = normal/without color)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- show/hide status line:  nmcli&gt; nmcli status-line yes | no
- editor prompt color:    nmcli&gt; nmcli prompt-color &lt;0-8&gt;  (0 = normal/without color)
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: enhance printing to align tabular output properly and not to waste space</title>
<updated>2013-05-31T07:38:03+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-05-22T06:36:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=e6870789b561b818cbb6d649d7707e2203d5720b'/>
<id>e6870789b561b818cbb6d649d7707e2203d5720b</id>
<content type='text'>
Until now we have used a static width defined for each column for tabular
output. Even if this worked in most cases, it was not optimal, because by
using too wide columns we wasted space, and in case of a too narrow column the
alignment broke. So, we need to know the longest string in a column to be able
to align columns in the tabular output. Thus, the printing has to be postponed
till we have all data available, and can find the widest column. This value is
then used for aligning while printing the data.

Arrays of NmcOutputField (rows) are inserted into output_data array. When all
data have been added, print_data() can be used to print the whole output_data
array with proper alignment.

A single row can be printed using print_required_fields().

Also, output flags are redone to better match the new output_data array.
The flags are needed for every row (in tabular output); they are stored in
the first field (NmcOutputField) for the whole row.

Addapted set_val_str() and set_val_arr() to set value type (char * x char **).
Added set_val_strc(), set_val_arrc() for const values that should not be freed.

output_data takes ownership of the data added to it and takes care of freeing
the memory.

See e.g.
https://bugzilla.gnome.org/show_bug.cgi?id=699503
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Until now we have used a static width defined for each column for tabular
output. Even if this worked in most cases, it was not optimal, because by
using too wide columns we wasted space, and in case of a too narrow column the
alignment broke. So, we need to know the longest string in a column to be able
to align columns in the tabular output. Thus, the printing has to be postponed
till we have all data available, and can find the widest column. This value is
then used for aligning while printing the data.

Arrays of NmcOutputField (rows) are inserted into output_data array. When all
data have been added, print_data() can be used to print the whole output_data
array with proper alignment.

A single row can be printed using print_required_fields().

Also, output flags are redone to better match the new output_data array.
The flags are needed for every row (in tabular output); they are stored in
the first field (NmcOutputField) for the whole row.

Addapted set_val_str() and set_val_arr() to set value type (char * x char **).
Added set_val_strc(), set_val_arrc() for const values that should not be freed.

output_data takes ownership of the data added to it and takes care of freeing
the memory.

See e.g.
https://bugzilla.gnome.org/show_bug.cgi?id=699503
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: add global '--wait &lt;seconds&gt;' option - timeout waiting for operations</title>
<updated>2013-05-16T08:28:40+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-05-14T10:37:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=7d55426992052b5f3037c249c3df819dccc59717'/>
<id>7d55426992052b5f3037c249c3df819dccc59717</id>
<content type='text'>
--wait &lt;0-maxint&gt;

0    : means "do not wait". nmcli exits immediatelly with success.
1... : if operation doesn't finish within the timeout, nmcli exits with an error
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
--wait &lt;0-maxint&gt;

0    : means "do not wait". nmcli exits immediatelly with success.
1... : if operation doesn't finish within the timeout, nmcli exits with an error
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: remove obsolete 'nmcli nm'</title>
<updated>2013-04-24T08:04:43+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-04-18T13:07:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=3560024de91b450af706ae1b48c9d45ff2af1ae5'/>
<id>3560024de91b450af706ae1b48c9d45ff2af1ae5</id>
<content type='text'>
The functionality is present in 'general', 'networking' and 'radio'.
We changed syntax anyway, so it doesn't make much sense to keep 'nm'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The functionality is present in 'general', 'networking' and 'radio'.
We changed syntax anyway, so it doesn't make much sense to keep 'nm'.
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: accept shortcuts for --mode and --escape arguments</title>
<updated>2013-04-24T08:04:33+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-04-17T07:27:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=5f523d8f4d36a79bef395b81969b142387c87983'/>
<id>5f523d8f4d36a79bef395b81969b142387c87983</id>
<content type='text'>
--mode tabular | multiline  --&gt;  --mode t | m
--escape yes | no           --&gt;  --escape y | n
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
--mode tabular | multiline  --&gt;  --mode t | m
--escape yes | no           --&gt;  --escape y | n
</pre>
</div>
</content>
</entry>
<entry>
<title>cli: split 'nmcli switch' --&gt; 'nmcli networking' and 'nmcli radio'</title>
<updated>2013-04-08T21:14:11+00:00</updated>
<author>
<name>Jiří Klimeš</name>
<email>jklimes@redhat.com</email>
</author>
<published>2013-02-28T13:53:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/NetworkManager.git/commit/?id=9ddd7bc2dcdac62f38285cd2d17661637fa58aae'/>
<id>9ddd7bc2dcdac62f38285cd2d17661637fa58aae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
