Blame libnm-core/nm-setting-pppoe.h

Packit Service 87a54e
/* SPDX-License-Identifier: LGPL-2.1-or-later */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2007 - 2011 Red Hat, Inc.
Packit 5756e2
 * Copyright (C) 2007 - 2008 Novell, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NM_SETTING_PPPOE_H__
Packit 5756e2
#define __NM_SETTING_PPPOE_H__
Packit 5756e2
Packit Service a1bd4f
#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
Packit Service a1bd4f
    #error "Only <NetworkManager.h> can be included directly."
Packit 5756e2
#endif
Packit 5756e2
Packit 5756e2
#include "nm-setting.h"
Packit 5756e2
Packit 5756e2
G_BEGIN_DECLS
Packit 5756e2
Packit Service a1bd4f
#define NM_TYPE_SETTING_PPPOE (nm_setting_pppoe_get_type())
Packit Service a1bd4f
#define NM_SETTING_PPPOE(obj) \
Packit Service a1bd4f
    (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_PPPOE, NMSettingPppoe))
Packit Service a1bd4f
#define NM_SETTING_PPPOE_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_PPPOE, NMSettingPppoeClass))
Packit Service a1bd4f
#define NM_IS_SETTING_PPPOE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_PPPOE))
Packit Service a1bd4f
#define NM_IS_SETTING_PPPOE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_PPPOE))
Packit Service a1bd4f
#define NM_SETTING_PPPOE_GET_CLASS(obj) \
Packit Service a1bd4f
    (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_PPPOE, NMSettingPppoeClass))
Packit 5756e2
Packit 5756e2
#define NM_SETTING_PPPOE_SETTING_NAME "pppoe"
Packit 5756e2
Packit 5756e2
#define NM_SETTING_PPPOE_PARENT         "parent"
Packit 5756e2
#define NM_SETTING_PPPOE_SERVICE        "service"
Packit 5756e2
#define NM_SETTING_PPPOE_USERNAME       "username"
Packit 5756e2
#define NM_SETTING_PPPOE_PASSWORD       "password"
Packit 5756e2
#define NM_SETTING_PPPOE_PASSWORD_FLAGS "password-flags"
Packit 5756e2
Packit 5756e2
/**
Packit 5756e2
 * NMSettingPppoe:
Packit 5756e2
 *
Packit 5756e2
 * PPP-over-Ethernet Settings
Packit 5756e2
 */
Packit 5756e2
struct _NMSettingPppoe {
Packit Service a1bd4f
    NMSetting parent;
Packit 5756e2
};
Packit 5756e2
Packit 5756e2
typedef struct {
Packit Service a1bd4f
    NMSettingClass parent;
Packit 5756e2
Packit Service a1bd4f
    /*< private >*/
Packit Service a1bd4f
    gpointer padding[4];
Packit 5756e2
} NMSettingPppoeClass;
Packit 5756e2
Packit Service a1bd4f
GType nm_setting_pppoe_get_type(void);
Packit 5756e2
Packit Service a1bd4f
NMSetting *nm_setting_pppoe_new(void);
Packit 5756e2
NM_AVAILABLE_IN_1_10
Packit Service a1bd4f
const char *         nm_setting_pppoe_get_parent(NMSettingPppoe *setting);
Packit Service a1bd4f
const char *         nm_setting_pppoe_get_service(NMSettingPppoe *setting);
Packit Service a1bd4f
const char *         nm_setting_pppoe_get_username(NMSettingPppoe *setting);
Packit Service a1bd4f
const char *         nm_setting_pppoe_get_password(NMSettingPppoe *setting);
Packit Service a1bd4f
NMSettingSecretFlags nm_setting_pppoe_get_password_flags(NMSettingPppoe *setting);
Packit 5756e2
Packit 5756e2
G_END_DECLS
Packit 5756e2
Packit 5756e2
#endif /* __NM_SETTING_PPPOE_H__ */