diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-03-01 23:53:11 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-03-01 23:53:11 +0000 |
commit | 1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322 (patch) | |
tree | d6dde0ea7b6e6e15cc2c51a5f478fb85965b9720 /epan/ptvcursor.h | |
parent | 0b8d70bfb715bc3d89b6dfae86fc79d7c4387f02 (diff) |
Export libwireshark symbols using WS_DLL_PUBLIC define
Also remove old WS_VAR_IMPORT define and related Makefile magic
everywhere in the project.
svn path=/trunk/; revision=47992
Diffstat (limited to 'epan/ptvcursor.h')
-rw-r--r-- | epan/ptvcursor.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/epan/ptvcursor.h b/epan/ptvcursor.h index a1f2aaeccf..430c449101 100644 --- a/epan/ptvcursor.h +++ b/epan/ptvcursor.h @@ -29,6 +29,7 @@ #include <glib.h> #include <epan/packet.h> +#include "ws_symbol_export.h" #define SUBTREE_UNDEFINED_LENGTH -1 @@ -36,50 +37,61 @@ typedef struct ptvcursor ptvcursor_t; /* Allocates an initializes a ptvcursor_t with 3 variables: * proto_tree, tvbuff, and offset. */ +WS_DLL_PUBLIC ptvcursor_t* ptvcursor_new(proto_tree* tree, tvbuff_t* tvb, gint offset); /* Gets data from tvbuff, adds it to proto_tree, increments offset, * and returns proto_item* */ +WS_DLL_PUBLIC proto_item* ptvcursor_add(ptvcursor_t* ptvc, int hf, gint length, const guint encoding); /* Gets data from tvbuff, adds it to proto_tree, *DOES NOT* increment * offset, and returns proto_item* */ +WS_DLL_PUBLIC proto_item* ptvcursor_add_no_advance(ptvcursor_t* ptvc, int hf, gint length, const guint encoding); /* Advance the ptvcursor's offset within its tvbuff without * adding anything to the proto_tree. */ +WS_DLL_PUBLIC void ptvcursor_advance(ptvcursor_t* ptvc, gint length); /* Frees memory for ptvcursor_t, but nothing deeper than that. */ +WS_DLL_PUBLIC void ptvcursor_free(ptvcursor_t* ptvc); /* Returns tvbuff. */ +WS_DLL_PUBLIC tvbuff_t* ptvcursor_tvbuff(ptvcursor_t* ptvc); /* Returns current offset. */ +WS_DLL_PUBLIC gint ptvcursor_current_offset(ptvcursor_t* ptvc); /* Returns the proto_tree* */ +WS_DLL_PUBLIC proto_tree* ptvcursor_tree(ptvcursor_t* ptvc); /* Sets a new proto_tree* for the ptvcursor_t */ +WS_DLL_PUBLIC void ptvcursor_set_tree(ptvcursor_t* ptvc, proto_tree* tree); /* push a subtree in the tree stack of the cursor */ +WS_DLL_PUBLIC proto_tree* ptvcursor_push_subtree(ptvcursor_t* ptvc, proto_item* it, gint ett_subtree); /* pop a subtree in the tree stack of the cursor */ +WS_DLL_PUBLIC void ptvcursor_pop_subtree(ptvcursor_t* ptvc); @@ -88,6 +100,7 @@ ptvcursor_pop_subtree(ptvcursor_t* ptvc); * In this case, when the subtree will be closed, the parent item length will * be equal to the advancement of the cursor since the creation of the subtree. */ +WS_DLL_PUBLIC proto_tree* ptvcursor_add_with_subtree(ptvcursor_t* ptvc, int hfindex, gint length, const guint encoding, gint ett_subtree); @@ -97,12 +110,14 @@ ptvcursor_add_with_subtree(ptvcursor_t* ptvc, int hfindex, gint length, * In this case, when the subtree will be closed, the item length will be equal * to the advancement of the cursor since the creation of the subtree. */ +WS_DLL_PUBLIC proto_tree* ptvcursor_add_text_with_subtree(ptvcursor_t* ptvc, gint length, gint ett_subtree, const char* format, ...); /* Creates a subtree and adds it to the cursor as the working tree but does not * save the old working tree */ +WS_DLL_PUBLIC proto_tree* ptvcursor_set_subtree(ptvcursor_t* ptvc, proto_item* it, gint ett_subtree); |