summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorerdgeist <>2007-12-20 05:59:34 +0000
committererdgeist <>2007-12-20 05:59:34 +0000
commitc28cf398fd956eb467612eec4b31e1df371b9636 (patch)
tree8ea7885c689844d06aa59a420fbaf06fee5ded19 /ot_stats.c
parentd9ed6c22bd26268b8ae51cc062e41f20e2dc68bd (diff)
Introduce some kind of versioning
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 417e194..fa783d8 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -1,5 +1,7 @@
1/* This software was written by Dirk Engling <erdgeist@erdgeist.org> 1/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
2 It is considered beerware. Prost. Skol. Cheers or whatever. */ 2 It is considered beerware. Prost. Skol. Cheers or whatever.
3
4 $id$ */
3 5
4/* System */ 6/* System */
5#include <stdlib.h> 7#include <stdlib.h>
@@ -334,6 +336,18 @@ static size_t stats_httperrors_txt ( char * reply ) {
334 ot_failed_request_counts[6] ); 336 ot_failed_request_counts[6] );
335} 337}
336 338
339extern const char
340*g_version_opentracker_c, *g_version_accesslist_c, *g_version_clean_c, *g_version_fullscrape_c, *g_version_http_c,
341*g_version_iovec_c, *g_version_mutex_c, *g_version_stats_c, *g_version_sync_c, *g_version_udp_c, *g_version_vector_c,
342*g_version_scan_urlencoded_query_c, *g_version_trackerlogic_c;
343
344size_t stats_return_tracker_version( char *reply ) {
345 return sprintf( reply, "%s%s%s%s%s%s%s%s%s%s%s%s%s",
346 g_version_opentracker_c, g_version_accesslist_c, g_version_clean_c, g_version_fullscrape_c, g_version_http_c,
347 g_version_iovec_c, g_version_mutex_c, g_version_stats_c, g_version_sync_c, g_version_udp_c, g_version_vector_c,
348 g_version_scan_urlencoded_query_c, g_version_trackerlogic_c );
349}
350
337size_t return_stats_for_tracker( char *reply, int mode, int format ) { 351size_t return_stats_for_tracker( char *reply, int mode, int format ) {
338 format = format; 352 format = format;
339 switch( mode ) { 353 switch( mode ) {
@@ -418,3 +432,4 @@ void stats_deinit( ) {
418 432
419} 433}
420 434
435const char *g_version_stats_c = "$Source$: $Revision$\n";