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

Packit Service 87a54e
/* SPDX-License-Identifier: LGPL-2.1-or-later */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2007 - 2008 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NM_SETTING_ADSL_H__
Packit 5756e2
#define __NM_SETTING_ADSL_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_ADSL (nm_setting_adsl_get_type())
Packit Service a1bd4f
#define NM_SETTING_ADSL(obj) \
Packit Service a1bd4f
    (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_ADSL, NMSettingAdsl))
Packit Service a1bd4f
#define NM_SETTING_ADSL_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_ADSL, NMSettingAdslClass))
Packit Service a1bd4f
#define NM_IS_SETTING_ADSL(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_ADSL))
Packit Service a1bd4f
#define NM_IS_SETTING_ADSL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_ADSL))
Packit Service a1bd4f
#define NM_SETTING_ADSL_GET_CLASS(obj) \
Packit Service a1bd4f
    (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_ADSL, NMSettingAdslClass))
Packit 5756e2
Packit 5756e2
#define NM_SETTING_ADSL_SETTING_NAME "adsl"
Packit 5756e2
Packit Service a1bd4f
#define NM_SETTING_ADSL_USERNAME       "username"
Packit Service a1bd4f
#define NM_SETTING_ADSL_PASSWORD       "password"
Packit Service a1bd4f
#define NM_SETTING_ADSL_PASSWORD_FLAGS "password-flags"
Packit Service a1bd4f
#define NM_SETTING_ADSL_PROTOCOL       "protocol"
Packit Service a1bd4f
#define NM_SETTING_ADSL_ENCAPSULATION  "encapsulation"
Packit Service a1bd4f
#define NM_SETTING_ADSL_VPI            "vpi"
Packit Service a1bd4f
#define NM_SETTING_ADSL_VCI            "vci"
Packit 5756e2
Packit Service a1bd4f
#define NM_SETTING_ADSL_PROTOCOL_PPPOA  "pppoa"
Packit Service a1bd4f
#define NM_SETTING_ADSL_PROTOCOL_PPPOE  "pppoe"
Packit Service a1bd4f
#define NM_SETTING_ADSL_PROTOCOL_IPOATM "ipoatm"
Packit 5756e2
Packit 5756e2
#define NM_SETTING_ADSL_ENCAPSULATION_VCMUX "vcmux"
Packit 5756e2
#define NM_SETTING_ADSL_ENCAPSULATION_LLC   "llc"
Packit 5756e2
Packit 5756e2
/**
Packit 5756e2
 * NMSettingAdsl:
Packit 5756e2
 *
Packit 5756e2
 * ADSL Settings
Packit 5756e2
 */
Packit 5756e2
struct _NMSettingAdsl {
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
} NMSettingAdslClass;
Packit 5756e2
Packit Service a1bd4f
GType nm_setting_adsl_get_type(void);
Packit 5756e2
Packit Service a1bd4f
NMSetting *          nm_setting_adsl_new(void);
Packit Service a1bd4f
const char *         nm_setting_adsl_get_username(NMSettingAdsl *setting);
Packit Service a1bd4f
const char *         nm_setting_adsl_get_password(NMSettingAdsl *setting);
Packit Service a1bd4f
const char *         nm_setting_adsl_get_protocol(NMSettingAdsl *setting);
Packit Service a1bd4f
const char *         nm_setting_adsl_get_encapsulation(NMSettingAdsl *setting);
Packit Service a1bd4f
guint32              nm_setting_adsl_get_vpi(NMSettingAdsl *setting);
Packit Service a1bd4f
guint32              nm_setting_adsl_get_vci(NMSettingAdsl *setting);
Packit Service a1bd4f
NMSettingSecretFlags nm_setting_adsl_get_password_flags(NMSettingAdsl *setting);
Packit 5756e2
Packit 5756e2
G_END_DECLS
Packit 5756e2
Packit 5756e2
#endif /* __NM_SETTING_ADSL_H__ */