Skip to content

Commit

Permalink
Move a couple of time-related modules into wsutil.
Browse files Browse the repository at this point in the history
A bunch of files didn't really need to include these header files so remove
the include line rather than changing it.

svn path=/trunk/; revision=50154
  • Loading branch information
Jeff Morriss committed Jun 25, 2013
1 parent 847fbee commit a441793
Show file tree
Hide file tree
Showing 62 changed files with 56 additions and 86 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,6 @@ set(WIRESHARK_COMMON_SRC
ps.c
svnversion.h
sync_pipe_write.c
timestats.c
tap-megaco-common.c
tap-rtp-common.c
version_info.c
Expand Down
3 changes: 0 additions & 3 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ SHARK_COMMON_SRC = \
print.c \
ps.c \
sync_pipe_write.c \
timestats.c \
tap-megaco-common.c \
tap-rtp-common.c \
version_info.c
Expand All @@ -81,7 +80,6 @@ SHARK_COMMON_INCLUDES = \
ps.h \
register.h \
tempfile.h \
timestats.h \
tap-megaco-common.h \
tap-rtp-common.h \
version_info.h \
Expand Down Expand Up @@ -176,7 +174,6 @@ mergecap_SOURCES = \
editcap_SOURCES = \
editcap.c \
epan/crypt/md5.c \
epan/nstime.c \
$(WTAP_PLUGIN_SOURCES)

# reordercap specifics
Expand Down
1 change: 0 additions & 1 deletion asn1/cmp/packet-cmp-template.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include "packet-tcp.h"
#include "packet-http.h"
#include <epan/prefs.h>
#include <epan/nstime.h>

#define PNAME "Certificate Management Protocol"
#define PSNAME "CMP"
Expand Down
1 change: 0 additions & 1 deletion asn1/goose/packet-goose-template.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <epan/asn1.h>
#include <epan/etypes.h>
#include <epan/expert.h>
#include <epan/nstime.h>

#include "packet-ber.h"
#include "packet-acse.h"
Expand Down
1 change: 0 additions & 1 deletion asn1/mms/packet-mms-template.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <epan/packet.h>
#include <epan/asn1.h>
#include <epan/expert.h>
#include <epan/nstime.h>

#include "packet-ber.h"
#include "packet-acse.h"
Expand Down
1 change: 0 additions & 1 deletion asn1/sv/packet-sv-template.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <epan/asn1.h>
#include <epan/etypes.h>
#include <epan/expert.h>
#include <epan/nstime.h>

#include <stdio.h>
#include <string.h>
Expand Down
2 changes: 1 addition & 1 deletion editcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
#include "epan/plugins.h"
#include "epan/report_err.h"
#include "epan/filesystem.h"
#include "epan/nstime.h"
#include "wsutil/nstime.h"
#undef WS_BUILD_DLL
#define RESET_SYMBOL_EXPORT

Expand Down
1 change: 0 additions & 1 deletion epan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,6 @@ set(LIBWIRESHARK_FILES
ipproto.c
ipv4.c
next_tvb.c
nstime.c
oids.c
osi-utils.c
packet.c
Expand Down
2 changes: 0 additions & 2 deletions epan/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ LIBWIRESHARK_SRC = \
ipproto.c \
ipv4.c \
next_tvb.c \
nstime.c \
oids.c \
osi-utils.c \
packet.c \
Expand Down Expand Up @@ -203,7 +202,6 @@ LIBWIRESHARK_INCLUDES = \
llcsaps.h \
next_tvb.h \
nlpid.h \
nstime.h \
oids.h \
osi-utils.h \
oui.h \
Expand Down
1 change: 0 additions & 1 deletion epan/column.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include <epan/timestamp.h>
#include <epan/prefs.h>
#include <epan/nstime.h>
#include <epan/dfilter/dfilter.h>
#include <epan/column.h>
#include <epan/packet.h>
Expand Down
13 changes: 6 additions & 7 deletions epan/dissectors/packet-cmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
#include "packet-tcp.h"
#include "packet-http.h"
#include <epan/prefs.h>
#include <epan/nstime.h>

#define PNAME "Certificate Management Protocol"
#define PSNAME "CMP"
Expand Down Expand Up @@ -237,7 +236,7 @@ static int hf_cmp_PKIFailureInfo_systemFailure = -1;
static int hf_cmp_PKIFailureInfo_duplicateCertReq = -1;

/*--- End of included file: packet-cmp-hf.c ---*/
#line 70 "../../asn1/cmp/packet-cmp-template.c"
#line 69 "../../asn1/cmp/packet-cmp-template.c"

/* Initialize the subtree pointers */
static gint ett_cmp = -1;
Expand Down Expand Up @@ -293,7 +292,7 @@ static gint ett_cmp_PollRepContent = -1;
static gint ett_cmp_PollRepContent_item = -1;

/*--- End of included file: packet-cmp-ett.c ---*/
#line 74 "../../asn1/cmp/packet-cmp-template.c"
#line 73 "../../asn1/cmp/packet-cmp-template.c"

/*--- Included file: packet-cmp-fn.c ---*/
#line 1 "../../asn1/cmp/packet-cmp-fn.c"
Expand Down Expand Up @@ -1453,7 +1452,7 @@ static void dissect_SuppLangTagsValue_PDU(tvbuff_t *tvb _U_, packet_info *pinfo


/*--- End of included file: packet-cmp-fn.c ---*/
#line 75 "../../asn1/cmp/packet-cmp-template.c"
#line 74 "../../asn1/cmp/packet-cmp-template.c"

static int
dissect_cmp_pdu(tvbuff_t *tvb, proto_tree *tree, asn1_ctx_t *actx)
Expand Down Expand Up @@ -2343,7 +2342,7 @@ void proto_register_cmp(void) {
NULL, HFILL }},

/*--- End of included file: packet-cmp-hfarr.c ---*/
#line 332 "../../asn1/cmp/packet-cmp-template.c"
#line 331 "../../asn1/cmp/packet-cmp-template.c"
};

/* List of subtrees */
Expand Down Expand Up @@ -2401,7 +2400,7 @@ void proto_register_cmp(void) {
&ett_cmp_PollRepContent_item,

/*--- End of included file: packet-cmp-ettarr.c ---*/
#line 338 "../../asn1/cmp/packet-cmp-template.c"
#line 337 "../../asn1/cmp/packet-cmp-template.c"
};
module_t *cmp_module;

Expand Down Expand Up @@ -2495,7 +2494,7 @@ void proto_reg_handoff_cmp(void) {


/*--- End of included file: packet-cmp-dis-tab.c ---*/
#line 410 "../../asn1/cmp/packet-cmp-template.c"
#line 409 "../../asn1/cmp/packet-cmp-template.c"
inited = TRUE;
}

Expand Down
11 changes: 5 additions & 6 deletions epan/dissectors/packet-goose.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <epan/asn1.h>
#include <epan/etypes.h>
#include <epan/expert.h>
#include <epan/nstime.h>

#include "packet-ber.h"
#include "packet-acse.h"
Expand Down Expand Up @@ -120,7 +119,7 @@ static int hf_goose_mMSString = -1; /* MMSString */
static int hf_goose_utc_time = -1; /* UtcTime */

/*--- End of included file: packet-goose-hf.c ---*/
#line 52 "../../asn1/goose/packet-goose-template.c"
#line 51 "../../asn1/goose/packet-goose-template.c"

/* Initialize the subtree pointers */
static int ett_goose = -1;
Expand All @@ -147,7 +146,7 @@ static gint ett_goose_SEQUENCE_OF_Data = -1;
static gint ett_goose_Data = -1;

/*--- End of included file: packet-goose-ett.c ---*/
#line 57 "../../asn1/goose/packet-goose-template.c"
#line 56 "../../asn1/goose/packet-goose-template.c"


/*--- Included file: packet-goose-fn.c ---*/
Expand Down Expand Up @@ -715,7 +714,7 @@ dissect_goose_GOOSEpdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset


/*--- End of included file: packet-goose-fn.c ---*/
#line 59 "../../asn1/goose/packet-goose-template.c"
#line 58 "../../asn1/goose/packet-goose-template.c"

/*
* Dissect GOOSE PDUs inside a PPDU.
Expand Down Expand Up @@ -1024,7 +1023,7 @@ void proto_register_goose(void) {
"UtcTime", HFILL }},

/*--- End of included file: packet-goose-hfarr.c ---*/
#line 127 "../../asn1/goose/packet-goose-template.c"
#line 126 "../../asn1/goose/packet-goose-template.c"
};

/* List of subtrees */
Expand Down Expand Up @@ -1052,7 +1051,7 @@ void proto_register_goose(void) {
&ett_goose_Data,

/*--- End of included file: packet-goose-ettarr.c ---*/
#line 133 "../../asn1/goose/packet-goose-template.c"
#line 132 "../../asn1/goose/packet-goose-template.c"
};

static ei_register_info ei[] = {
Expand Down
1 change: 0 additions & 1 deletion epan/dissectors/packet-iscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <epan/prefs.h>
#include <epan/conversation.h>
#include "packet-scsi.h"
#include <epan/nstime.h>
#include <epan/emem.h>
#include <epan/range.h>
#include <wsutil/crc32.h>
Expand Down
11 changes: 5 additions & 6 deletions epan/dissectors/packet-mms.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <epan/packet.h>
#include <epan/asn1.h>
#include <epan/expert.h>
#include <epan/nstime.h>

#include "packet-ber.h"
#include "packet-acse.h"
Expand Down Expand Up @@ -723,7 +722,7 @@ static int hf_mms_Transitions_idle_to_active = -1;
static int hf_mms_Transitions_any_to_deleted = -1;

/*--- End of included file: packet-mms-hf.c ---*/
#line 47 "../../asn1/mms/packet-mms-template.c"
#line 46 "../../asn1/mms/packet-mms-template.c"

/* Initialize the subtree pointers */
static gint ett_mms = -1;
Expand Down Expand Up @@ -940,7 +939,7 @@ static gint ett_mms_DirectoryEntry = -1;
static gint ett_mms_FileAttributes = -1;

/*--- End of included file: packet-mms-ett.c ---*/
#line 51 "../../asn1/mms/packet-mms-template.c"
#line 50 "../../asn1/mms/packet-mms-template.c"

static expert_field ei_mms_mal_timeofday_encoding = EI_INIT;
static expert_field ei_mms_mal_utctime_encoding = EI_INIT;
Expand Down Expand Up @@ -7053,7 +7052,7 @@ dissect_mms_MMSpdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_,


/*--- End of included file: packet-mms-fn.c ---*/
#line 56 "../../asn1/mms/packet-mms-template.c"
#line 55 "../../asn1/mms/packet-mms-template.c"

/*
* Dissect MMS PDUs inside a PPDU.
Expand Down Expand Up @@ -9761,7 +9760,7 @@ void proto_register_mms(void) {
NULL, HFILL }},

/*--- End of included file: packet-mms-hfarr.c ---*/
#line 95 "../../asn1/mms/packet-mms-template.c"
#line 94 "../../asn1/mms/packet-mms-template.c"
};

/* List of subtrees */
Expand Down Expand Up @@ -9980,7 +9979,7 @@ void proto_register_mms(void) {
&ett_mms_FileAttributes,

/*--- End of included file: packet-mms-ettarr.c ---*/
#line 101 "../../asn1/mms/packet-mms-template.c"
#line 100 "../../asn1/mms/packet-mms-template.c"
};

static ei_register_info ei[] = {
Expand Down
11 changes: 5 additions & 6 deletions epan/dissectors/packet-sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <epan/asn1.h>
#include <epan/etypes.h>
#include <epan/expert.h>
#include <epan/nstime.h>

#include <stdio.h>
#include <string.h>
Expand Down Expand Up @@ -127,7 +126,7 @@ static int hf_sv_seqData = -1; /* Data */
static int hf_sv_smpMod = -1; /* T_smpMod */

/*--- End of included file: packet-sv-hf.c ---*/
#line 105 "../../asn1/sv/packet-sv-template.c"
#line 104 "../../asn1/sv/packet-sv-template.c"

/* Initialize the subtree pointers */
static int ett_sv = -1;
Expand All @@ -143,7 +142,7 @@ static gint ett_sv_SEQUENCE_OF_ASDU = -1;
static gint ett_sv_ASDU = -1;

/*--- End of included file: packet-sv-ett.c ---*/
#line 112 "../../asn1/sv/packet-sv-template.c"
#line 111 "../../asn1/sv/packet-sv-template.c"

static expert_field ei_sv_mal_utctime = EI_INIT;

Expand Down Expand Up @@ -450,7 +449,7 @@ dissect_sv_SampledValues(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offse


/*--- End of included file: packet-sv-fn.c ---*/
#line 195 "../../asn1/sv/packet-sv-template.c"
#line 194 "../../asn1/sv/packet-sv-template.c"

/*
* Dissect SV PDUs inside a PPDU.
Expand Down Expand Up @@ -624,7 +623,7 @@ void proto_register_sv(void) {
NULL, HFILL }},

/*--- End of included file: packet-sv-hfarr.c ---*/
#line 312 "../../asn1/sv/packet-sv-template.c"
#line 311 "../../asn1/sv/packet-sv-template.c"
};

/* List of subtrees */
Expand All @@ -641,7 +640,7 @@ void proto_register_sv(void) {
&ett_sv_ASDU,

/*--- End of included file: packet-sv-ettarr.c ---*/
#line 320 "../../asn1/sv/packet-sv-template.c"
#line 319 "../../asn1/sv/packet-sv-template.c"
};

static ei_register_info ei[] = {
Expand Down
2 changes: 1 addition & 1 deletion epan/frame_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <epan/column_info.h>
#include <epan/tvbuff.h>
#include <epan/nstime.h>
#include <wsutil/nstime.h>
#include "ws_symbol_export.h"

#define PINFO_FD_NUM(pinfo) ((pinfo)->fd->num)
Expand Down
2 changes: 1 addition & 1 deletion epan/ftypes/ftypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ ftype_can_matches(enum ftenum ftype);
#include <epan/guid-utils.h>

#include <epan/tvbuff.h>
#include <epan/nstime.h>
#include <wsutil/nstime.h>
#include <epan/dfilter/drange.h>

typedef struct _fvalue_t {
Expand Down
2 changes: 1 addition & 1 deletion epan/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include <glib.h>

#include "ipv4.h"
#include "nstime.h"
#include "wsutil/nstime.h"
#include "time_fmt.h"
#include "tvbuff.h"
#include "ftypes/ftypes.h"
Expand Down
2 changes: 1 addition & 1 deletion epan/to_str.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <glib.h>

#include "nstime.h"
#include "wsutil/nstime.h"
#include "time_fmt.h"
#include <epan/packet_info.h>
#include "ws_symbol_export.h"
Expand Down
1 change: 0 additions & 1 deletion epan/wslua/init_wslua.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

#include "wslua.h"
#include <epan/dissectors/packet-frame.h>
#include <epan/nstime.h>
#include <math.h>
#include <epan/expert.h>
#include <epan/ex-opt.h>
Expand Down
2 changes: 1 addition & 1 deletion epan/wslua/wslua.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#include <epan/funnel.h>
#include <epan/tvbparse.h>
#include <epan/epan.h>
#include <epan/nstime.h>
#include <wsutil/nstime.h>

#include "declare_wslua.h"

Expand Down
2 changes: 1 addition & 1 deletion tap-megaco-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <epan/tap.h>
#include "epan/gcp.h"

#include "../timestats.h"
#include "wsutil/timestats.h"
#include "../file.h"
#include "../globals.h"
#include "../stat_menu.h"
Expand Down
Loading

0 comments on commit a441793

Please sign in to comment.