mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-22 03:20:07 +01:00
```bash
readarray -d '' FILES < <(
git ls-files -z \
':(exclude)po' \
':(exclude)shared/c-rbtree' \
':(exclude)shared/c-list' \
':(exclude)shared/c-siphash' \
':(exclude)shared/c-stdaux' \
':(exclude)shared/n-acd' \
':(exclude)shared/n-dhcp4' \
':(exclude)src/systemd/src' \
':(exclude)shared/systemd/src' \
':(exclude)m4' \
':(exclude)COPYING*'
)
sed \
-e 's/^\(--\|#\| \*\) *\(([cC]) *\)\?Copyright \+\(\(([cC])\) \+\)\?\(\(20\|19\)[0-9][0-9]\) *[-–] *\(\(20\|19\)[0-9][0-9]\) \+\([^ ].*\)$/\1 C1pyright#\5 - \7#\9/' \
-e 's/^\(--\|#\| \*\) *\(([cC]) *\)\?Copyright \+\(\(([cC])\) \+\)\?\(\(20\|19\)[0-9][0-9]\) *[,] *\(\(20\|19\)[0-9][0-9]\) \+\([^ ].*\)$/\1 C2pyright#\5, \7#\9/' \
-e 's/^\(--\|#\| \*\) *\(([cC]) *\)\?Copyright \+\(\(([cC])\) \+\)\?\(\(20\|19\)[0-9][0-9]\) \+\([^ ].*\)$/\1 C3pyright#\5#\7/' \
-e 's/^Copyright \(\(20\|19\)[0-9][0-9]\) \+\([^ ].*\)$/C4pyright#\1#\3/' \
-i \
"${FILES[@]}"
echo ">>> untouched Copyright lines"
git grep Copyright "${FILES[@]}"
echo ">>> Copyright lines with unusual extra"
git grep '\<C[0-9]pyright#' "${FILES[@]}" | grep -i reserved
sed \
-e 's/\<C[0-9]pyright#\([^#]*\)#\(.*\)$/Copyright (C) \1 \2/' \
-i \
"${FILES[@]}"
```
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/298
40 lines
1.8 KiB
C
40 lines
1.8 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2010 - 2014 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef NMC_SETTINGS_H
|
|
#define NMC_SETTINGS_H
|
|
|
|
#include "nm-meta-setting.h"
|
|
#include "nm-meta-setting-desc.h"
|
|
|
|
#include "nmcli.h"
|
|
|
|
/*****************************************************************************/
|
|
|
|
void nmc_setting_ip4_connect_handlers (NMSettingIPConfig *setting);
|
|
void nmc_setting_ip6_connect_handlers (NMSettingIPConfig *setting);
|
|
void nmc_setting_proxy_connect_handlers (NMSettingProxy *setting);
|
|
void nmc_setting_wireless_connect_handlers (NMSettingWireless *setting);
|
|
void nmc_setting_connection_connect_handlers (NMSettingConnection *setting, NMConnection *connection);
|
|
|
|
char **nmc_setting_get_valid_properties (NMSetting *setting);
|
|
char *nmc_setting_get_property_desc (NMSetting *setting, const char *prop);
|
|
const char *const*nmc_setting_get_property_allowed_values (NMSetting *setting, const char *prop, char ***out_to_free);
|
|
char *nmc_setting_get_property (NMSetting *setting,
|
|
const char *prop,
|
|
GError **error);
|
|
char *nmc_setting_get_property_parsable (NMSetting *setting,
|
|
const char *prop,
|
|
GError **error);
|
|
gboolean nmc_setting_set_property (NMClient *client,
|
|
NMSetting *setting,
|
|
const char *prop,
|
|
NMMetaAccessorModifier modifier,
|
|
const char *val,
|
|
GError **error);
|
|
|
|
gboolean setting_details (const NmcConfig *nmc_config, NMSetting *setting, const char *one_prop);
|
|
|
|
#endif /* NMC_SETTINGS_H */
|