diff options
author | Dario Lombardo <lomato@gmail.com> | 2016-12-21 11:50:47 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-01-12 12:39:15 +0000 |
commit | 805ddd1addbea96308fe3b790043ec511c73bbfa (patch) | |
tree | fbb2f6b1ee81a849e1afd5cac1f180601d9c7273 /epan/uat-int.h | |
parent | 01c8028add4099ad8707302efd9207b82daa7f81 (diff) |
uat: add a reset callback.
This function will free the resources allocated by the caller.
Change-Id: Ib486c14e4fd3c321662fb71f7fd06733ce9a64a4
Reviewed-on: https://code.wireshark.org/review/19375
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/uat-int.h')
-rw-r--r-- | epan/uat-int.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/epan/uat-int.h b/epan/uat-int.h index be8ecbc795..2624779e2a 100644 --- a/epan/uat-int.h +++ b/epan/uat-int.h @@ -49,11 +49,11 @@ typedef struct _fld_data_t { } fld_data_t; struct epan_uat { - const char* name; + char* name; size_t record_size; - const char* filename; + char* filename; gboolean from_profile; - const char* help; + char* help; guint flags; void** user_ptr; /**< Pointer to a dissector variable where an array of valid records are stored. */ guint* nrows_p; /**< Pointer to a dissector variable where the number of valid records in user_ptr are written. */ @@ -61,6 +61,7 @@ struct epan_uat { uat_update_cb_t update_cb; uat_free_cb_t free_cb; uat_post_update_cb_t post_update_cb; + uat_reset_cb_t reset_cb; uat_field_t* fields; guint ncols; @@ -77,10 +78,6 @@ struct epan_uat { WS_DLL_PUBLIC gchar* uat_get_actual_filename(uat_t* uat, gboolean for_writing); -void uat_init(void); - -void uat_reset(void); - /** * Clones the given record and stores it internally in the UAT. If it is * considered a valid record, then it will also be cloned and stored in the @@ -114,8 +111,6 @@ void uat_insert_record_idx(uat_t *uat, guint rec_idx, const void *src_record); WS_DLL_PUBLIC void uat_remove_record_idx(uat_t *uat, guint rec_idx); -void uat_destroy(uat_t *uat); - /** * Removes and destroys all records from the UAT. */ |