From 7591a024f184bd385d35583d19d86c1d5f2531ba Mon Sep 17 00:00:00 2001 From: Tom Schouten Date: Fri, 1 Sep 2006 13:45:31 +0000 Subject: pdp current darcs merge svn path=/trunk/externals/pdp/; revision=5816 --- system/pdp.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'system/pdp.c') diff --git a/system/pdp.c b/system/pdp.c index d74323b..4f8962d 100644 --- a/system/pdp.c +++ b/system/pdp.c @@ -22,6 +22,7 @@ #include "pdp_config.h" #include "pdp_post.h" +static int initialized = 0; /* all symbols are C style */ #ifdef __cplusplus @@ -91,6 +92,7 @@ void pdp_udp_send_setup(void); void pdp_udp_receive_setup(void); void pdp_rawin_setup(void); void pdp_rawout_setup(void); +void pdp_metro_setup(void); /* hacks */ @@ -105,11 +107,13 @@ void pdp_dpd_test_setup(void); /* library setup routine */ void pdp_setup(void){ - /* babble */ - pdp_post ("PDP: pure data packet"); + if (initialized) return; + /* babble */ #ifdef PDP_VERSION - pdp_post("PDP: version " PDP_VERSION ); + pdp_post("PDP: pure data packet version " PDP_VERSION ); +#else + pdp_post ("PDP: pure data packet"); #endif @@ -175,6 +179,7 @@ void pdp_setup(void){ pdp_array_setup(); pdp_rawin_setup(); pdp_rawout_setup(); + pdp_metro_setup(); /* experimental stuff */ @@ -220,7 +225,7 @@ void pdp_setup(void){ pdp_glx_setup(); #endif - + initialized++; } -- cgit v1.2.1