summaryrefslogtreecommitdiff
path: root/ui/text_import.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-09-17 23:40:53 +0000
committerGerald Combs <gerald@wireshark.org>2012-09-17 23:40:53 +0000
commit3069f22bd1b84b56225e959a6e2ccbb09c53bdbe (patch)
treee418e2d77571601bd6ae0d685793095b3a41f82c /ui/text_import.h
parent06499e6dd0043609acff788fffba8eb9d6f744d9 (diff)
downloadwireshark-3069f22bd1b84b56225e959a6e2ccbb09c53bdbe.tar.gz
Add a text import dialog. Use libui.
svn path=/trunk/; revision=44956
Diffstat (limited to 'ui/text_import.h')
-rw-r--r--ui/text_import.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/ui/text_import.h b/ui/text_import.h
index 5ece3dadb7..fc69db9c3c 100644
--- a/ui/text_import.h
+++ b/ui/text_import.h
@@ -28,18 +28,23 @@
*******************************************************************************/
-#ifndef TEXT_IMPORT_H
-#define TEXT_IMPORT_H
+#ifndef __TEXT_IMPORT_H__
+#define __TEXT_IMPORT_H__
#include <glib.h>
#include "wtap.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define IMPORT_MAX_PACKET 64000
/* The parameter interface */
enum offset_type
{
+ OFFSET_NONE = 0,
OFFSET_HEX,
OFFSET_OCT,
OFFSET_DEC
@@ -59,11 +64,11 @@ enum dummy_header_type
typedef struct
{
/* Input info */
- guchar *import_text_filename;
+ char *import_text_filename;
FILE *import_text_file;
enum offset_type offset_type;
gboolean date_timestamp;
- guchar *date_timestamp_format;
+ char *date_timestamp_format;
/* Import info */
guint encapsulation;
@@ -84,4 +89,8 @@ typedef struct
void text_import_setup(text_import_info_t *info);
void text_import_cleanup(void);
-#endif
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __TEXT_IMPORT_H__ */