summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-11-22 03:00:54 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2009-11-22 03:00:54 +0100
commit95f4c7cb4a9f0a30ab9d78852725a45688a97512 (patch)
treec2dab013ed2769c31ca4b0233faa9cfa69224ab9 /config.h
parent5d8561e4257f13756010daca1bb098bdef9cb97c (diff)
Added support for using pthreads.
Data processing (parsing) moved to parsing.c. The line parsing code is moved to its own function which is called from one or more threads (depends on the "threads" setting in the config file).
Diffstat (limited to 'config.h')
-rw-r--r--config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h b/config.h
index 486919c..b5b9874 100644
--- a/config.h
+++ b/config.h
@@ -4,4 +4,10 @@
int cfg_init();
void cfg_free();
+struct ircstats_config_t {
+ long int threads;
+};
+
+extern struct ircstats_config_t ircstats_config;
+
#endif