diff options
author | Thomas Haller <thaller@redhat.com> | 2019-09-25 13:13:40 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-09-30 18:05:50 +0200 |
commit | f3165395b062d84fd50c31961b0e88468f70275d (patch) | |
tree | fcef873d6560e4330e66c35b7d5c80847a0e800a /examples | |
parent | 450b23d70f1124849ba44b3f72b7efa67084b1c0 (diff) | |
download | NetworkManager-th/cleanup-file-header-comments.tar.gz |
all: manually drop code comments with file descriptionth/cleanup-file-header-comments
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/js/get_ips.js | 1 | ||||
-rwxr-xr-x | examples/lua/lgi/add-connection.lua | 3 | ||||
-rwxr-xr-x | examples/lua/lgi/change-vpn-username.lua | 3 | ||||
-rwxr-xr-x | examples/lua/lgi/deactivate-all.lua | 3 | ||||
-rwxr-xr-x | examples/lua/lgi/get-basic-nm-info.lua | 3 | ||||
-rwxr-xr-x | examples/lua/lgi/get-ips.lua | 3 | ||||
-rwxr-xr-x | examples/lua/lgi/list-connections.lua | 3 | ||||
-rwxr-xr-x | examples/lua/lgi/list-devices.lua | 3 | ||||
-rwxr-xr-x | examples/lua/lgi/show-wifi-networks.lua | 3 | ||||
-rwxr-xr-x | examples/python/gi/add_connection.py | 1 | ||||
-rwxr-xr-x | examples/python/gi/checkpoint.py | 3 | ||||
-rwxr-xr-x | examples/python/gi/deactivate-all.py | 1 | ||||
-rwxr-xr-x | examples/python/gi/device-state-ip4config.py | 1 | ||||
-rwxr-xr-x | examples/python/gi/dns.py | 1 | ||||
-rwxr-xr-x | examples/python/gi/get-lldp-neighbors.py | 1 | ||||
-rwxr-xr-x | examples/python/gi/get_ips.py | 1 | ||||
-rwxr-xr-x | examples/python/gi/list-connections.py | 1 | ||||
-rwxr-xr-x | examples/python/gi/nm-wg-set | 1 | ||||
-rwxr-xr-x | examples/python/gi/setting-user-data.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/show-wifi-networks.py | 2 |
20 files changed, 13 insertions, 27 deletions
diff --git a/examples/js/get_ips.js b/examples/js/get_ips.js index e5cd84be9b..b7d5792ff0 100755 --- a/examples/js/get_ips.js +++ b/examples/js/get_ips.js @@ -1,6 +1,5 @@ #!/usr/bin/env gjs // SPDX-License-Identifier: GPL-2.0+ - /* * Copyright 2014,2017 Red Hat, Inc. */ diff --git a/examples/lua/lgi/add-connection.lua b/examples/lua/lgi/add-connection.lua index 6e31154c11..f85d47f2e8 100755 --- a/examples/lua/lgi/add-connection.lua +++ b/examples/lua/lgi/add-connection.lua @@ -3,13 +3,12 @@ -- -- Copyright 2015 Red Hat, Inc. -- --- + -- Adding an Ethernet connection to NetworkManager in Lua. -- The example uses libnm library using GObject introspection via Lua lgi module. -- Most distribution ship the module as lua-lgi package. -- libnm guide: https://developer.gnome.org/libnm/1.0/ -- Lua-lgi guide: https://github.com/pavouk/lgi/blob/master/docs/guide.md --- local lgi = require 'lgi' local GLib = lgi.GLib diff --git a/examples/lua/lgi/change-vpn-username.lua b/examples/lua/lgi/change-vpn-username.lua index 9b2b3490c4..558d11fdf8 100755 --- a/examples/lua/lgi/change-vpn-username.lua +++ b/examples/lua/lgi/change-vpn-username.lua @@ -3,13 +3,12 @@ -- -- Copyright 2015 Red Hat, Inc. -- --- + -- This example changes username in a VPN profile. -- The example uses libnm library using GObject introspection via Lua lgi module. -- Most distribution ship the module as lua-lgi package. -- libnm guide: https://developer.gnome.org/libnm/1.0/ -- Lua-lgi guide: https://github.com/pavouk/lgi/blob/master/docs/guide.md --- local lgi = require 'lgi' local NM = lgi.NM diff --git a/examples/lua/lgi/deactivate-all.lua b/examples/lua/lgi/deactivate-all.lua index 9a9ac810b1..ea416773ab 100755 --- a/examples/lua/lgi/deactivate-all.lua +++ b/examples/lua/lgi/deactivate-all.lua @@ -3,13 +3,12 @@ -- -- Copyright 2015 Red Hat, Inc. -- --- + -- Deactivate all active connections (of certain type). -- The example uses libnm library using GObject introspection via Lua lgi module. -- Most distribution ship the module as lua-lgi package. -- libnm guide: https://developer.gnome.org/libnm/1.0/ -- Lua-lgi guide: https://github.com/pavouk/lgi/blob/master/docs/guide.md --- local lgi = require 'lgi' local NM = lgi.NM diff --git a/examples/lua/lgi/get-basic-nm-info.lua b/examples/lua/lgi/get-basic-nm-info.lua index 9d84e1342b..038916f88a 100755 --- a/examples/lua/lgi/get-basic-nm-info.lua +++ b/examples/lua/lgi/get-basic-nm-info.lua @@ -3,13 +3,12 @@ -- -- Copyright 2015 Red Hat, Inc. -- --- + -- This example gets basic information about NetworkManager. -- The example uses libnm library using GObject introspection via Lua lgi module. -- Most distribution ship the module as lua-lgi package. -- libnm guide: https://developer.gnome.org/libnm/1.0/ -- Lua-lgi guide: https://github.com/pavouk/lgi/blob/master/docs/guide.md --- local lgi = require 'lgi' local NM = lgi.NM diff --git a/examples/lua/lgi/get-ips.lua b/examples/lua/lgi/get-ips.lua index b1861cbec3..e909fe8201 100755 --- a/examples/lua/lgi/get-ips.lua +++ b/examples/lua/lgi/get-ips.lua @@ -3,14 +3,13 @@ -- -- Copyright 2015 Red Hat, Inc. -- --- + -- This example shows how to get addresses, routes and DNS information from -- NMIP4Config and NMIP6Config (got out of NMDevice) -- The example uses libnm library using GObject introspection via Lua lgi module. -- Most distribution ship the module as lua-lgi package. -- libnm guide: https://developer.gnome.org/libnm/1.0/ -- Lua-lgi guide: https://github.com/pavouk/lgi/blob/master/docs/guide.md --- local lgi = require 'lgi' local NM = lgi.NM diff --git a/examples/lua/lgi/list-connections.lua b/examples/lua/lgi/list-connections.lua index 50dd97ceb8..f22bcef395 100755 --- a/examples/lua/lgi/list-connections.lua +++ b/examples/lua/lgi/list-connections.lua @@ -3,13 +3,12 @@ -- -- Copyright 2015 Red Hat, Inc. -- --- + -- Getting and printing all NetworkManager connection in Lua. -- The example uses libnm library using GObject introspection via Lua lgi module. -- Most distribution ship the module as lua-lgi package. -- libnm guide: https://developer.gnome.org/libnm/1.0/ -- Lua-lgi guide: https://github.com/pavouk/lgi/blob/master/docs/guide.md --- local lgi = require 'lgi' local GLib = lgi.GLib diff --git a/examples/lua/lgi/list-devices.lua b/examples/lua/lgi/list-devices.lua index a1410b49fc..9f87d3e3be 100755 --- a/examples/lua/lgi/list-devices.lua +++ b/examples/lua/lgi/list-devices.lua @@ -3,13 +3,12 @@ -- -- Copyright 2015 Red Hat, Inc. -- --- + -- Getting basic information about network interfaces known to NetworkManager. -- The example uses libnm library using GObject introspection via Lua lgi module. -- Most distribution ship the module as lua-lgi package. -- libnm guide: https://developer.gnome.org/libnm/1.0/ -- Lua-lgi guide: https://github.com/pavouk/lgi/blob/master/docs/guide.md --- local lgi = require 'lgi' local GLib = lgi.GLib diff --git a/examples/lua/lgi/show-wifi-networks.lua b/examples/lua/lgi/show-wifi-networks.lua index 6accf3eb38..d1f24a4770 100755 --- a/examples/lua/lgi/show-wifi-networks.lua +++ b/examples/lua/lgi/show-wifi-networks.lua @@ -3,13 +3,12 @@ -- -- Copyright 2015 Red Hat, Inc. -- --- + -- This example lists Wi-Fi access points NetworkManager scanned on Wi-Fi devices. -- The example uses libnm library using GObject introspection via Lua lgi module. -- Most distribution ship the module as lua-lgi package. -- libnm guide: https://developer.gnome.org/libnm/1.0/ -- Lua-lgi guide: https://github.com/pavouk/lgi/blob/master/docs/guide.md --- local lgi = require 'lgi' local NM = lgi.NM diff --git a/examples/python/gi/add_connection.py b/examples/python/gi/add_connection.py index cd7ea4225a..b650b9f388 100755 --- a/examples/python/gi/add_connection.py +++ b/examples/python/gi/add_connection.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ - # # Copyright 2014 Red Hat, Inc. # diff --git a/examples/python/gi/checkpoint.py b/examples/python/gi/checkpoint.py index ba4e1dc650..c5b20d683c 100755 --- a/examples/python/gi/checkpoint.py +++ b/examples/python/gi/checkpoint.py @@ -1,7 +1,8 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ - +# # Copyright 2017 Red Hat, Inc. +# import sys diff --git a/examples/python/gi/deactivate-all.py b/examples/python/gi/deactivate-all.py index 6f0e3ab92e..a10c0ebb4b 100755 --- a/examples/python/gi/deactivate-all.py +++ b/examples/python/gi/deactivate-all.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ - # # Copyright 2015 Red Hat, Inc. # diff --git a/examples/python/gi/device-state-ip4config.py b/examples/python/gi/device-state-ip4config.py index cfead08197..18848d07fc 100755 --- a/examples/python/gi/device-state-ip4config.py +++ b/examples/python/gi/device-state-ip4config.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# # Copyright (C) 2012 Red Hat, Inc. # diff --git a/examples/python/gi/dns.py b/examples/python/gi/dns.py index ecca579400..f93f97e514 100755 --- a/examples/python/gi/dns.py +++ b/examples/python/gi/dns.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# # Copyright (C) 2016 Red Hat, Inc. # diff --git a/examples/python/gi/get-lldp-neighbors.py b/examples/python/gi/get-lldp-neighbors.py index 2cb1c7f61d..d1bed32c6b 100755 --- a/examples/python/gi/get-lldp-neighbors.py +++ b/examples/python/gi/get-lldp-neighbors.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# # Copyright (C) 2015 Red Hat, Inc. # diff --git a/examples/python/gi/get_ips.py b/examples/python/gi/get_ips.py index 5a5419b4df..12378117a7 100755 --- a/examples/python/gi/get_ips.py +++ b/examples/python/gi/get_ips.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# # Copyright 2014 Red Hat, Inc. # diff --git a/examples/python/gi/list-connections.py b/examples/python/gi/list-connections.py index da88726376..eee687c9e8 100755 --- a/examples/python/gi/list-connections.py +++ b/examples/python/gi/list-connections.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ - # # Copyright 2012 - 2014 Red Hat, Inc. # diff --git a/examples/python/gi/nm-wg-set b/examples/python/gi/nm-wg-set index 27ce55102c..a151c6094b 100755 --- a/examples/python/gi/nm-wg-set +++ b/examples/python/gi/nm-wg-set @@ -2,6 +2,7 @@ # SPDX-License-Identifier: GPL-2.0+ # # Copyright 2018 - 2019 Red Hat, Inc. +# # nm-wg-set: modify an existing WireGuard connection profile. # diff --git a/examples/python/gi/setting-user-data.py b/examples/python/gi/setting-user-data.py index 4ada5d1ec0..dac81b78a8 100755 --- a/examples/python/gi/setting-user-data.py +++ b/examples/python/gi/setting-user-data.py @@ -1,8 +1,8 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ - # # Copyright 2017 Red Hat, Inc. +# # # set and show user-data for a connection: diff --git a/examples/python/gi/show-wifi-networks.py b/examples/python/gi/show-wifi-networks.py index 4c7607b30c..e1ee4c3d5d 100755 --- a/examples/python/gi/show-wifi-networks.py +++ b/examples/python/gi/show-wifi-networks.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# SPDX-License-Identifier: GPL-2.0+ # coding=utf-8 +# SPDX-License-Identifier: GPL-2.0+ # # Copyright (C) 2013 Red Hat, Inc. # |