diff options
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | Makefile.common | 8 | ||||
-rw-r--r-- | Makefile.nmake | 21 | ||||
-rw-r--r-- | capinfos.c | 2 | ||||
-rw-r--r-- | capture_sync.c | 2 | ||||
-rw-r--r-- | dftest.c | 2 | ||||
-rw-r--r-- | dumpcap.c | 4 | ||||
-rw-r--r-- | editcap.c | 2 | ||||
-rw-r--r-- | epan/Makefile.common | 3 | ||||
-rw-r--r-- | epan/filesystem.c | 4 | ||||
-rw-r--r-- | epan/guid-utils.c | 2 | ||||
-rw-r--r-- | epan/plugins.c | 2 | ||||
-rw-r--r-- | epan/wslua/init_wslua.c | 2 | ||||
-rw-r--r-- | gtk/file_dlg_win32.c | 2 | ||||
-rw-r--r-- | gtk/font_utils.c | 2 | ||||
-rw-r--r-- | gtk/help_dlg.c | 2 | ||||
-rw-r--r-- | gtk/main.c | 2 | ||||
-rw-r--r-- | gtk/webbrowser.c | 2 | ||||
-rw-r--r-- | rawshark.c | 4 | ||||
-rw-r--r-- | tshark.c | 2 | ||||
-rw-r--r-- | version_info.c | 2 | ||||
-rw-r--r-- | wsutil/Makefile.common | 12 | ||||
-rw-r--r-- | wsutil/privileges.c (renamed from epan/privileges.c) | 2 | ||||
-rw-r--r-- | wsutil/privileges.h (renamed from epan/privileges.h) | 0 | ||||
-rw-r--r-- | wsutil/unicode-utils.c (renamed from epan/unicode-utils.c) | 0 | ||||
-rw-r--r-- | wsutil/unicode-utils.h (renamed from epan/unicode-utils.h) | 0 |
26 files changed, 40 insertions, 47 deletions
diff --git a/Makefile.am b/Makefile.am index d41106bc3e..1c028ee398 100644 --- a/Makefile.am +++ b/Makefile.am @@ -268,7 +268,6 @@ plugin_ldadd = \ WTAP_PLUGIN_SOURCES = \ epan/plugins.c \ epan/report_err.c \ - epan/privileges.c \ epan/filesystem.c else # HAVE_PLUGINS diff --git a/Makefile.common b/Makefile.common index b51e048d46..58b4cb1b3c 100644 --- a/Makefile.common +++ b/Makefile.common @@ -236,18 +236,14 @@ dumpcap_SOURCES = \ ringbuffer.c \ sync_pipe_write.c \ tempfile.c \ - version_info.c \ - epan/unicode-utils.c \ - epan/privileges.c + version_info.c # corresponding headers dumpcap_INCLUDES = \ capture_stop_conditions.h \ conditions.h \ pcapio.h \ - ringbuffer.h \ - epan/unicode-utils.h \ - epan/privileges.h + ringbuffer.h # this target needed for distribution only noinst_HEADERS = \ diff --git a/Makefile.nmake b/Makefile.nmake index 436eaccda0..a224626bf6 100644 --- a/Makefile.nmake +++ b/Makefile.nmake @@ -29,7 +29,6 @@ PLATFORM_SRC = capture-wpcap.c capture_wpcap_packet.c WTAP_PLUGIN_SOURCES = \ epan/plugins.c \ epan/report_err.c \ - epan/privileges.c \ epan/filesystem.c include Makefile.common @@ -207,7 +206,7 @@ $(RESOURCES): image wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DLL) wiretap -wireshark.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt.obj inet_ntop.obj inet_pton.obj codecs epan gtk image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk\libui.lib plugins +wireshark.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt.obj inet_ntop.obj inet_pton.obj codecs epan gtk image\wireshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk\libui.lib plugins @echo Linking $@ $(LINK) @<< /OUT:wireshark.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) getopt.obj inet_ntop.obj inet_pton.obj $(GTK_LIBS) codecs\codecs.lib gtk\libui.lib $(wireshark_OBJECTS) image\wireshark.res @@ -216,7 +215,7 @@ wireshark.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt. mt.exe -nologo -manifest "wireshark.exe.manifest" -outputresource:wireshark.exe;1 !ENDIF -tshark.exe : $(LIBS_CHECK) config.h svnversion.h $(tshark_OBJECTS) getopt.obj inet_ntop.obj epan image\tshark.res wiretap\wiretap-$(WTAP_VERSION).lib plugins +tshark.exe : $(LIBS_CHECK) config.h svnversion.h $(tshark_OBJECTS) getopt.obj inet_ntop.obj epan image\tshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins @echo Linking $@ $(LINK) @<< /OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) getopt.obj inet_ntop.obj image\tshark.res @@ -225,7 +224,7 @@ tshark.exe : $(LIBS_CHECK) config.h svnversion.h $(tshark_OBJECTS) getopt.obj in mt.exe -nologo -manifest "tshark.exe.manifest" -outputresource:tshark.exe;1 !ENDIF -rawshark.exe : $(LIBS_CHECK) config.h svnversion.h $(rawshark_OBJECTS) getopt.obj inet_ntop.obj epan image\rawshark.res wiretap\wiretap-$(WTAP_VERSION).lib plugins +rawshark.exe : $(LIBS_CHECK) config.h svnversion.h $(rawshark_OBJECTS) getopt.obj inet_ntop.obj epan image\rawshark.res wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib plugins @echo Linking $@ $(LINK) @<< /OUT:rawshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(rawshark_LIBS) $(rawshark_OBJECTS) getopt.obj inet_ntop.obj image\rawshark.res @@ -233,10 +232,10 @@ rawshark.exe : $(LIBS_CHECK) config.h svnversion.h $(rawshark_OBJECTS) getopt.ob # XXX: This makefile does not properly handle doing a 'nmake ... capinfos.exe' directly since some of the .objs # (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all'). -capinfos.exe : $(LIBS_CHECK) config.h $(capinfos_OBJECTS) getopt.obj epan/unicode-utils.obj wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res +capinfos.exe : $(LIBS_CHECK) config.h $(capinfos_OBJECTS) getopt.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res @echo Linking $@ $(LINK) @<< - /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(capinfos_OBJECTS) getopt.obj epan/unicode-utils.obj $(capinfos_LIBS) image\capinfos.res + /OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(capinfos_OBJECTS) getopt.obj $(capinfos_LIBS) image\capinfos.res << !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" mt.exe -nologo -manifest "capinfos.exe.manifest" -outputresource:capinfos.exe;1 @@ -244,16 +243,16 @@ capinfos.exe : $(LIBS_CHECK) config.h $(capinfos_OBJECTS) getopt.obj epan/unicod # XXX: This makefile does not properly handle doing a 'nmake ... editcap.exe' directly since some of the .objs # (e.g. epan\plugins.obj) must be built first using epan\Makefile.nmake (which happens for 'nmake ... all'). -editcap.exe : $(LIBS_CHECK) config.h $(editcap_OBJECTS) getopt.obj strptime.obj epan/unicode-utils.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res +editcap.exe : $(LIBS_CHECK) config.h $(editcap_OBJECTS) getopt.obj strptime.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res @echo Linking $@ $(LINK) @<< - /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(editcap_OBJECTS) getopt.obj strptime.obj epan/unicode-utils.obj $(editcap_LIBS) image\editcap.res + /OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(editcap_OBJECTS) getopt.obj strptime.obj $(editcap_LIBS) image\editcap.res << !IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20" mt.exe -nologo -manifest "editcap.exe.manifest" -outputresource:editcap.exe;1 !ENDIF -mergecap.exe : $(LIBS_CHECK) config.h svnversion.h mergecap.obj merge.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res +mergecap.exe : $(LIBS_CHECK) config.h svnversion.h mergecap.obj merge.obj getopt.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res @echo Linking $@ $(LINK) @<< /OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res @@ -262,7 +261,7 @@ mergecap.exe : $(LIBS_CHECK) config.h svnversion.h mergecap.obj merge.obj getop mt.exe -nologo -manifest "mergecap.exe.manifest" -outputresource:mergecap.exe;1 !ENDIF -text2pcap.exe : $(LIBS_CHECK) config.h text2pcap.obj text2pcap-scanner.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib strptime.obj image\text2pcap.res +text2pcap.exe : $(LIBS_CHECK) config.h text2pcap.obj text2pcap-scanner.obj getopt.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib strptime.obj image\text2pcap.res @echo Linking $@ $(LINK) @<< /OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj $(text2pcap_LIBS) strptime.obj image\text2pcap.res @@ -289,7 +288,7 @@ randpkt.exe : $(randpkt_OBJECTS) getopt.obj mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1 !ENDIF -dumpcap.exe : $(LIBS_CHECK) config.h svnversion.h $(dumpcap_OBJECTS) getopt.obj epan/unicode-utils.obj inet_ntop.obj mkstemp.obj wiretap\wiretap-$(WTAP_VERSION).lib image\dumpcap.res +dumpcap.exe : $(LIBS_CHECK) config.h svnversion.h $(dumpcap_OBJECTS) getopt.obj inet_ntop.obj mkstemp.obj wsutil\libwsutil.lib wiretap\wiretap-$(WTAP_VERSION).lib image\dumpcap.res @echo Linking $@ $(LINK) @<< /OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) getopt.obj inet_ntop.obj mkstemp.obj image\dumpcap.res diff --git a/capinfos.c b/capinfos.c index d260d132c3..e7d3afeaa0 100644 --- a/capinfos.c +++ b/capinfos.c @@ -49,7 +49,7 @@ #include <epan/plugins.h> #include <epan/report_err.h> #include "wtap.h" -#include <epan/privileges.h> +#include <wsutil/privileges.h> #ifdef NEED_GETOPT_H #include "getopt.h" diff --git a/capture_sync.c b/capture_sync.c index f8c836dfc2..489c4f7762 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -44,7 +44,7 @@ #include <signal.h> #ifdef _WIN32 -#include "epan/unicode-utils.h" +#include <wsutil/unicode-utils.h> #endif #ifdef HAVE_SYS_WAIT_H @@ -43,7 +43,7 @@ #include <epan/timestamp.h> #include <epan/plugins.h> #include <epan/filesystem.h> -#include <epan/privileges.h> +#include <wsutil/privileges.h> #include <epan/prefs.h> #include "util.h" #include "epan/dfilter/dfilter.h" @@ -79,10 +79,10 @@ #endif #ifdef _WIN32 -#include "epan/unicode-utils.h" +#include <wsutil/unicode-utils.h> #endif -#include "epan/privileges.h" +#include <wsutil/privileges.h> #include "sync_pipe.h" @@ -58,7 +58,7 @@ #include "epan/plugins.h" #include "epan/report_err.h" #include "epan/filesystem.h" -#include <epan/privileges.h> +#include <wsutil/privileges.h> #include "epan/nstime.h" #include "svnversion.h" diff --git a/epan/Makefile.common b/epan/Makefile.common index 067af5dc96..4924f0d8cf 100644 --- a/epan/Makefile.common +++ b/epan/Makefile.common @@ -69,7 +69,6 @@ LIBWIRESHARK_SRC = \ packet.c \ plugins.c \ prefs.c \ - privileges.c \ proto.c \ range.c \ reassemble.c \ @@ -93,7 +92,6 @@ LIBWIRESHARK_SRC = \ tvbparse.c \ tvbuff.c \ uat.c \ - unicode-utils.c \ value_string.c \ xdlc.c \ xmlstub.c @@ -201,7 +199,6 @@ LIBWIRESHARK_INCLUDES = \ ppptypes.h \ prefs.h \ prefs-int.h \ - privileges.h \ proto.h \ ptvcursor.h \ range.h \ diff --git a/epan/filesystem.c b/epan/filesystem.c index b9fcb2f3bc..799a79e37b 100644 --- a/epan/filesystem.c +++ b/epan/filesystem.c @@ -50,13 +50,13 @@ #include <windows.h> #include <tchar.h> #include <shlobj.h> -#include "epan/unicode-utils.h" +#include <wsutil/unicode-utils.h> #else #include <pwd.h> #endif #include "filesystem.h" -#include "privileges.h" +#include <wsutil/privileges.h> #include <wsutil/file_util.h> #define PROFILES_DIR "profiles" diff --git a/epan/guid-utils.c b/epan/guid-utils.c index cbe73a2896..ce1dc2291a 100644 --- a/epan/guid-utils.c +++ b/epan/guid-utils.c @@ -31,7 +31,7 @@ #include <glib.h> #include <epan/epan.h> -#include <epan/unicode-utils.h> +#include <wsutil/unicode-utils.h> #include <epan/emem.h> #include "guid-utils.h" diff --git a/epan/plugins.c b/epan/plugins.c index cc84b475ec..ed8aaa3f8c 100644 --- a/epan/plugins.c +++ b/epan/plugins.c @@ -49,7 +49,7 @@ #endif #include "filesystem.h" -#include "privileges.h" +#include <wsutil/privileges.h> #include <wsutil/file_util.h> #include "report_err.h" diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c index 0745cea101..1c975f91ef 100644 --- a/epan/wslua/init_wslua.c +++ b/epan/wslua/init_wslua.c @@ -31,7 +31,7 @@ #include <math.h> #include <epan/expert.h> #include <epan/ex-opt.h> -#include <epan/privileges.h> +#include <wsutil/privileges.h> #include <wsutil/file_util.h> static lua_State* L = NULL; diff --git a/gtk/file_dlg_win32.c b/gtk/file_dlg_win32.c index 51a0b8f60c..bb5a35605f 100644 --- a/gtk/file_dlg_win32.c +++ b/gtk/file_dlg_win32.c @@ -39,7 +39,7 @@ #include "epan/filesystem.h" #include "epan/addr_resolv.h" #include "epan/prefs.h" -#include "epan/unicode-utils.h" +#include <wsutil/unicode-utils.h> #include "../globals.h" #include "../alert_box.h" diff --git a/gtk/font_utils.c b/gtk/font_utils.c index 4130979e33..a6ccfcf576 100644 --- a/gtk/font_utils.c +++ b/gtk/font_utils.c @@ -37,7 +37,7 @@ #ifdef _WIN32 #include <windows.h> #include <tchar.h> -#include <epan/unicode-utils.h> +#include <wsutil/unicode-utils.h> #endif #include "../simple_dialog.h" diff --git a/gtk/help_dlg.c b/gtk/help_dlg.c index eefdc68f34..52b77f05ca 100644 --- a/gtk/help_dlg.c +++ b/gtk/help_dlg.c @@ -47,7 +47,7 @@ #ifdef HHC_DIR #include <windows.h> #include <htmlhelp.h> -#include "epan/unicode-utils.h" +#include <wsutil/unicode-utils.h> #endif diff --git a/gtk/main.c b/gtk/main.c index 3693d4239a..73163a8dde 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -59,7 +59,7 @@ #include <epan/epan.h> #include <epan/filesystem.h> -#include <epan/privileges.h> +#include <wsutil/privileges.h> #include <epan/epan_dissect.h> #include <epan/timestamp.h> #include <epan/packet.h> diff --git a/gtk/webbrowser.c b/gtk/webbrowser.c index b22e781be2..88e4ea62ab 100644 --- a/gtk/webbrowser.c +++ b/gtk/webbrowser.c @@ -82,7 +82,7 @@ #include <windows.h> /* We're using Unicode */ #include <tchar.h> -#include <epan/unicode-utils.h> +#include <wsutil/unicode-utils.h> /* if WIN32_LEAN_AND_MEAN is defined, shellapi.h is needed too */ #include <shellapi.h> #elif defined (HAVE_OS_X_FRAMEWORKS) diff --git a/rawshark.c b/rawshark.c index 358e4ed993..6b24301e16 100644 --- a/rawshark.c +++ b/rawshark.c @@ -72,7 +72,7 @@ #include <glib.h> #include <epan/epan.h> #include <epan/filesystem.h> -#include <epan/privileges.h> +#include <wsutil/privileges.h> #include <wsutil/file_util.h> #include "globals.h" @@ -96,7 +96,7 @@ #include <epan/epan_dissect.h> #include <epan/stat_cmd_args.h> #include <epan/timestamp.h> -#include <epan/unicode-utils.h> +#include <wsutil/unicode-utils.h> #include "epan/column-utils.h" #include "epan/proto.h" #include <epan/tap.h> @@ -62,7 +62,7 @@ #include <glib.h> #include <epan/epan.h> #include <epan/filesystem.h> -#include <epan/privileges.h> +#include <wsutil/privileges.h> #include "globals.h" #include <epan/timestamp.h> diff --git a/version_info.c b/version_info.c index 97825c3da6..2a20c69b36 100644 --- a/version_info.c +++ b/version_info.c @@ -59,7 +59,7 @@ #include "version_info.h" #include "capture-pcap-util.h" -#include "epan/unicode-utils.h" +#include <wsutil/unicode-utils.h> #include "svnversion.h" diff --git a/wsutil/Makefile.common b/wsutil/Makefile.common index 6684c8faad..df0c87d6e0 100644 --- a/wsutil/Makefile.common +++ b/wsutil/Makefile.common @@ -28,9 +28,13 @@ # into a list of object files by replacing ".c" with ".obj") or files # generated from YACC or Lex files (as Automake doesn't want them in # _SOURCES variables). -LIBWSUTIL_SRC = \ - mpeg-audio.c +LIBWSUTIL_SRC = \ + mpeg-audio.c \ + privileges.c \ + unicode-utils.c # Header files that are not generated from other files -LIBWSUTIL_INCLUDES = \ - mpeg-audio.h +LIBWSUTIL_INCLUDES = \ + mpeg-audio.h \ + privileges.h \ + unicode-utils.h diff --git a/epan/privileges.c b/wsutil/privileges.c index a62001343b..19adbd3d70 100644 --- a/epan/privileges.c +++ b/wsutil/privileges.c @@ -35,7 +35,6 @@ #include "privileges.h" #ifdef _WIN32 -#include "emem.h" #include <windows.h> #include <wchar.h> #include <tchar.h> @@ -147,7 +146,6 @@ npf_sys_is_running() { #include <glib.h> #include <string.h> #include <errno.h> -#include "emem.h" static uid_t ruid, euid; static gid_t rgid, egid; diff --git a/epan/privileges.h b/wsutil/privileges.h index e45b77807f..e45b77807f 100644 --- a/epan/privileges.h +++ b/wsutil/privileges.h diff --git a/epan/unicode-utils.c b/wsutil/unicode-utils.c index dfa6eb32d5..dfa6eb32d5 100644 --- a/epan/unicode-utils.c +++ b/wsutil/unicode-utils.c diff --git a/epan/unicode-utils.h b/wsutil/unicode-utils.h index 2a08be71af..2a08be71af 100644 --- a/epan/unicode-utils.h +++ b/wsutil/unicode-utils.h |