summaryrefslogtreecommitdiffstats
path: root/lib/qpthreads.h
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2010-12-21 11:12:30 +0000
committerChris Hall <chris.hall@highwayman.com>2010-12-21 11:12:30 +0000
commit121f2f888e02a28e7896f84dde019cb320f0b11d (patch)
tree99c3913759b80894b1cb83a508036223b9c98f5a /lib/qpthreads.h
parentd475a0f198f880595eb27e44008e5de3aad25d73 (diff)
downloadquagga-121f2f888e02a28e7896f84dde019cb320f0b11d.tar.bz2
quagga-121f2f888e02a28e7896f84dde019cb320f0b11d.tar.xz
Creation of pipework branch
Diffstat (limited to 'lib/qpthreads.h')
-rw-r--r--lib/qpthreads.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/qpthreads.h b/lib/qpthreads.h
index d73182ef..959194ad 100644
--- a/lib/qpthreads.h
+++ b/lib/qpthreads.h
@@ -22,24 +22,15 @@
#ifndef _ZEBRA_QPTHREADS_H
#define _ZEBRA_QPTHREADS_H
-#include <stdint.h>
+#include "misc.h"
#include <time.h>
#include <pthread.h>
#include <unistd.h>
#include <errno.h>
-#include <stdbool.h>
#include "zassert.h"
#include "qtime.h"
-#ifndef Inline
-#define Inline static inline
-#endif
-
-#ifndef private
-#define private extern
-#endif
-
/*==============================================================================
* Quagga Pthread Interface -- qpt_xxxx
*
@@ -133,13 +124,13 @@ qpt_thread_join(qpt_thread_t thread_id) ;
/*==============================================================================
* qpthreads_enabled support -- NOT FOR PUBLIC CONSUMPTION !
*/
-private uint8_t qpthreads_enabled_flag ; /* DO NOT TOUCH THIS PLEASE */
-private uint8_t qpthreads_thread_created_flag ; /* DO NOT TOUCH THIS PLEASE */
+Private uint8_t qpthreads_enabled_flag ; /* DO NOT TOUCH THIS PLEASE */
+Private uint8_t qpthreads_thread_created_flag ; /* DO NOT TOUCH THIS PLEASE */
-private int
+Private int
qpt_set_qpthreads_enabled(int how) ; /* qpthreads_enabled := how */
-private int
+Private int
qpt_freeze_qpthreads_enabled(void) ; /* get and freeze qpthreads_enabled */
/*==============================================================================