X-Git-Url: http://www.average.org/gitweb/?p=psmb.git;a=blobdiff_plain;f=examples%2Fpsmb.c;h=8637a0bf0391bf7b9227906ea950fbd87c2b3184;hp=2f0d6ea3bf484da1397d899db19870a6cab72a66;hb=3976435a109cf8586ecd362b2f320b0ee9044c25;hpb=2af243319a90ce19a4ef35e7224fea80447ad68d diff --git a/examples/psmb.c b/examples/psmb.c index 2f0d6ea..8637a0b 100644 --- a/examples/psmb.c +++ b/examples/psmb.c @@ -20,6 +20,8 @@ int main(int argc, char *argv[], char *envp[]) printf("created psmb at %p\n", ctx); res = psmb_set_logf(ctx, logprt, NULL); res = psmb_open(ctx); + res = psmb_subscribe(ctx, "test-channel"); + res = psmb_unsubscribe(ctx, "test-channel"); psmb_destroy(ctx); - return 0; + return psmb_success(res); }