summaryrefslogtreecommitdiff
path: root/epan/uat_load.l
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_load.l
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_load.l')
-rw-r--r--epan/uat_load.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l
index 4920c47490..ed74f64728 100644
--- a/epan/uat_load.l
+++ b/epan/uat_load.l
@@ -317,6 +317,9 @@ gboolean uat_load(uat_t* uat_in, char** err) {
*err = NULL;
return TRUE;
}
+
+ if (uat->post_update_cb)
+ uat->post_update_cb();
}
gboolean uat_load_str(uat_t* uat_in, char* entry, char** err) {
@@ -349,6 +352,10 @@ gboolean uat_load_str(uat_t* uat_in, char* entry, char** err) {
*err = NULL;
return TRUE;
}
+
+ if (uat->post_update_cb)
+ uat->post_update_cb();
+
}
/*