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

Packit Service a1bd4f
/* SPDX-License-Identifier: LGPL-2.1+ */
Packit Service a1bd4f
/*
Packit Service a1bd4f
 * Copyright (C) 2020 Red Hat, Inc.
Packit Service a1bd4f
 */
Packit Service a1bd4f
Packit Service a1bd4f
#ifndef NM_SETTING_HOSTNAME_H
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME_H
Packit Service a1bd4f
Packit Service a1bd4f
#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
Packit Service a1bd4f
    #error "Only <NetworkManager.h> can be included directly."
Packit Service a1bd4f
#endif
Packit Service a1bd4f
Packit Service a1bd4f
#include "nm-setting.h"
Packit Service a1bd4f
Packit Service a1bd4f
G_BEGIN_DECLS
Packit Service a1bd4f
Packit Service a1bd4f
#define NM_TYPE_SETTING_HOSTNAME (nm_setting_hostname_get_type())
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME(obj) \
Packit Service a1bd4f
    (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SETTING_HOSTNAME, NMSettingHostname))
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SETTING_HOSTNAME, NMSettingHostnameClass))
Packit Service a1bd4f
#define NM_IS_SETTING_HOSTNAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SETTING_HOSTNAME))
Packit Service a1bd4f
#define NM_IS_SETTING_HOSTNAME_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SETTING_HOSTNAME))
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME_GET_CLASS(obj) \
Packit Service a1bd4f
    (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SETTING_HOSTNAME, NMSettingHostnameClass))
Packit Service a1bd4f
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME_SETTING_NAME "hostname"
Packit Service a1bd4f
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME_PRIORITY          "priority"
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME_FROM_DHCP         "from-dhcp"
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME_FROM_DNS_LOOKUP   "from-dns-lookup"
Packit Service a1bd4f
#define NM_SETTING_HOSTNAME_ONLY_FROM_DEFAULT "only-from-default"
Packit Service a1bd4f
Packit Service a1bd4f
typedef struct _NMSettingHostnameClass NMSettingHostnameClass;
Packit Service a1bd4f
Packit Service a1bd4f
NM_AVAILABLE_IN_1_30
Packit Service a1bd4f
GType nm_setting_hostname_get_type(void);
Packit Service a1bd4f
NM_AVAILABLE_IN_1_30
Packit Service a1bd4f
NMSetting *nm_setting_hostname_new(void);
Packit Service a1bd4f
Packit Service a1bd4f
NM_AVAILABLE_IN_1_30
Packit Service a1bd4f
int nm_setting_hostname_get_priority(NMSettingHostname *setting);
Packit Service a1bd4f
NM_AVAILABLE_IN_1_30
Packit Service a1bd4f
NMTernary nm_setting_hostname_get_from_dhcp(NMSettingHostname *setting);
Packit Service a1bd4f
NM_AVAILABLE_IN_1_30
Packit Service a1bd4f
NMTernary nm_setting_hostname_get_from_dns_lookup(NMSettingHostname *setting);
Packit Service a1bd4f
NM_AVAILABLE_IN_1_30
Packit Service a1bd4f
NMTernary nm_setting_hostname_get_only_from_default(NMSettingHostname *setting);
Packit Service a1bd4f
Packit Service a1bd4f
G_END_DECLS
Packit Service a1bd4f
Packit Service a1bd4f
#endif /* NM_SETTING_HOSTNAME_H */