summaryrefslogtreecommitdiff
path: root/epan/uat.h
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-03-04 12:50:18 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-03-04 12:50:18 +0000
commit2f8830b4d03bb3f0ae67ba22896b1ac62c133428 (patch)
tree96338cd40e1cefa0587cb4b5cc2c4f5bc6eab668 /epan/uat.h
parentf05fb51aba628102f83cd814d04f763643baab3e (diff)
downloadwireshark-2f8830b4d03bb3f0ae67ba22896b1ac62c133428.tar.gz
From LEGO via bug 3459:
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. svn path=/trunk/; revision=32112
Diffstat (limited to 'epan/uat.h')
-rw-r--r--epan/uat.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/epan/uat.h b/epan/uat.h
index 13123c5e4e..d3cfdb21e1 100644
--- a/epan/uat.h
+++ b/epan/uat.h
@@ -59,7 +59,21 @@ typedef struct _uat_t uat_t;
********************************************/
/********
- * Callbacks for the entire table (these deal with entire records)
+ * Callbacks dealing with the entire table
+ ********/
+
+/*
+ * Post-Update CB
+ *
+ * to be called after to the table has being edited
+ * Will be called once the user clicks the Apply or OK button
+ * optional
+ */
+typedef void (*uat_post_update_cb_t)(void);
+
+
+/********
+ * Callbacks dealing with records (these deal with entire records)
********/
/*
@@ -84,7 +98,7 @@ typedef void (*uat_free_cb_t)(void*);
/*
* Update CB
*
- * to be called after all record fields has been updated
+ * to be called after any record fields had been updated
* optional, record will be updated always if not given
* update(record,&error)
*/
@@ -221,6 +235,7 @@ typedef struct _uat_field_t {
* @param copy_cb A function that copies the data in the struct
* @param update_cb Will be called when a record is updated
* @param free_cb Will be called to destroy a struct in the dataset
+ * @param post_update_cb Will be called once the user clicks the Apply or OK button
* @param flds_array A pointer to an array of uat_field_t structs
*
* @return A freshly-allocated and populated uat_t struct.
@@ -236,6 +251,7 @@ uat_t* uat_new(const char* name,
uat_copy_cb_t copy_cb,
uat_update_cb_t update_cb,
uat_free_cb_t free_cb,
+ uat_post_update_cb_t post_update_cb,
uat_field_t* flds_array);
/** Populate a uat using its file.