summaryrefslogtreecommitdiff
path: root/shaping/test/stub.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shaping/test/stub.cpp')
-rw-r--r--shaping/test/stub.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/shaping/test/stub.cpp b/shaping/test/stub.cpp
index 9406752..25d4550 100644
--- a/shaping/test/stub.cpp
+++ b/shaping/test/stub.cpp
@@ -15,6 +15,7 @@
#include <pthread.h>
#include "stub.h"
#include "shaper_maat.h"
+#include "log.h"
using namespace std;
@@ -166,6 +167,8 @@ void stub_init()
{
int i;
+ LOG_INIT("./conf/zlog.conf");
+
TAILQ_INIT(&tx_queue);
memset(&matched_rules, 0, sizeof(struct stub_matched_rules));
memset(&pf_array, 0, MAX_STUB_PROFILE_NUM * sizeof(struct shaping_profile));
@@ -418,6 +421,21 @@ void swarmkv_close(struct swarmkv * db)
}
return;
}
+
+void swarmkv_caller_loop(struct swarmkv *db, int flags, struct timeval *tv)
+{
+ return;
+}
+
+int swarmkv_options_set_caller_thread_number(struct swarmkv_options *opts, int nr_caller_threads)
+{
+ return 0;
+}
+
+int swarmkv_options_set_worker_thread_number(struct swarmkv_options *opts, int nr_worker_threads)
+{
+ return 0;
+}
/**********************************************/
/*************stub of maat*********************/