diff include/freeDiameter/libfdproto.h @ 778:003df4a9ade2

Added two new interfaces on Zach requests http://lists.freediameter.net/pipermail/help/2012-January/000312.html and http://lists.freediameter.net/pipermail/help/2012-January/000311.html
author Sebastien Decugis <sdecugis@nict.go.jp>
date Sat, 21 Jan 2012 16:11:34 +0100
parents 99136ec7d9d4
children e87d083d0342
line wrap: on
line diff
--- a/include/freeDiameter/libfdproto.h	Tue Nov 22 16:37:40 2011 -0800
+++ b/include/freeDiameter/libfdproto.h	Sat Jan 21 16:11:34 2012 +0100
@@ -850,6 +850,10 @@
 /* Function to access full contents of the dictionary, see doc in dictionary.c */
 int fd_dict_getlistof(int criteria, void * parent, struct fd_list ** sentinel);
 
+/* Function to remove an entry from the dictionary.
+  This cannot be used if the object has children (for example a vendor with vendor-specific AVPs).
+  In such case, the children must be removed first. */
+int fd_dict_delete(struct dict_object * obj);
 
 /*
  ***************************************************************************
@@ -1859,6 +1863,9 @@
 void fd_sess_dump(int level, struct session * session);
 void fd_sess_dump_hdl(int level, struct session_handler * handler);
 
+/* For statistics / monitoring: get the number of struct session in memory */
+int fd_sess_getcount(uint32_t *cnt);
+
 /*============================================================*/
 /*                         ROUTING                            */
 /*============================================================*/
"Welcome to our mercurial repository"