File: test.c

package info (click to toggle)
orbit 0.5.0-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,604 kB
  • ctags: 4,626
  • sloc: ansic: 37,930; sh: 7,508; yacc: 1,750; makefile: 877; lex: 366
file content (25 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Simple test for the ORB.
 *
 * Run as eg: 
 * test -ORBImplRepoIOR=IOR:0100000010000000646174613a3a70686f6e65626f6f6b0001000000000000003a0000000101000023000000686167626172642e6170617468657469632e646973636f726469612e6f72672e756b0000d72b000006000000776962626c65 -ORBDebugModules 3 -ORBDebugLevel 8
 */

#include "orbit.h"

int main(int argc, char **argv)
{
	CORBA_ORB orb;
	CORBA_ORB_ObjectIdList *ref_list;
	CORBA_Environment ev;
	int i;

	orb=CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev);
	ref_list=CORBA_ORB_list_initial_services(orb, &ev);

	for(i=0;i<ref_list->_length; i++) {
		printf("Ref: %s\n", ref_list->_buffer[i]);
	}

	return(0);
}