Blame src/devices/nm-device-vlan.h

Packit Service 87a54e
/* SPDX-License-Identifier: GPL-2.0-or-later */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2012 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NETWORKMANAGER_DEVICE_VLAN_H__
Packit 5756e2
#define __NETWORKMANAGER_DEVICE_VLAN_H__
Packit 5756e2
Packit 5756e2
#include "nm-device.h"
Packit 5756e2
Packit Service a1bd4f
#define NM_TYPE_DEVICE_VLAN (nm_device_vlan_get_type())
Packit Service a1bd4f
#define NM_DEVICE_VLAN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_DEVICE_VLAN, NMDeviceVlan))
Packit Service a1bd4f
#define NM_DEVICE_VLAN_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_DEVICE_VLAN, NMDeviceVlanClass))
Packit Service a1bd4f
#define NM_IS_DEVICE_VLAN(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_DEVICE_VLAN))
Packit Service a1bd4f
#define NM_IS_DEVICE_VLAN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_DEVICE_VLAN))
Packit Service a1bd4f
#define NM_DEVICE_VLAN_GET_CLASS(obj) \
Packit Service a1bd4f
    (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_DEVICE_VLAN, NMDeviceVlanClass))
Packit 5756e2
Packit 5756e2
typedef enum {
Packit Service a1bd4f
    NM_VLAN_ERROR_CONNECTION_NOT_VLAN = 0, /*< nick=ConnectionNotVlan >*/
Packit Service a1bd4f
    NM_VLAN_ERROR_CONNECTION_INVALID,      /*< nick=ConnectionInvalid >*/
Packit Service a1bd4f
    NM_VLAN_ERROR_CONNECTION_INCOMPATIBLE, /*< nick=ConnectionIncompatible >*/
Packit 5756e2
} NMVlanError;
Packit 5756e2
Packit Service a1bd4f
#define NM_DEVICE_VLAN_ID "vlan-id"
Packit 5756e2
Packit Service a1bd4f
typedef struct _NMDeviceVlan      NMDeviceVlan;
Packit 5756e2
typedef struct _NMDeviceVlanClass NMDeviceVlanClass;
Packit 5756e2
Packit Service a1bd4f
GType nm_device_vlan_get_type(void);
Packit 5756e2
Packit 5756e2
#endif /* __NETWORKMANAGER_DEVICE_VLAN_H__ */