diff options
author | fourdan | 2007-01-29 10:09:59 +0000 |
---|---|---|
committer | fourdan | 2007-01-29 10:09:59 +0000 |
commit | 68e3c0ed570ba3e994f8a1c4b20594372fb0b514 (patch) | |
tree | 8d6c0d6876340742ea6f49dc9faa40aef9855563 /examples/testUnbind.c | |
parent | 6fc08ea508e4fa39a9bf7f5495e84a68bd0bf88a (diff) | |
parent | f70181ffe0b37952384ff5e0ce0185541828014f (diff) | |
download | ivy-c-68e3c0ed570ba3e994f8a1c4b20594372fb0b514.zip ivy-c-68e3c0ed570ba3e994f8a1c4b20594372fb0b514.tar.gz ivy-c-68e3c0ed570ba3e994f8a1c4b20594372fb0b514.tar.bz2 ivy-c-68e3c0ed570ba3e994f8a1c4b20594372fb0b514.tar.xz |
Rename protocol_v3 as trunk to avoid confusion on protocol version to use.
Diffstat (limited to 'examples/testUnbind.c')
-rw-r--r-- | examples/testUnbind.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/testUnbind.c b/examples/testUnbind.c index 16a4a8a..2cc7fdd 100644 --- a/examples/testUnbind.c +++ b/examples/testUnbind.c @@ -13,8 +13,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <ivyloop.h> -#include <ivy.h> +#include <Ivy/ivyloop.h> +#include <Ivy/ivy.h> +#include <Ivy/version.h> #define REGEXP "^ub" void Callback (IvyClientPtr app, void *user_data, int argc, char *argv[]) { @@ -30,6 +31,10 @@ int main(int argc, char *argv[]) { ptr=IvyBindMsg(Callback,&ptr,REGEXP); printf("bound to %s\n",REGEXP); IvyStart(NULL); - IvyMainLoop(0); +#if (IVYMAJOR_VERSION == 3) && (IVYMINOR_VERSION < 9) + IvyMainLoop(NULL, NULL); +#else + IvyMainLoop(); +#endif return 0; } |