summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifcfg-rh/shvar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/plugins/ifcfg-rh/shvar.c')
-rw-r--r--src/settings/plugins/ifcfg-rh/shvar.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/settings/plugins/ifcfg-rh/shvar.c b/src/settings/plugins/ifcfg-rh/shvar.c
index 3295f5e255..cc0eefeba2 100644
--- a/src/settings/plugins/ifcfg-rh/shvar.c
+++ b/src/settings/plugins/ifcfg-rh/shvar.c
@@ -40,6 +40,16 @@
/*****************************************************************************/
+struct _shvarFile {
+ char *fileName; /* read-only */
+ int fd; /* read-only */
+ GList *lineList; /* read-only */
+ GList *current; /* set implicitly or explicitly, points to element of lineList */
+ gboolean modified; /* ignore */
+};
+
+/*****************************************************************************/
+
/**
* svParseBoolean:
* @value: the input string
@@ -187,6 +197,16 @@ svUnescape (char *s)
/*****************************************************************************/
+const char *
+svFileGetName (const shvarFile *s)
+{
+ nm_assert (s);
+
+ return s->fileName;
+}
+
+/*****************************************************************************/
+
/* Open the file <name>, returning a shvarFile on success and NULL on failure.
* Add a wrinkle to let the caller specify whether or not to create the file
* (actually, return a structure anyway) if it doesn't exist.