summaryrefslogtreecommitdiff
path: root/src/nm-config.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-03-12 13:38:39 -0400
committerDan Winship <danw@gnome.org>2013-04-03 10:23:47 -0400
commit53bd84feff7675f549afa30a39c430069c458021 (patch)
treeec9d87347f70927d8c96c01ab3201aee4c0857e7 /src/nm-config.h
parentf17ab954f650b4fe6c825de4f6feb2e722c7131a (diff)
downloadNetworkManager-53bd84feff7675f549afa30a39c430069c458021.tar.gz
config: move NMConfig into its own subdirectory/library
Also, remove the unused NMConfigError, and add a config-parsing test program.
Diffstat (limited to 'src/nm-config.h')
-rw-r--r--src/nm-config.h77
1 files changed, 0 insertions, 77 deletions
diff --git a/src/nm-config.h b/src/nm-config.h
deleted file mode 100644
index 9681e78d89..0000000000
--- a/src/nm-config.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
-/* NetworkManager -- Network link manager
- *
- * 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.
- *
- * Copyright (C) 2011 Red Hat, Inc.
- * Copyright (C) 2013 Thomas Bechtold <thomasbechtold@jpberlin.de>
- */
-
-#ifndef NM_CONFIG_H
-#define NM_CONFIG_H
-
-#include <glib.h>
-#include <glib-object.h>
-
-G_BEGIN_DECLS
-
-#define NM_TYPE_CONFIG (nm_config_get_type ())
-#define NM_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_CONFIG, NMConfig))
-#define NM_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_CONFIG, NMConfigClass))
-#define NM_IS_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_CONFIG))
-#define NM_IS_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_CONFIG))
-#define NM_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_CONFIG, NMConfigClass))
-
-typedef struct {
- GObject parent;
-} NMConfig;
-
-typedef struct {
- GObjectClass parent;
-} NMConfigClass;
-
-GType nm_config_get_type (void);
-
-typedef enum {
- NM_CONFIG_ERROR_NO_MEMORY = 0, /*< nick=NoMemory >*/
-} NMConfigError;
-
-#define NM_CONFIG_ERROR (nm_config_error_quark ())
-GQuark nm_config_error_quark (void);
-
-NMConfig *nm_config_get (void);
-NMConfig *nm_config_new (const char *cli_config_path,
- const char *cli_plugins,
- const char *cli_log_level,
- const char *cli_log_domains,
- const char *cli_connectivity_check_uri,
- const gint connectivity_check_interval,
- const char *cli_connectivity_check_response,
- GError **error);
-
-const char *nm_config_get_path (NMConfig *config);
-const char **nm_config_get_plugins (NMConfig *config);
-const char *nm_config_get_dhcp_client (NMConfig *config);
-const char **nm_config_get_dns_plugins (NMConfig *config);
-const char *nm_config_get_log_level (NMConfig *config);
-const char *nm_config_get_log_domains (NMConfig *config);
-const char *nm_config_get_connectivity_uri (NMConfig *config);
-const guint nm_config_get_connectivity_interval (NMConfig *config);
-const char *nm_config_get_connectivity_response (NMConfig *config);
-
-G_END_DECLS
-
-#endif /* NM_CONFIG_H */
-