diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile.am | 5 | ||||
-rw-r--r-- | examples/blooptest.c | 2 | ||||
-rw-r--r-- | examples/example.c | 1 |
3 files changed, 3 insertions, 5 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am index a77fa15..644f017 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -20,8 +20,3 @@ noinst_PROGRAMS=example pnmshow regiontest pnmshow24 fontsel \ vncev storepasswd colourmaptest simple simple15 $(MAC) \ $(FILETRANSFER) backchannel $(BLOOPTEST) -blooptest.o: example.c - $(CC) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $< - - - diff --git a/examples/blooptest.c b/examples/blooptest.c new file mode 100644 index 0000000..f0e411c --- /dev/null +++ b/examples/blooptest.c @@ -0,0 +1,2 @@ +#define BACKGROUND_LOOP_TEST +#include "example.c" diff --git a/examples/example.c b/examples/example.c index 536497f..71548fa 100644 --- a/examples/example.c +++ b/examples/example.c @@ -324,6 +324,7 @@ int main(int argc,char** argv) /* this is the non-blocking event loop; a background thread is started */ rfbRunEventLoop(rfbScreen,-1,TRUE); + fprintf(stderr, "Running background loop...\n"); /* now we could do some cool things like rendering in idle time */ while(1) sleep(5); /* render(); */ #endif /* BACKGROUND_LOOP */ |