2010-03-31 17:14:35 +02:00
|
|
|
/* nmcli - command-line tool to control NetworkManager
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
*
|
2012-03-05 07:32:21 +01:00
|
|
|
* (C) Copyright 2010 - 2012 Red Hat, Inc.
|
2010-03-31 17:14:35 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef NMC_SETTINGS_H
|
|
|
|
|
#define NMC_SETTINGS_H
|
|
|
|
|
|
|
|
|
|
#include <nm-setting-connection.h>
|
|
|
|
|
#include <nm-setting-wired.h>
|
2011-05-17 21:03:20 +03:00
|
|
|
#include <nm-setting-adsl.h>
|
2010-03-31 17:14:35 +02:00
|
|
|
#include <nm-setting-8021x.h>
|
|
|
|
|
#include <nm-setting-wireless.h>
|
|
|
|
|
#include <nm-setting-wireless-security.h>
|
|
|
|
|
#include <nm-setting-ip4-config.h>
|
|
|
|
|
#include <nm-setting-ip6-config.h>
|
|
|
|
|
#include <nm-setting-serial.h>
|
|
|
|
|
#include <nm-setting-ppp.h>
|
|
|
|
|
#include <nm-setting-pppoe.h>
|
|
|
|
|
#include <nm-setting-gsm.h>
|
|
|
|
|
#include <nm-setting-cdma.h>
|
|
|
|
|
#include <nm-setting-bluetooth.h>
|
|
|
|
|
#include <nm-setting-olpc-mesh.h>
|
|
|
|
|
#include <nm-setting-vpn.h>
|
2011-01-06 17:01:55 -06:00
|
|
|
#include <nm-setting-wimax.h>
|
2011-12-09 13:20:36 +01:00
|
|
|
#include <nm-setting-infiniband.h>
|
2012-03-05 07:32:21 +01:00
|
|
|
#include <nm-setting-bond.h>
|
2012-10-30 17:11:28 -05:00
|
|
|
#include <nm-setting-bridge.h>
|
|
|
|
|
#include <nm-setting-bridge-port.h>
|
2012-03-05 07:50:28 +01:00
|
|
|
#include <nm-setting-vlan.h>
|
2010-03-31 17:14:35 +02:00
|
|
|
|
|
|
|
|
#include "nmcli.h"
|
|
|
|
|
#include "utils.h"
|
|
|
|
|
|
2013-01-18 15:21:00 +01:00
|
|
|
/* --- Types --- */
|
|
|
|
|
|
|
|
|
|
typedef NMSetting* (*NmcSettingNewFunc) (void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* --- Functions --- */
|
|
|
|
|
|
|
|
|
|
void nmc_properties_init (void);
|
|
|
|
|
void nmc_properties_cleanup (void);
|
|
|
|
|
|
|
|
|
|
NmcSettingNewFunc nmc_setting_new_func (const char *name);
|
|
|
|
|
void nmc_setting_custom_init (NMSetting *setting);
|
|
|
|
|
|
|
|
|
|
char **nmc_setting_get_valid_properties (NMSetting *setting);
|
|
|
|
|
char *nmc_setting_get_property_desc (NMSetting *setting, const char *prop);
|
|
|
|
|
const char *nmc_setting_get_property_allowed_values (NMSetting *setting, const char *prop);
|
|
|
|
|
char *nmc_setting_get_property (NMSetting *setting,
|
|
|
|
|
const char *prop,
|
|
|
|
|
GError **error);
|
|
|
|
|
gboolean nmc_setting_set_property (NMSetting *setting,
|
|
|
|
|
const char *prop,
|
|
|
|
|
const char *val,
|
|
|
|
|
GError **error);
|
|
|
|
|
gboolean nmc_setting_remove_property_option (NMSetting *setting,
|
|
|
|
|
const char *prop,
|
|
|
|
|
const char *option,
|
|
|
|
|
guint32 idx,
|
|
|
|
|
GError **error);
|
|
|
|
|
void nmc_property_set_default_value (NMSetting *setting, const char *prop);
|
|
|
|
|
|
2013-03-20 10:21:19 +01:00
|
|
|
gboolean nmc_property_get_gvalue (NMSetting *setting, const char *prop, GValue *value);
|
|
|
|
|
gboolean nmc_property_set_gvalue (NMSetting *setting, const char *prop, GValue *value);
|
2010-03-31 17:14:35 +02:00
|
|
|
|
2013-01-22 14:16:00 +01:00
|
|
|
gboolean setting_details (NMSetting *ssetting, NmCli *nmc);
|
2010-03-31 17:14:35 +02:00
|
|
|
|
|
|
|
|
#endif /* NMC_SETTINGS_H */
|