aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat-int.h
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-09-30 10:46:28 +0200
committerMichael Mann <mmann78@netscape.net>2016-10-01 12:08:02 +0000
commit7ea363223a5a5a872d66a65570c134c34aa51b49 (patch)
tree7ae5f1e46f8feabd026842bf19acf71767194e36 /epan/uat-int.h
parent2dfc0da22cc4c525c32baa2684666643d4bf23a0 (diff)
uat: allow insertion of new record at arbitrary index
This should make drag-and-drop support (reordering) in Qt easier. It also ensures that memcpy is used as fallback if copy_cb does not exist. Change-Id: Iefe358890c49dcda4727054f7a2cee05614a36f6 Reviewed-on: https://code.wireshark.org/review/17992 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/uat-int.h b/epan/uat-int.h
index 43aa3c2721..be8ecbc795 100644
--- a/epan/uat-int.h
+++ b/epan/uat-int.h
@@ -103,6 +103,12 @@ WS_DLL_PUBLIC
void uat_swap(uat_t *uat, guint idx_a, guint idx_b);
/**
+ * Inserts the record at the given index in the internal record list.
+ */
+WS_DLL_PUBLIC
+void uat_insert_record_idx(uat_t *uat, guint rec_idx, const void *src_record);
+
+/**
* Removes the record with the given index from the internal record list.
*/
WS_DLL_PUBLIC