+ case 3:
+ printf("3. Get Topics\n");
+ if(g_provider)
+ {
+ NSConsumerGetInterestTopics(g_provider);
+ }
+ break;
+ case 4:
+ printf("4. Select Topics\n");
+
+ if (g_provider && g_provider->topicLL)
+ {
+ NSTopicLL * iter = g_provider->topicLL;
+ int i = 0;
+ while (iter)
+ {
+ iter->state = (i++)%2;
+ printf("Topic Name: %s\t Topic State: %d\n", iter->topicName, iter->state);
+ iter = iter->next;
+ }
+ NSConsumerSelectInterestTopics(g_provider);
+ }
+ break;