Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=1a53fa0651c31cb09891fd744a3fc2484afb410f

commit 1a53fa0651c31cb09891fd744a3fc2484afb410f
Author: James Buren <[email protected]>
Date:   Mon Apr 8 06:30:27 2013 -0500

add skeleton for new nmconfig tool

diff --git a/Makefile b/Makefile
index 643a0eb..7262000 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ endif

CFLAGS  += $(shell pkg-config --cflags pacman blkid)
LDFLAGS += $(shell pkg-config --libs pacman blkid)
-SOURCES += src/main.c src/utility.c src/block.c src/locale.c src/layout.c 
src/greeter.c src/partition.c src/raid.c src/format.c src/preconfig.c 
src/install.c src/postconfig.c src/finale.c src/grubconfig.c src/hostconfig.c 
src/rootconfig.c src/userconfig.c src/timeconfig.c src/modeconfig.c 
src/langconfig.c src/kbconfig.c src/information.c
+SOURCES += src/main.c src/utility.c src/block.c src/locale.c src/layout.c 
src/greeter.c src/partition.c src/raid.c src/format.c src/preconfig.c 
src/install.c src/postconfig.c src/finale.c src/grubconfig.c src/hostconfig.c 
src/rootconfig.c src/userconfig.c src/timeconfig.c src/modeconfig.c 
src/langconfig.c src/kbconfig.c src/information.c src/nmconfig.c
OBJECTS := $(patsubst %.c,%.o,$(SOURCES))

all:
diff --git a/src/local.h b/src/local.h
index 682f640..da52931 100644
--- a/src/local.h
+++ b/src/local.h
@@ -270,6 +270,7 @@ extern struct module finale_module;
extern struct module *modules[];
extern struct tool langconfig_tool;
extern struct tool kbconfig_tool;
+extern struct tool nmconfig_tool;
extern struct tool rootconfig_tool;
extern struct tool userconfig_tool;
extern struct tool hostconfig_tool;
diff --git a/src/main.c b/src/main.c
index e5526f5..a1f0db6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -139,6 +139,7 @@ struct tool *tools[] =
{
&langconfig_tool,
&kbconfig_tool,
+  &nmconfig_tool,
&rootconfig_tool,
&userconfig_tool,
&hostconfig_tool,
diff --git a/src/nmconfig.c b/src/nmconfig.c
new file mode 100644
index 0000000..dd8b371
--- /dev/null
+++ b/src/nmconfig.c
@@ -0,0 +1,35 @@
+// fwsetup - flexible installer for Frugalware
+// Copyright (C) 2013 James Buren
+//
+// 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.
+
+#include "local.h"
+
+static bool nmconfig_start(void)
+{
+  return true;
+}
+
+static bool nmconfig_finish(void)
+{
+  return true;
+}
+
+struct tool nmconfig_tool =
+{
+  nmconfig_start,
+  nmconfig_finish,
+  __FILE__
+};
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to