Added memory management functions to the version script. Added a script
authorThomas Lopatic <thomas@lopatic.de>
Sat, 20 Nov 2004 18:16:25 +0000 (18:16 +0000)
committerThomas Lopatic <thomas@lopatic.de>
Sat, 20 Nov 2004 18:16:25 +0000 (18:16 +0000)
and a def file to link with the native Win32 tools to create a standard
import library for the DLL. ld's import library does not work with VC++.

src/cfgparser/link.def [new file with mode: 0644]
src/cfgparser/link.sh [new file with mode: 0755]
src/cfgparser/version-script.txt

diff --git a/src/cfgparser/link.def b/src/cfgparser/link.def
new file mode 100644 (file)
index 0000000..9780ed3
--- /dev/null
@@ -0,0 +1,10 @@
+EXPORTS
+       olsrd_parse_cnf
+       olsrd_print_cnf
+       olsrd_write_cnf
+       olsrd_free_cnf
+       get_default_if_config
+       olsrd_get_default_cnf
+       olsrd_cnf_malloc
+       olsrd_cnf_free
+
diff --git a/src/cfgparser/link.sh b/src/cfgparser/link.sh
new file mode 100755 (executable)
index 0000000..05423bd
--- /dev/null
@@ -0,0 +1 @@
+link /OUT:olsrd_cfgparser.dll /DEF:link.def /DLL olsrd_conf.o oparse.o oscan.o ..\\win32\\compat.o msvcrt.lib ws2_32.lib C:\\cygwin\\lib\\gcc-lib\\i686-pc-mingw32\\3.3.3\\libgcc.a
index 726ed8b..386b5a1 100644 (file)
@@ -7,6 +7,8 @@ VERS_1.0
     olsrd_write_cnf;
     get_default_if_config;
     olsrd_get_default_cnf;
+    olsrd_cnf_malloc;
+    olsrd_cnf_free;
   local:
     *;
 };