mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 10:38:30 +02:00
We no longer add these. If you use Emacs, configure it yourself.
Also, due to our "smart-tab" usage the editor anyway does a subpar
job handling our tabs. However, on the upside every user can choose
whatever tab-width he/she prefers. If "smart-tabs" are used properly
(like we do), every tab-width will work.
No manual changes, just ran commands:
F=($(git grep -l -e '-\*-'))
sed '1 { /\/\* *-\*- *[mM]ode.*\*\/$/d }' -i "${F[@]}"
sed '1,4 { /^\(#\|--\|dnl\) *-\*- [mM]ode/d }' -i "${F[@]}"
Check remaining lines with:
git grep -e '-\*-'
The ultimate purpose of this is to cleanup our files and eventually use
SPDX license identifiers. For that, first get rid of the boilerplate lines.
59 lines
2.2 KiB
C
59 lines
2.2 KiB
C
/* NetworkManager -- Network link manager
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*
|
|
* Copyright (C) 2008 - 2012 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef __NM_DISPACHER_API_H__
|
|
#define __NM_DISPACHER_API_H__
|
|
|
|
#define NM_DISPATCHER_DBUS_SERVICE "org.freedesktop.nm_dispatcher"
|
|
#define NM_DISPATCHER_DBUS_INTERFACE "org.freedesktop.nm_dispatcher"
|
|
#define NM_DISPATCHER_DBUS_PATH "/org/freedesktop/nm_dispatcher"
|
|
|
|
#define NMD_CONNECTION_PROPS_PATH "path"
|
|
#define NMD_CONNECTION_PROPS_FILENAME "filename"
|
|
#define NMD_CONNECTION_PROPS_EXTERNAL "external"
|
|
|
|
#define NMD_DEVICE_PROPS_INTERFACE "interface"
|
|
#define NMD_DEVICE_PROPS_IP_INTERFACE "ip-interface"
|
|
#define NMD_DEVICE_PROPS_TYPE "type"
|
|
#define NMD_DEVICE_PROPS_STATE "state"
|
|
#define NMD_DEVICE_PROPS_PATH "path"
|
|
|
|
/* Actions */
|
|
#define NMD_ACTION_HOSTNAME "hostname"
|
|
#define NMD_ACTION_PRE_UP "pre-up"
|
|
#define NMD_ACTION_UP "up"
|
|
#define NMD_ACTION_PRE_DOWN "pre-down"
|
|
#define NMD_ACTION_DOWN "down"
|
|
#define NMD_ACTION_VPN_PRE_UP "vpn-pre-up"
|
|
#define NMD_ACTION_VPN_UP "vpn-up"
|
|
#define NMD_ACTION_VPN_PRE_DOWN "vpn-pre-down"
|
|
#define NMD_ACTION_VPN_DOWN "vpn-down"
|
|
#define NMD_ACTION_DHCP4_CHANGE "dhcp4-change"
|
|
#define NMD_ACTION_DHCP6_CHANGE "dhcp6-change"
|
|
#define NMD_ACTION_CONNECTIVITY_CHANGE "connectivity-change"
|
|
|
|
typedef enum {
|
|
DISPATCH_RESULT_UNKNOWN = 0,
|
|
DISPATCH_RESULT_SUCCESS = 1,
|
|
DISPATCH_RESULT_EXEC_FAILED = 2,
|
|
DISPATCH_RESULT_FAILED = 3,
|
|
DISPATCH_RESULT_TIMEOUT = 4,
|
|
} DispatchResult;
|
|
|
|
#endif /* __NM_DISPACHER_API_H__ */
|