Blame libnm-core/nm-utils-private.h

Packit Service a1bd4f
/* SPDX-License-Identifier: LGPL-2.1+ */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2005 - 2017 Red Hat, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NM_UTILS_PRIVATE_H__
Packit 5756e2
#define __NM_UTILS_PRIVATE_H__
Packit 5756e2
Packit Service a1bd4f
#if !((NETWORKMANAGER_COMPILATION) &NM_NETWORKMANAGER_COMPILATION_WITH_LIBNM_CORE_PRIVATE)
Packit Service a1bd4f
    #error Cannot use this header.
Packit 5756e2
#endif
Packit 5756e2
Packit 5756e2
#include "nm-setting-private.h"
Packit 5756e2
#include "nm-setting-ip-config.h"
Packit 5756e2
Packit 5756e2
#define NM_VARIANT_ATTRIBUTE_SPEC_DEFINE(_name, _type, ...) \
Packit Service a1bd4f
    (&((const NMVariantAttributeSpec){.name = _name, .type = _type, __VA_ARGS__}))
Packit Service a1bd4f
Packit Service a1bd4f
gboolean _nm_utils_string_slist_validate(GSList *list, const char **valid_values);
Packit Service a1bd4f
Packit Service a1bd4f
gboolean _nm_utils_secret_flags_validate(NMSettingSecretFlags secret_flags,
Packit Service a1bd4f
                                         const char *         setting_name,
Packit Service a1bd4f
                                         const char *         property_name,
Packit Service a1bd4f
                                         NMSettingSecretFlags disallowed_flags,
Packit Service a1bd4f
                                         GError **            error);
Packit Service a1bd4f
Packit Service a1bd4f
gboolean _nm_utils_wps_method_validate(NMSettingWirelessSecurityWpsMethod wps_method,
Packit Service a1bd4f
                                       const char *                       setting_name,
Packit Service a1bd4f
                                       const char *                       property_name,
Packit Service a1bd4f
                                       gboolean                           wps_required,
Packit Service a1bd4f
                                       GError **                          error);
Packit 5756e2
Packit 5756e2
/* D-Bus transform funcs */
Packit 5756e2
Packit 5756e2
extern const NMSettInfoPropertType nm_sett_info_propert_type_strdict;
Packit 5756e2
Packit 5756e2
extern const NMSettInfoPropertType nm_sett_info_propert_type_mac_address;
Packit 5756e2
Packit 5756e2
extern const NMSettInfoPropertType nm_sett_info_propert_type_cloned_mac_address;
Packit 5756e2
Packit 5756e2
extern const NMSettInfoPropertType nm_sett_info_propert_type_assigned_mac_address;
Packit 5756e2
Packit 5756e2
extern const NMSettInfoPropertType nm_sett_info_propert_type_bridge_vlans;
Packit 5756e2
Packit Service a1bd4f
void _nm_utils_strdict_from_dbus(GVariant *dbus_value, GValue *prop_value);
Packit 5756e2
Packit Service a1bd4f
void _nm_utils_bytes_from_dbus(GVariant *dbus_value, GValue *prop_value);
Packit 5756e2
Packit Service a1bd4f
char *_nm_utils_hwaddr_canonical_or_invalid(const char *mac, gssize length);
Packit 5756e2
Packit Service a1bd4f
gboolean _nm_utils_hwaddr_link_local_valid(const char *mac);
Packit 5756e2
Packit Service a1bd4f
gboolean _nm_sriov_vf_parse_vlans(NMSriovVF *vf, const char *str, GError **error);
Packit 5756e2
Packit Service a1bd4f
gboolean _nm_utils_bridge_vlan_verify_list(GPtrArray * vlans,
Packit Service a1bd4f
                                           gboolean    check_normalizable,
Packit Service a1bd4f
                                           GError **   error,
Packit Service a1bd4f
                                           const char *setting,
Packit Service a1bd4f
                                           const char *property);
Packit 5756e2
Packit 5756e2
#endif