From: Guus Sliepen <guus@tinc-vpn.org>
Date: Fri, 15 Dec 2006 14:05:26 +0000 (+0000)
Subject: Move all source code to src/.
X-Git-Url: http://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=ff03bb9b0a744530e1145fef656644987a10d62d;p=tinc

Move all source code to src/.
---

diff --git a/cfg/Makefile.am b/cfg/Makefile.am
deleted file mode 100644
index 49d353a6..00000000
--- a/cfg/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-noinst_LIBRARIES = libcfg.a
-
-noinst_HEADERS = cfg.h
-
-libcfg_a_SOURCES = cfg.c
-
diff --git a/logger/Makefile.am b/logger/Makefile.am
deleted file mode 100644
index 6fe30478..00000000
--- a/logger/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-noinst_LIBRARIES = liblogger.a
-
-noinst_HEADERS = logger.h
-
-liblogger_a_SOURCES = logger.c
-
diff --git a/rt/Makefile.am b/rt/Makefile.am
deleted file mode 100644
index 528c26c7..00000000
--- a/rt/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-noinst_LIBRARIES = librt.a
-
-noinst_HEADERS = edge.h graph.h node.h route.h rt.h subnet.h
-
-librt_a_SOURCES = edge.c graph.c node.c route.c rt.c subnet.c
-
diff --git a/rt/README b/rt/README
deleted file mode 100644
index d0b6dc87..00000000
--- a/rt/README
+++ /dev/null
@@ -1,31 +0,0 @@
-Routing subsystem
-=================
-
-The routing part of tinc reads/writes packets to/from the virtual network
-device, sets up tunnels on demand and routes packets to/from the virtual
-network device and the tunnels.  It can also exchange information about other
-daemons using the tunnels.
-
-The following datatypes are used in this subsystem:
-
-struct node
------------
-
-This represents a tinc daemon. It keeps track of the best way to reach this
-daemon (if it is reachable at all), which subnets are associated with this
-daemon, and the connections it has with other daemons.
-
-struct subnet
--------------
-
-This represents a subnet, can have an expiry time and is associated with a node.
-
-struct edge
------------
-
-This represents a connection from one tinc daemon to another. The edges have a
-specific direction, and normally if there really is a connection between tinc
-daemon A and B, there will be two edges, A -> B and B -> A.  This seems
-redundant, but is necessary to allow disparities between information learned
-from A and information learned from B.
-
diff --git a/support/avl.c b/src/avl.c
similarity index 100%
rename from support/avl.c
rename to src/avl.c
diff --git a/support/avl.h b/src/avl.h
similarity index 100%
rename from support/avl.h
rename to src/avl.h
diff --git a/cfg/cfg.c b/src/cfg.c
similarity index 100%
rename from cfg/cfg.c
rename to src/cfg.c
diff --git a/cfg/cfg.h b/src/cfg.h
similarity index 100%
rename from cfg/cfg.h
rename to src/cfg.h
diff --git a/rt/edge.c b/src/edge.c
similarity index 100%
rename from rt/edge.c
rename to src/edge.c
diff --git a/rt/edge.h b/src/edge.h
similarity index 100%
rename from rt/edge.h
rename to src/edge.h
diff --git a/support/ethernet.h b/src/ethernet.h
similarity index 100%
rename from support/ethernet.h
rename to src/ethernet.h
diff --git a/support/gettext.h b/src/gettext.h
similarity index 100%
rename from support/gettext.h
rename to src/gettext.h
diff --git a/rt/graph.c b/src/graph.c
similarity index 100%
rename from rt/graph.c
rename to src/graph.c
diff --git a/rt/graph.h b/src/graph.h
similarity index 100%
rename from rt/graph.h
rename to src/graph.h
diff --git a/support/ipv4.h b/src/ipv4.h
similarity index 100%
rename from support/ipv4.h
rename to src/ipv4.h
diff --git a/support/ipv6.h b/src/ipv6.h
similarity index 100%
rename from support/ipv6.h
rename to src/ipv6.h
diff --git a/support/list.c b/src/list.c
similarity index 100%
rename from support/list.c
rename to src/list.c
diff --git a/support/list.h b/src/list.h
similarity index 100%
rename from support/list.h
rename to src/list.h
diff --git a/logger/log.h b/src/log.h
similarity index 100%
rename from logger/log.h
rename to src/log.h
diff --git a/logger/logger.c b/src/logger.c
similarity index 100%
rename from logger/logger.c
rename to src/logger.c
diff --git a/logger/logger.h b/src/logger.h
similarity index 100%
rename from logger/logger.h
rename to src/logger.h
diff --git a/rt/node.c b/src/node.c
similarity index 100%
rename from rt/node.c
rename to src/node.c
diff --git a/rt/node.h b/src/node.h
similarity index 100%
rename from rt/node.h
rename to src/node.h
diff --git a/process.c b/src/process.c
similarity index 100%
rename from process.c
rename to src/process.c
diff --git a/rt/route.c b/src/route.c
similarity index 100%
rename from rt/route.c
rename to src/route.c
diff --git a/rt/route.h b/src/route.h
similarity index 100%
rename from rt/route.h
rename to src/route.h
diff --git a/rt/rt.c b/src/rt.c
similarity index 100%
rename from rt/rt.c
rename to src/rt.c
diff --git a/rt/rt.h b/src/rt.h
similarity index 100%
rename from rt/rt.h
rename to src/rt.h
diff --git a/support/sockaddr.h b/src/sockaddr.h
similarity index 100%
rename from support/sockaddr.h
rename to src/sockaddr.h
diff --git a/rt/subnet.c b/src/subnet.c
similarity index 100%
rename from rt/subnet.c
rename to src/subnet.c
diff --git a/rt/subnet.h b/src/subnet.h
similarity index 100%
rename from rt/subnet.h
rename to src/subnet.h
diff --git a/system.h b/src/system.h
similarity index 100%
rename from system.h
rename to src/system.h
diff --git a/tnl/test.c b/src/test.c
similarity index 100%
rename from tnl/test.c
rename to src/test.c
diff --git a/tincd.c b/src/tincd.c
similarity index 100%
rename from tincd.c
rename to src/tincd.c
diff --git a/tincd.h b/src/tincd.h
similarity index 100%
rename from tincd.h
rename to src/tincd.h
diff --git a/tnl/tnl.c b/src/tnl.c
similarity index 100%
rename from tnl/tnl.c
rename to src/tnl.c
diff --git a/tnl/tnl.h b/src/tnl.h
similarity index 100%
rename from tnl/tnl.h
rename to src/tnl.h
diff --git a/vnd/vnd.c b/src/vnd.c
similarity index 100%
rename from vnd/vnd.c
rename to src/vnd.c
diff --git a/vnd/vnd.h b/src/vnd.h
similarity index 100%
rename from vnd/vnd.h
rename to src/vnd.h
diff --git a/support/xalloc.c b/src/xalloc.c
similarity index 100%
rename from support/xalloc.c
rename to src/xalloc.c
diff --git a/support/xalloc.h b/src/xalloc.h
similarity index 100%
rename from support/xalloc.h
rename to src/xalloc.h
diff --git a/support/Makefile.am b/support/Makefile.am
deleted file mode 100644
index 8f38b94b..00000000
--- a/support/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-noinst_LIBRARIES = libsupport.a
-
-noinst_HEADERS = avl.h ethernet.h ipv4.h ipv6.h list.h sockaddr.h xalloc.h
-
-libsupport_a_SOURCES = avl.c list.c xalloc.c
-
diff --git a/tnl/Makefile.am b/tnl/Makefile.am
deleted file mode 100644
index 594838d5..00000000
--- a/tnl/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-noinst_LIBRARIES = libtnl.a
-
-noinst_HEADERS = tnl.h
-
-libtnl_a_SOURCES = tnl.c
-
diff --git a/vnd/Makefile.am b/vnd/Makefile.am
deleted file mode 100644
index e5422981..00000000
--- a/vnd/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-noinst_LIBRARIES = libvnd.a
-
-noinst_HEADERS = vnd.h
-
-libvnd_a_SOURCES = vnd.c
-