Blame libnm-core/nm-libnm-core-aux/nm-dispatcher-api.h

Packit Service 87a54e
/* SPDX-License-Identifier: LGPL-2.1-or-later */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2008 - 2012 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NM_DISPACHER_API_H__
Packit 5756e2
#define __NM_DISPACHER_API_H__
Packit 5756e2
Packit 5756e2
#define NM_DISPATCHER_DBUS_SERVICE   "org.freedesktop.nm_dispatcher"
Packit 5756e2
#define NM_DISPATCHER_DBUS_INTERFACE "org.freedesktop.nm_dispatcher"
Packit 5756e2
#define NM_DISPATCHER_DBUS_PATH      "/org/freedesktop/nm_dispatcher"
Packit 5756e2
Packit Service a1bd4f
#define NMD_CONNECTION_PROPS_PATH     "path"
Packit Service a1bd4f
#define NMD_CONNECTION_PROPS_FILENAME "filename"
Packit Service a1bd4f
#define NMD_CONNECTION_PROPS_EXTERNAL "external"
Packit 5756e2
Packit Service a1bd4f
#define NMD_DEVICE_PROPS_INTERFACE    "interface"
Packit Service a1bd4f
#define NMD_DEVICE_PROPS_IP_INTERFACE "ip-interface"
Packit Service a1bd4f
#define NMD_DEVICE_PROPS_TYPE         "type"
Packit Service a1bd4f
#define NMD_DEVICE_PROPS_STATE        "state"
Packit Service a1bd4f
#define NMD_DEVICE_PROPS_PATH         "path"
Packit 5756e2
Packit 5756e2
/* Actions */
Packit Service a1bd4f
#define NMD_ACTION_HOSTNAME            "hostname"
Packit Service a1bd4f
#define NMD_ACTION_PRE_UP              "pre-up"
Packit Service a1bd4f
#define NMD_ACTION_UP                  "up"
Packit Service a1bd4f
#define NMD_ACTION_PRE_DOWN            "pre-down"
Packit Service a1bd4f
#define NMD_ACTION_DOWN                "down"
Packit Service a1bd4f
#define NMD_ACTION_VPN_PRE_UP          "vpn-pre-up"
Packit Service a1bd4f
#define NMD_ACTION_VPN_UP              "vpn-up"
Packit Service a1bd4f
#define NMD_ACTION_VPN_PRE_DOWN        "vpn-pre-down"
Packit Service a1bd4f
#define NMD_ACTION_VPN_DOWN            "vpn-down"
Packit Service a1bd4f
#define NMD_ACTION_DHCP4_CHANGE        "dhcp4-change"
Packit Service a1bd4f
#define NMD_ACTION_DHCP6_CHANGE        "dhcp6-change"
Packit 5756e2
#define NMD_ACTION_CONNECTIVITY_CHANGE "connectivity-change"
Packit 5756e2
Packit 5756e2
typedef enum {
Packit Service a1bd4f
    DISPATCH_RESULT_UNKNOWN     = 0,
Packit Service a1bd4f
    DISPATCH_RESULT_SUCCESS     = 1,
Packit Service a1bd4f
    DISPATCH_RESULT_EXEC_FAILED = 2,
Packit Service a1bd4f
    DISPATCH_RESULT_FAILED      = 3,
Packit Service a1bd4f
    DISPATCH_RESULT_TIMEOUT     = 4,
Packit 5756e2
} DispatchResult;
Packit 5756e2
Packit 5756e2
#endif /* __NM_DISPACHER_API_H__ */