summaryrefslogtreecommitdiffstats
path: root/lib/vty.h
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2009-12-07 14:21:17 +0000
committerpaulo <paul@bayleaf.org.uk>2009-12-07 14:21:17 +0000
commit63565b7d35577d095089ee579534abd7788f50ab (patch)
tree726a9c2a32db3f36126fe952e786fe641c8bfca5 /lib/vty.h
parent2c282bd4752f5eae9d5e40d687fdc6af2f203c91 (diff)
downloadquagga-63565b7d35577d095089ee579534abd7788f50ab.tar.bz2
quagga-63565b7d35577d095089ee579534abd7788f50ab.tar.xz
Make vty and log thread safe under single mutex.
Diffstat (limited to 'lib/vty.h')
-rw-r--r--lib/vty.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/vty.h b/lib/vty.h
index 1e7f1261..4568f775 100644
--- a/lib/vty.h
+++ b/lib/vty.h
@@ -23,6 +23,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#include "thread.h"
#include "log.h"
+#include "qpthreads.h"
#define VTY_BUFSIZ 512
#define VTY_MAXHIST 20
@@ -205,10 +206,18 @@ do {
/* Exported variables */
extern char integrate_default[];
+extern qpt_mutex_t* vty_mutex;
+#ifndef NDEBUG
+extern int vty_lock_count;
+#endif
/* Prototypes. */
+extern void vty_init_r (struct thread_master *);
+extern void vty_terminate_r (void);
+
extern void vty_init (struct thread_master *);
extern void vty_init_vtysh (void);
+extern void vty_terminate_r (void);
extern void vty_terminate (void);
extern void vty_reset (void);
extern struct vty *vty_new (void);